fallback: translate: call llvm.abs.i16
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.abs.i16 M |
| Occurrences: | 5 in 4 configs, 2 test files, 24 more counted only |
| Snippet from: | iabs.6ef5442da9.ll (mutant of iabs.ll) @abs16 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbkb,+zhinx -O3 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i16
define i16 @abs16(i16 %x) {
%abs = tail call i16 @llvm.abs.i16(i16 %x, i1 true)
store i16 %abs, ptr @G, align 2
ret i16 %abs
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.abs.i16(i16, i1 immarg) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbkb,+zhinx -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbkb,+zhinx -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.abs.i16: ' %abs = tail call i16 @llvm.abs.i16(i16 %x, i1 true)' (in function: abs16)
warning: Instruction selection used fallback path for abs16
Occurrences (5):
| Input | Function | Config |
|---|
| iabs.6eba26fbf3.ll (mutant of iabs.ll) | abs16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+c,+zdinx -O0 |
| iabs.6ef5442da9.ll (mutant of iabs.ll) | abs16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbkb,+zhinx -O3 |
| iabs.98761a06a0.ll (mutant of iabs.ll) | zext_abs16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx -O3 |
| iabs.98761a06a0.ll (mutant of iabs.ll) | zext64_abs16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx -O3 |
| iabs.c6d41119bd.ll (mutant of iabs.ll) | zext64_abs16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zcb,+zhinx -O0 -code-model=small |
Generated 2026-11-29 14:49 UTC.