fallback: translate: sub i8

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: sub i8 M
Occurrences:3 in 3 configs, 3 test files, 15 more counted only
Snippet from:fold-addi-loadstore.c7588a14a8.ll (mutant of fold-addi-loadstore.ll) @load_cost_overflow via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+xqcili<,+zdinx -O0
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define dso_local i64 @load_cost_overflow() #0 {
entry:
  %B = sub i8 127, 0
  %0 = load i64, ptr inttoptr (i64 2044 to ptr), align 4
  store i8 %B, ptr poison, align 1
  ret i64 %0
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+xqcili<,+zdinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+xqcili<,+zdinx -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sub: '  %B = sub i8 127, 0' (in function: load_cost_overflow)
warning: Instruction selection used fallback path for load_cost_overflow

Occurrences (3):

InputFunctionConfig
fold-addi-loadstore.c7588a14a8.ll (mutant of fold-addi-loadstore.ll)load_cost_overflow-mtriple=riscv32 -verify-machineinstrs -mattr=+xqcili<,+zdinx -O0
min-max.6e952948af.ll (mutant of min-max.ll)umin_undef_i32-mtriple=riscv32 -mattr=+zbb,+zfinx -O1 -verify-machineinstrs
rvp-simd-64.1c56d80e.1040a39bb3.ll (mutant of rvp-simd-64.1c56d80e.ll)test_pmerge_mvmn_i32x2-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-p,+m,+zbb,+zhinx -O2 -code-model=medium

Generated 2026-11-29 14:49 UTC.