fallback: translate: call llvm.umin.i32
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.umin.i32 M |
| Occurrences: | 4 in 4 configs, 2 test files, 12 more counted only |
| Snippet from: | select-zbb.0e6f8c4258.ll (mutant of select-zbb.ll) @select_umin_1 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i32 @select_umin_1(i1 zeroext %cond, i32 %a, i32 %b) {
entry:
%c = call i32 @llvm.umin.i32(i32 %a, i32 %b)
%res = select i1 %cond, i32 %c, i32 %b
%B = sub i32 %res, %res
ret i32 %B
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.umin.i32: ' %c = call i32 @llvm.umin.i32(i32 %a, i32 %b)' (in function: select_umin_1)
warning: Instruction selection used fallback path for select_umin_1
Occurrences (4):
| Input | Function | Config |
|---|
| select-zbb.0e6f8c4258.ll (mutant of select-zbb.ll) | select_umin_1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx -O2 |
| select-zbb.7342433bdb.ll (mutant of select-zbb.ll) | select_umin_2 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zicond,+zdinx -O1 |
| short-forward-branch-opt-min-max.5b53c29527.ll (mutant of short-forward-branch-opt-min-max.ll) | select_example_umin | -mtriple=riscv64 -mattr=+zbb,+zhinx -O2 -verify-machineinstrs |
| short-forward-branch-opt-min-max.9154c6208a.ll (mutant of short-forward-branch-opt-min-max.ll) | select_example_umin | -mtriple=riscv64 -mattr=+zbb,+short-forward-branch-ialu,+zfinx,+zhinx -O1 -code-model=small -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.