fallback: translate: mul i128

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: mul i128 M
Occurrences:3 in 3 configs, 3 test files, 17 more counted only
Snippet from:atomic-rmw.0b963ccc7d.ll (mutant of atomic-rmw.ll) @atomicrmw_xchg_i32_acquire via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+a,+zabha,+zhinx -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i128

; Function Attrs: nounwind
define i32 @atomicrmw_xchg_i32_acquire(ptr %a, i32 %b) #0 {
  %B = mul i128 0, 18446744073709551616
  %1 = atomicrmw xchg ptr %a, i32 %b acquire, align 4
  store i128 %B, ptr @G, align 4
  ret i32 %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+zabha,+zhinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+zabha,+zhinx -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
atomic-rmw.0b963ccc7d.ll (mutant of atomic-rmw.ll)atomicrmw_xchg_i32_acquire-mtriple=riscv64 -verify-machineinstrs -mattr=+a,+zabha,+zhinx -O0
half-arith.30b35be33d.ll (mutant of half-arith.ll)fsqrt_h-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin,+zhinx -O3
half-intrinsics.9d7994f232.ll (mutant of half-intrinsics.ll)log10_f16-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zdinx -O0

Generated 2026-11-29 14:49 UTC.