fallback: translate: call llvm.abs.i8
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.abs.i8 M |
| Occurrences: | 6 in 5 configs, 1 test files, 17 more counted only |
| Snippet from: | iabs.7392c321aa.ll (mutant of iabs.ll) @abs8 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zdinx,+m -O0 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global i1
define i8 @abs8(i8 %x) {
%abs = tail call i8 @llvm.abs.i8(i8 %x, i1 true)
%C = icmp ule i8 %abs, 0
store i1 %C, ptr @G.2, align 1
ret i8 %abs
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.abs.i8(i8, i1 immarg) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zdinx,+m -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zdinx,+m -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.abs.i8: ' %abs = tail call i8 @llvm.abs.i8(i8 %x, i1 true)' (in function: abs8)
warning: Instruction selection used fallback path for abs8
Occurrences (6):
| Input | Function | Config |
|---|
| iabs.0a4117ac93.ll (mutant of iabs.ll) | abs8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2 |
| iabs.0a4117ac93.ll (mutant of iabs.ll) | zext_abs8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2 |
| iabs.7392c321aa.ll (mutant of iabs.ll) | abs8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zdinx,+m -O0 |
| iabs.9107acc432.ll (mutant of iabs.ll) | zext_abs8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O3 |
| iabs.b9e0a9dcaf.ll (mutant of iabs.ll) | zext16_abs8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zicsr,+zhinx -O1 -code-model=medium |
| iabs.c54907ed9a.ll (mutant of iabs.ll) | abs8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3 |
Generated 2026-11-29 14:49 UTC.