fallback: translate: sub i128

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: sub i128 M
Occurrences:5 in 5 configs, 5 test files, 12 more counted only
Snippet from:half-imm.70c3ddc956.ll (mutant of half-imm.ll) @undef via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define half @undef() #0 {
  %B = sub i128 170141183460469231731687303715884105727, 42
  store i128 %B, ptr poison, align 4
  ret half undef
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sub: '  %B = sub i128 170141183460469231731687303715884105727, 42' (in function: undef)
warning: Instruction selection used fallback path for undef

Occurrences (5):

InputFunctionConfig
abds-neg.fc72bdbded.ll (mutant of abds-neg.ll)abd_subnsw_i128_undef-mtriple=riscv32 -mattr=+zbb,+zfinx -O2 -verify-machineinstrs
div_minsize.a9a2ed6b.6b616ab8a8.ll (mutant of div_minsize.a9a2ed6b.ll)i128_sdiv-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zhinx,+zicond,+a -O0
float-imm.3127fbb859.ll (mutant of float-imm.ll)float_imm-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O2
half-imm.70c3ddc956.ll (mutant of half-imm.ll)undef-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1
rv64-double-convert-strict.8eab116930.ll (mutant of rv64-double-convert-strict.ll)uitofp_i128_to_f64-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -disable-strictnode-mutation -mattr=+zdinx -O3

Generated 2026-11-29 14:49 UTC.