fallback: legalize: G_INTRINSIC_W_SIDE_EFFECTS <2 x s32>,p0,<2 x s1>,s32

Run:explore-bc8218b282-20261015-075519
Kind:fallback
Category:legalize: G_INTRINSIC_W_SIDE_EFFECTS <2 x s32>,p0,<2 x s1>,s32 NEW
Occurrences:1 in 1 configs, 1 test files
Snippet from:urem-seteq-illegal-types.3d986b19df.ll (mutant of urem-seteq-illegal-types.ll) @test_urem_even via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+v -riscv-v-vector-bits-min=128
Local check:reproduces at bc8218b282
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global <4 x float>

; Function Attrs: nounwind
define i1 @test_urem_even(i27 %X) #0 {
  %A = alloca <4 x float>, align 16
  store <4 x float> poison, ptr %A, align 16
  %LGV = load <4 x float>, ptr @G, align 16
  %urem = urem i27 %X, 14
  %S = shufflevector <4 x float> splat (float 4.200000e+01), <4 x float> %LGV, <4 x i32> poison
  %cmp = icmp eq i27 %urem, 0
  store <4 x float> %S, ptr %A, align 16
  br i1 %cmp, label %T, label %F

BB:                                               ; preds = %F, %T
  ret i1 %cmp

T:                                                ; preds = %0
  br label %BB

F:                                                ; preds = %0
  br label %BB
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -mattr=+m,+v -riscv-v-vector-bits-min=128 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+v -riscv-v-vector-bits-min=128 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.riscv.seg2.store.mask), %8:_(<2 x s32>), %11:_(<2 x s32>), %2:_(p0), %12:_(<2 x s1>), %14:_(s32) :: (store (s32) into %ir.A) (in function: test_urem_even)
warning: Instruction selection used fallback path for test_urem_even

Occurrences (1):

InputFunctionConfig
urem-seteq-illegal-types.3d986b19df.ll (mutant of urem-seteq-illegal-types.ll)test_urem_even-mtriple=riscv32 -mattr=+m,+v -riscv-v-vector-bits-min=128

Generated 2026-10-15 08:05 UTC.