fallback: translate: mul i128

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: mul i128 M
Occurrences:4 in 4 configs, 4 test files, 13 more counted only
Snippet from:ucmp.76842a73a8.ll (mutant of ucmp.ll) @ucmp.32.32_zext via llvm-extract
Config:-mtriple=riscv32 -mattr=+zhinx -O2 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global i128

; Function Attrs: nounwind
define i32 @ucmp.32.32_zext(i32 zeroext %x, i32 zeroext %y) #0 {
  %B = mul i128 170141183460469231731687303715884105727, -1
  %1 = call i32 @llvm.ucmp.i32.i32(i32 %x, i32 %y)
  store i128 %B, ptr @G.3, align 4
  ret i32 %1
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare range(i32 -1, 2) i32 @llvm.ucmp.i32.i32(i32, i32) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: mul: '  %B = mul i128 170141183460469231731687303715884105727, -1' (in function: ucmp.32.32_zext)
warning: Instruction selection used fallback path for ucmp.32.32_zext

Occurrences (4):

InputFunctionConfig
abdu-neg.6f92d51979.ll (mutant of abdu-neg.ll)abd_minmax_i128-mtriple=riscv64 -mattr=+c,+zdinx -O1 -code-model=small -verify-machineinstrs
float-arith-strict.f55d2f871f.ll (mutant of float-arith-strict.ll)fdiv_s-mtriple=riscv64 -verify-machineinstrs -disable-strictnode-mutation -target-abi=lp64 -mattr=+zfinx,+zdinx,+c -O0
half-convert-strict.7c1caee485.ll (mutant of half-convert-strict.ll)fcvt_h_w_demanded_bits-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -disable-strictnode-mutation -mattr=+zhinx,+zcb -O3 -code-model=medium
ucmp.76842a73a8.ll (mutant of ucmp.ll)ucmp.32.32_zext-mtriple=riscv32 -mattr=+zhinx -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.