fallback: translate: call llvm.abs.i16
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.abs.i16 M |
| Occurrences: | 3 in 3 configs, 1 test files, 14 more counted only |
| Snippet from: | iabs.c54907ed9a.ll (mutant of iabs.ll) @zext64_abs16 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i64 @zext64_abs16(i16 signext %x) {
%a = call i16 @llvm.abs.i16(i16 %x, i1 false)
%b = zext i16 %a to i64
%C = icmp ugt i16 %x, %x
store i1 %C, ptr poison, align 1
ret i64 %b
}
; 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=+zfinx -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.abs.i16: ' %a = call i16 @llvm.abs.i16(i16 %x, i1 false)' (in function: zext64_abs16)
warning: Instruction selection used fallback path for zext64_abs16
Occurrences (3):
| Input | Function | Config |
|---|
| iabs.0ae606f26d.ll (mutant of iabs.ll) | zext_abs16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx,+zicond -O1 -code-model=small |
| iabs.9107acc432.ll (mutant of iabs.ll) | zext_abs16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O3 |
| iabs.c54907ed9a.ll (mutant of iabs.ll) | zext64_abs16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3 |
Generated 2026-11-29 14:49 UTC.