fallback: legalize: G_ICMP <4 x s1>,<4 x s32>
| Run: | main-04ca53e65f-20261014-105623 |
| 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 04ca53e65f |
| 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):
| Input | Function | Config |
|---|
| get-setcc-result-type.ll | getSetCCResultType | -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.