fallback: translate: sub i16
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: sub i16 M |
| Occurrences: | 4 in 4 configs, 4 test files, 9 more counted only |
| Snippet from: | iabs.1b9cffee37.ll (mutant of iabs.ll) @select_abs16 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx,+zicsr -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i16 @select_abs16(i16 %x) {
%1 = sub nsw i16 0, %x
%2 = icmp slt i16 %x, 0
%3 = select i1 %2, i16 %1, i16 %x
ret i16 %3
}
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx,+zicsr -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx,+zicsr -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: sub: ' %1 = sub nsw i16 0, %x' (in function: select_abs16)
warning: Instruction selection used fallback path for select_abs16
Occurrences (4):
| Input | Function | Config |
|---|
| div_minsize.e356339e44.ll (mutant of div_minsize.ll) | testsize3 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O0 |
| fastcc-without-f-reg.d9032922b5.ll (mutant of fastcc-without-f-reg.ll) | caller_float | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zihintpause -O1 |
| float-isnan.a2e3ed51ab.ll (mutant of float-isnan.ll) | float_is_nan | -mtriple=riscv32 -target-abi ilp32 -verify-machineinstrs -mattr=+zfinx,+a,+zhinx -O1 -code-model=medium |
| iabs.1b9cffee37.ll (mutant of iabs.ll) | select_abs16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx,+zicsr -O1 |
Generated 2026-11-29 14:49 UTC.