fallback: legalize: G_INTRINSIC_W_SIDE_EFFECTS <N x f32>,<N x p0>,<N x i1>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC_W_SIDE_EFFECTS <N x f32>,<N x p0>,<N x i1> M |
| Occurrences: | 4 in 3 configs, 2 test files, 9 more counted only |
| Snippet from: | fixed-vectors-vpscatter.dac20a0619.ll (mutant of fixed-vectors-vpscatter.ll) @vpscatter_baseidx_v8i16_v8f32 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v -O3 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global bfloat
@G.1 = external global i1
define void @vpscatter_baseidx_v8i16_v8f32(<8 x float> %val, ptr %base, <8 x i16> %idxs, <8 x i1> %m, i32 zeroext %evl) {
%LGV = load bfloat, ptr @G, align 2
%ptrs = getelementptr inbounds float, ptr %base, <8 x i16> %idxs
%C = fcmp ueq bfloat 3.389530e+38, %LGV
call void @llvm.vp.scatter.v8f32.v8p0(<8 x float> %val, <8 x ptr> %ptrs, <8 x i1> %m, i32 %evl)
store i1 %C, ptr @G.1, align 1
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.vp.scatter.v8f32.v8p0(<8 x float>, <8 x ptr>, <8 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.vp.scatter), %0:_(<8 x f32>), %15:_(<8 x p0>), %3:_(<8 x i1>), %4:_(i32) (in function: vpscatter_baseidx_v8i16_v8f32)
warning: Instruction selection used fallback path for vpscatter_baseidx_v8i16_v8f32
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-masked-scatter.cd26aa0bf6.ll (mutant of fixed-vectors-masked-scatter.ll) | mscatter_baseidx_v8i8_v8f32 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+v,+zvkb -O2 |
| fixed-vectors-masked-scatter.f5d3a8fc35.ll (mutant of fixed-vectors-masked-scatter.ll) | mscatter_baseidx_v8i8_v8f32 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin,+v,+zfhmin,+zbs -O3 |
| fixed-vectors-vpscatter.dac20a0619.ll (mutant of fixed-vectors-vpscatter.ll) | vpscatter_baseidx_v8i16_v8f32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v -O3 |
| fixed-vectors-vpscatter.dac20a0619.ll (mutant of fixed-vectors-vpscatter.ll) | vpscatter_baseidx_sext_v8i16_v8f32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v -O3 |
Generated 2026-11-29 14:49 UTC.