fallback: translate: call llvm.smax.i32
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.smax.i32 M |
| Occurrences: | 5 in 5 configs, 2 test files, 21 more counted only |
| Snippet from: | short-forward-branch-opt-min-max.a9006f6701.ll (mutant of short-forward-branch-opt-min-max.ll) @select_example_smax via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+zbb,+short-forward-branch-iminmax,+zcb,+zhinx -O1 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i32 @select_example_smax(i32 %a, i32 %b, i1 zeroext %x, i32 %y) {
entry:
%res = call i32 @llvm.smax.i32(i32 %a, i32 %y)
%B = mul i32 %res, %res
ret i32 %B
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -mattr=+zbb,+short-forward-branch-iminmax,+zcb,+zhinx -O1 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zbb,+short-forward-branch-iminmax,+zcb,+zhinx -O1 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.smax.i32: ' %res = call i32 @llvm.smax.i32(i32 %a, i32 %y)' (in function: select_example_smax)
warning: Instruction selection used fallback path for select_example_smax
Occurrences (5):
| Input | Function | Config |
|---|
| select-zbb.1396f249ff.ll (mutant of select-zbb.ll) | select_smax_2 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zhinx -O2 |
| select-zbb.3037586448.ll (mutant of select-zbb.ll) | select_smax_4 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbb,+zfinx -O0 |
| select-zbb.853e0e69d4.ll (mutant of select-zbb.ll) | select_smax_1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbb,+zfinx -O2 |
| select-zbb.e84a9e4e5e.ll (mutant of select-zbb.ll) | select_smax_3 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zicond,+zfinx -O1 |
| short-forward-branch-opt-min-max.a9006f6701.ll (mutant of short-forward-branch-opt-min-max.ll) | select_example_smax | -mtriple=riscv64 -mattr=+zbb,+short-forward-branch-iminmax,+zcb,+zhinx -O1 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.