fallback: translate: sub i128

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: sub i128 M
Occurrences:4 in 4 configs, 4 test files, 20 more counted only
Snippet from:split-urem-by-constant.f51b798857.ll (mutant of split-urem-by-constant.ll) @test_urem_7 via llvm-extract
Config:-mtriple=riscv64 -mattr=+m,+zbb,+zdinx -O3 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i128 @test_urem_7(i128 %x) #0 {
  %B = sub i128 %x, 0
  ret i128 %B
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -mattr=+m,+zbb,+zdinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+m,+zbb,+zdinx -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
abds.f8bf26a903.ll (mutant of abds.ll)abd_subnsw_i128_undef-mtriple=riscv32 -mattr=+zbb,+zdinx -O2 -verify-machineinstrs
atomic-cmpxchg.ae21ca806d.ll (mutant of atomic-cmpxchg.ll)cmpxchg_i16_seq_cst_acquire-mtriple=riscv32 -mattr=+a,+ztso,+zacas,+zcb,+zhinx -O1 -code-model=small -verify-machineinstrs
split-urem-by-constant.f51b798857.ll (mutant of split-urem-by-constant.ll)test_urem_7-mtriple=riscv64 -mattr=+m,+zbb,+zdinx -O3 -verify-machineinstrs
zfhmin-imm.e30e64cfc4.ll (mutant of zfhmin-imm.ll)f16_positive_zero-mtriple=riscv32 -target-abi ilp32 -mattr=+zhinxmin,+a -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.