fallback: legalize: G_INTRINSIC_W_SIDE_EFFECTS <N x f64>,<N x p0>,<N x i1>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC_W_SIDE_EFFECTS <N x f64>,<N x p0>,<N x i1> M |
| Occurrences: | 4 in 4 configs, 2 test files, 17 more counted only |
| Snippet from: | fixed-vectors-masked-scatter.534eabe520.ll (mutant of fixed-vectors-masked-scatter.ll) @mscatter_baseidx_zext_v8i8_v8f64 via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin,+v,+xtheadba -O2 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define void @mscatter_baseidx_zext_v8i8_v8f64(<8 x double> %val, ptr %base, <8 x i8> %idxs, <8 x i1> %m) {
%eidxs = zext <8 x i8> %idxs to <8 x i64>
%ptrs = getelementptr inbounds double, ptr %base, <8 x i64> %eidxs
%C = icmp uge <8 x i1> %m, splat (i1 true)
call void @llvm.masked.scatter.v8f64.v8p0(<8 x double> %val, <8 x ptr> align 8 %ptrs, <8 x i1> %C)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(write)
declare void @llvm.masked.scatter.v8f64.v8p0(<8 x double>, <8 x ptr>, <8 x i1>) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(write) }
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin,+v,+xtheadba -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin,+v,+xtheadba -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.masked.scatter), %0:_(<8 x f64>), %13:_(<8 x p0>), %16:_(<8 x i1>) (in function: mscatter_baseidx_zext_v8i8_v8f64)
warning: Instruction selection used fallback path for mscatter_baseidx_zext_v8i8_v8f64
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-masked-scatter.534eabe520.ll (mutant of fixed-vectors-masked-scatter.ll) | mscatter_baseidx_zext_v8i8_v8f64 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin,+v,+xtheadba -O2 |
| fixed-vectors-masked-scatter.77d6e4f5a5.ll (mutant of fixed-vectors-masked-scatter.ll) | mscatter_baseidx_sext_v8i16_v8f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin,+v -O3 -code-model=medium |
| fixed-vectors-masked-scatter.dfe3909ffa.ll (mutant of fixed-vectors-masked-scatter.ll) | mscatter_baseidx_sext_v8i8_v8f64 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+m,+zvfh,+zfbfmin,+zvfbfmin,+v,+zicond -O0 -code-model=medium |
| fixed-vectors-vpscatter.7de9645197.ll (mutant of fixed-vectors-vpscatter.ll) | vpscatter_baseidx_sext_v8i32_v8f64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+v,+zbkb -O2 |
Generated 2026-11-29 14:49 UTC.