fallback: legalize: G_INSERT_VECTOR_ELT <N x p0>,p0
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_INSERT_VECTOR_ELT <N x p0>,p0 M |
| Occurrences: | 3 in 3 configs, 2 test files, 14 more counted only |
| Snippet from: | fixed-vectors-masked-scatter.f53de3a661.ll (mutant of fixed-vectors-masked-scatter.ll) @mscatter_baseidx_zext_v8i8_v8i64 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin,+zve32f,+zvl128b -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define void @mscatter_baseidx_zext_v8i8_v8i64(<8 x i64> %val, ptr %base, <8 x i8> %idxs, <8 x i1> %m) {
%eidxs = zext <8 x i8> %idxs to <8 x i64>
%ptrs = getelementptr inbounds i64, ptr %base, <8 x i64> %eidxs
call void @llvm.masked.scatter.v8i64.v8p0(<8 x i64> %val, <8 x ptr> align 8 %ptrs, <8 x i1> %m)
%I = insertelement <8 x ptr> %ptrs, ptr poison, i16 -32768
store <8 x ptr> %I, ptr poison, align 64
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(write)
declare void @llvm.masked.scatter.v8i64.v8p0(<8 x i64>, <8 x ptr>, <8 x i1>) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(write) }
Reproduce:
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin,+zve32f,+zvl128b -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin,+zve32f,+zvl128b -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %63:_(<8 x p0>) = G_INSERT_VECTOR_ELT %12:_, %64:_(p0), %65:_(i64) (in function: mscatter_baseidx_zext_v8i8_v8i64)
warning: Instruction selection used fallback path for mscatter_baseidx_zext_v8i8_v8i64
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-masked-scatter.88872393aa.ll (mutant of fixed-vectors-masked-scatter.ll) | mscatter_baseidx_sext_v8i8_v8bf16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+zve32f,+zvl128b -O0 -code-model=medium |
| fixed-vectors-masked-scatter.f53de3a661.ll (mutant of fixed-vectors-masked-scatter.ll) | mscatter_baseidx_zext_v8i8_v8i64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin,+zve32f,+zvl128b -O0 |
| fixed-vectors-vpscatter.469992a163.ll (mutant of fixed-vectors-vpscatter.ll) | vpscatter_baseidx_v8i16_v8f32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v -O0 -code-model=medium |
Generated 2026-11-29 14:49 UTC.