fallback: translate: add i128

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: add i128 M
Occurrences:4 in 4 configs, 2 test files, 29 more counted only
Snippet from:add-before-shl.7f797970bb.ll (mutant of add-before-shl.ll) @add_wide_operand via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -M no-aliases -mattr=+zfinx -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i128 @add_wide_operand(i128 %a) #0 {
  %1 = add i128 %a, 5192296858534827628530496329220096
  %B = sub i128 %1, 170141183460469231731687303715884105727
  ret i128 %B
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -M no-aliases -mattr=+zfinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -M no-aliases -mattr=+zfinx -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: add: '  %1 = add i128 %a, 5192296858534827628530496329220096' (in function: add_wide_operand)
warning: Instruction selection used fallback path for add_wide_operand

Occurrences (4):

InputFunctionConfig
add-before-shl.47a68a5467.ll (mutant of add-before-shl.ll)add_wide_operand-mtriple=riscv64 -verify-machineinstrs -M no-aliases -mattr=+zfinx,+zcb -O2 -code-model=small
add-before-shl.7f797970bb.ll (mutant of add-before-shl.ll)add_wide_operand-mtriple=riscv64 -verify-machineinstrs -M no-aliases -mattr=+zfinx -O1
add-before-shl.fc7d69b80f.ll (mutant of add-before-shl.ll)add_wide_operand-mtriple=riscv64 -verify-machineinstrs -M no-aliases -mattr=+c,+zhinx,+a -O1
scmp.71c37e4bc7.ll (mutant of scmp.ll)scmp.8.128-mtriple=riscv64 -mattr=+zfinx -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.