fallback: legalize: G_ICMP <4 x s1>,<4 x s32>

Run:main-bc8218b282-20261015-074651
Kind:fallback
Category:legalize: G_ICMP <4 x s1>,<4 x s32>
Occurrences:4 in 1 configs, 1 test files
Snippet from:get-setcc-result-type.ll @getSetCCResultType via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs
Local check:reproduces at bc8218b282
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define void @getSetCCResultType(ptr %p, ptr %q) #0 {
entry:
  %0 = load <4 x i32>, ptr %p, align 16
  %cmp = icmp eq <4 x i32> %0, zeroinitializer
  %sext = sext <4 x i1> %cmp to <4 x i32>
  store <4 x i32> %sext, ptr %p, align 16
  ret void
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %5:_(<4 x s1>) = G_ICMP intpred(eq), %2:_(<4 x s32>), %3:_ (in function: getSetCCResultType)
warning: Instruction selection used fallback path for getSetCCResultType

Occurrences (4):

InputFunctionConfig
get-setcc-result-type.llgetSetCCResultType-mtriple=riscv32 -verify-machineinstrs
get-setcc-result-type.2393268406.ll (mutant of get-setcc-result-type.ll)getSetCCResultType-mtriple=riscv32 -verify-machineinstrs
get-setcc-result-type.e35d753e53.ll (mutant of get-setcc-result-type.ll)getSetCCResultType-mtriple=riscv32 -verify-machineinstrs
get-setcc-result-type.ea680c9ff0.ll (mutant of get-setcc-result-type.ll)getSetCCResultType-mtriple=riscv32 -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.