fallback: translate: call llvm.smin.i32
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: call llvm.smin.i32 M |
| Occurrences: | 4 in 3 configs, 3 test files, 13 more counted only |
| Snippet from: | select-zbb.a02c683f8b.ll (mutant of select-zbb.ll) @select_smin_1 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbb,+zfinx -O1 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i32 @select_smin_1(i1 zeroext %cond, i32 %a, i32 %b) {
entry:
%c = call i32 @llvm.smin.i32(i32 %a, i32 %b)
%C = icmp uge i32 %a, 0
%res = select i1 %C, i32 %c, i32 %b
ret i32 %res
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbb,+zfinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbb,+zfinx -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.smin.i32: ' %c = call i32 @llvm.smin.i32(i32 %a, i32 %b)' (in function: select_smin_1)
warning: Instruction selection used fallback path for select_smin_1
Occurrences (4):
| Input | Function | Config |
|---|
| min-max.5abe0b9e25.ll (mutant of min-max.ll) | smin_i32 | -mtriple=riscv64 -mattr=+zdinx -O1 -verify-machineinstrs |
| select-zbb.a02c683f8b.ll (mutant of select-zbb.ll) | select_smin_1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbb,+zfinx -O1 |
| select-zbb.a02c683f8b.ll (mutant of select-zbb.ll) | select_smin_2 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbb,+zfinx -O1 |
| short-forward-branch-opt-min-max.ca3f4e3d0e.ll (mutant of short-forward-branch-opt-min-max.ll) | select_example_smin | -mtriple=riscv64 -mattr=+zfinx -O2 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.