fallback: translate: call llvm.abs.i32
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.abs.i32 M |
| Occurrences: | 4 in 4 configs, 2 test files, 19 more counted only |
| Snippet from: | iabs.dde6469f77.ll (mutant of iabs.ll) @abs32 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbs,+zhinx -O2 -code-model=small |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i32 @abs32(i32 %x) {
%abs = tail call i32 @llvm.abs.i32(i32 %x, i1 true)
%C = icmp slt i1 true, true
store i1 %C, ptr poison, align 1
ret i32 %abs
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbs,+zhinx -O2 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbs,+zhinx -O2 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.abs.i32: ' %abs = tail call i32 @llvm.abs.i32(i32 %x, i1 true)' (in function: abs32)
warning: Instruction selection used fallback path for abs32
Occurrences (4):
| Input | Function | Config |
|---|
| iabs.13708d4a2b.ll (mutant of iabs.ll) | zext_abs32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zhinx -O2 |
| iabs.c6d41119bd.ll (mutant of iabs.ll) | zext_abs32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zcb,+zhinx -O0 -code-model=small |
| iabs.dde6469f77.ll (mutant of iabs.ll) | abs32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbs,+zhinx -O2 -code-model=small |
| rv64zbb.17700dc0e6.ll (mutant of rv64zbb.ll) | abs_i32_sext | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+xtheadba -O2 -code-model=medium |
Generated 2026-11-29 14:49 UTC.