fallback: legalize: G_ICMP <4 x s1>,<4 x s32>
| Run: | explore-04ca53e65f-20261014-114124 |
| Kind: | fallback |
| Category: | legalize: G_ICMP <4 x s1>,<4 x s32> |
| Occurrences: | 6 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 (6):
| Input | Function | Config |
|---|
| get-setcc-result-type.ll | getSetCCResultType | -mtriple=riscv32 -verify-machineinstrs |
| get-setcc-result-type.20e58c1cd9.ll (mutant of get-setcc-result-type.ll) | getSetCCResultType | -mtriple=riscv32 -verify-machineinstrs |
| get-setcc-result-type.35dbdf474c.ll (mutant of get-setcc-result-type.ll) | getSetCCResultType | -mtriple=riscv32 -verify-machineinstrs |
| get-setcc-result-type.4ccfd6ebd0.ll (mutant of get-setcc-result-type.ll) | getSetCCResultType | -mtriple=riscv32 -verify-machineinstrs |
| get-setcc-result-type.9606b4d599.ll (mutant of get-setcc-result-type.ll) | getSetCCResultType | -mtriple=riscv32 -verify-machineinstrs |
| get-setcc-result-type.9da614a6b0.ll (mutant of get-setcc-result-type.ll) | getSetCCResultType | -mtriple=riscv32 -verify-machineinstrs |
Generated 2026-10-15 08:05 UTC.