fallback: legalize: G_IMPLICIT_DEF <N x i64>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_IMPLICIT_DEF <N x i64> M |
| Occurrences: | 3 in 3 configs, 3 test files, 161 more counted only |
| Snippet from: | cmov-branch-opt.3b953c3dc6.ll (mutant of cmov-branch-opt.ll) @select_xor_1b via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+c,+zihintpause -O0 -code-model=medium |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
define i16 @select_xor_1b(i16 %A, i8 %cond) {
entry:
%C = icmp eq i16 %A, %A
%A1 = alloca <2 x i64>, align 16
store <2 x i64> poison, ptr %A1, align 16
%and = and i8 %cond, 1
%cmp10 = icmp ne i8 %and, 1
%0 = xor i16 %A, 43
%1 = select i1 %cmp10, i16 %A, i16 %0
%B = udiv <2 x i64> splat (i64 1), splat (i64 9223372036854775807)
store <2 x i64> %B, ptr %A1, align 16
store i1 %C, ptr @G, align 1
ret i16 %1
}
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+c,+zihintpause -O0 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+c,+zihintpause -O0 -code-model=medium -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %6:_(<2 x i64>) = G_IMPLICIT_DEF (in function: select_xor_1b)
warning: Instruction selection used fallback path for select_xor_1b
Occurrences (3):
| Input | Function | Config |
|---|
| cmov-branch-opt.3b953c3dc6.ll (mutant of cmov-branch-opt.ll) | select_xor_1b | -mtriple=riscv64 -verify-machineinstrs -mattr=+c,+zihintpause -O0 -code-model=medium |
| fpclamptosat.6a62f3e916.ll (mutant of fpclamptosat.ll) | ustest_f32i32_mm | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64f -mattr=+f,+zvfh -O0 -code-model=medium |
| sextw-removal.ede9419a93.ll (mutant of sextw-removal.ll) | test12 | -mtriple=riscv64 -target-abi=lp64f -riscv-sextw-removal=0 -mattr=+zba,+zbb,+zbkb,+zknh,+v -O0 -code-model=small -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.