fallback: translate: icmp ptr
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: icmp ptr M |
| Occurrences: | 3 in 3 configs, 2 test files, 4 more counted only |
| Snippet from: | exception-pointer-register.bc2c0376f3.ll (mutant of exception-pointer-register.ll) @caller via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zicond -O3 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global i32
@G.3 = external global i32
declare void @foo(ptr)
declare void @bar(ptr)
declare dso_local i32 @__gxx_personality_v0(...)
define void @caller(ptr %p) personality ptr @__gxx_personality_v0 {
entry:
%0 = icmp eq ptr %p, null
br i1 %0, label %bb1, label %bb2
bb1: ; preds = %entry
%LGV = load i32, ptr @G.2, align 4
invoke void @foo(ptr %p)
to label %end1 unwind label %lpad
bb2: ; preds = %entry
invoke void @bar(ptr %p)
to label %end2 unwind label %lpad
lpad: ; preds = %bb2, %bb1
%1 = landingpad { ptr, i32 }
cleanup
call void @callee(ptr %p)
resume { ptr, i32 } %1
end1: ; preds = %bb1
%2 = phi i32 [ %LGV, %bb1 ]
store i32 %2, ptr @G.3, align 4
ret void
end2: ; preds = %bb2
ret void
}
declare hidden void @callee(ptr)
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zicond -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zicond -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: icmp: ' %0 = icmp eq ptr %p, null' (in function: caller)
warning: Instruction selection used fallback path for caller
Occurrences (3):
| Input | Function | Config |
|---|
| exception-pointer-register.8f56658140.ll (mutant of exception-pointer-register.ll) | caller | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx,+c -O2 |
| exception-pointer-register.bc2c0376f3.ll (mutant of exception-pointer-register.ll) | caller | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zicond -O3 |
| fli-licm.a1d6fa7c11.ll (mutant of fli-licm.ll) | process_nodes | -mtriple=riscv32 -target-abi=ilp32f -mattr=+zhinx -O2 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.