fallback: translate: call llvm.smax.i32
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.smax.i32 M |
| Occurrences: | 3 in 2 configs, 2 test files, 13 more counted only |
| Snippet from: | min-max.6e952948af.ll (mutant of min-max.ll) @smax_i32 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+zbb,+zfinx -O1 -verify-machineinstrs |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i1
define signext i32 @smax_i32(i32 signext %a, i32 signext %b) {
%c = call i32 @llvm.smax.i32(i32 %a, i32 %b)
%C = icmp ugt i32 %a, %a
store i1 %C, ptr @G.1, align 1
ret i32 %c
}
; 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=riscv32 -mattr=+zbb,+zfinx -O1 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zbb,+zfinx -O1 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.smax.i32: ' %c = call i32 @llvm.smax.i32(i32 %a, i32 %b)' (in function: smax_i32)
warning: Instruction selection used fallback path for smax_i32
Occurrences (3):
| Input | Function | Config |
|---|
| min-max.6e952948af.ll (mutant of min-max.ll) | smax_i32 | -mtriple=riscv32 -mattr=+zbb,+zfinx -O1 -verify-machineinstrs |
| select-zbb.95aeb82777.ll (mutant of select-zbb.ll) | select_smax_2 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zfinx -O0 -code-model=medium |
| select-zbb.95aeb82777.ll (mutant of select-zbb.ll) | select_smax_4 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zfinx -O0 -code-model=medium |
Generated 2026-11-29 14:49 UTC.