fallback: translate: add i8
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: add i8 M |
| Occurrences: | 3 in 3 configs, 3 test files, 30 more counted only |
| Snippet from: | typepromotion-overflow.4affa87b4a.ll (mutant of typepromotion-overflow.ll) @sext_sub_underflow_neg via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+m,+zdinx -O3 -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i32 @sext_sub_underflow_neg(i8 zeroext %a) {
%sub = add i8 %a, -4
%cmp = icmp ult i8 %sub, -3
%C = icmp sge i8 %sub, 1
%res = select i1 %cmp, i32 8, i32 16
store i1 %C, ptr poison, align 1
ret i32 %res
}
Reproduce:
llc -mtriple=riscv64 -mattr=+m,+zdinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+m,+zdinx -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: add: ' %sub = add i8 %a, -4' (in function: sext_sub_underflow_neg)
warning: Instruction selection used fallback path for sext_sub_underflow_neg
Occurrences (3):
| Input | Function | Config |
|---|
| rv32zbkb.ecc4a8eacc.ll (mutant of rv32zbkb.ll) | packh_i16_2 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O0 |
| typepromotion-overflow.4affa87b4a.ll (mutant of typepromotion-overflow.ll) | sext_sub_underflow_neg | -mtriple=riscv64 -mattr=+m,+zdinx -O3 -verify-machineinstrs |
| umulo-128-legalisation-lowering.83482660bc.ll (mutant of umulo-128-legalisation-lowering.ll) | muloti_test | -mtriple=riscv32 -mattr=+m,+zhinx,+zihintpause -O3 -code-model=medium -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.