fallback: translate: udiv i128

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: udiv i128 M
Occurrences:5 in 5 configs, 5 test files, 7 more counted only
Snippet from:split-udiv-by-constant.4cfd4db533.ll (mutant of split-udiv-by-constant.ll) @test_udiv_255 via llvm-extract
Config:-mtriple=riscv64 -mattr=+m,+zdinx -O0 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global <2 x i1>

; Function Attrs: nounwind
define i128 @test_udiv_255(i128 %x) #0 {
  %a = udiv i128 %x, 255
  %C = icmp uge <2 x i64> zeroinitializer, splat (i64 1)
  store <2 x i1> %C, ptr @G, align 1
  ret i128 %a
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: udiv: '  %a = udiv i128 %x, 255' (in function: test_udiv_255)
warning: Instruction selection used fallback path for test_udiv_255

Occurrences (5):

InputFunctionConfig
add-before-shl.ebbcf59ac8.ll (mutant of add-before-shl.ll)add_wide_operand-mtriple=riscv64 -verify-machineinstrs -M no-aliases -mattr=+zhinx,+xtheadba -O0
double-convert.d878af5bf6.ll (mutant of double-convert.ll)fcvt_l_d-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zdinx -O3
float-fcmp-strict.ff2e5732bb.ll (mutant of float-fcmp-strict.ll)fcmp_ule-mtriple=riscv64 -verify-machineinstrs -disable-strictnode-mutation -mattr=+zdinx,+zhinx -O0
reserved-reg-errors-alias.23942e9b60.ll (mutant of reserved-reg-errors-alias.ll)cd-mtriple=riscv64 -target-abi=lp64 -mattr=+zhinx,+zfinx,+zdinx,+reserve-x11 -O2 -code-model=small -verify-machineinstrs
split-udiv-by-constant.4cfd4db533.ll (mutant of split-udiv-by-constant.ll)test_udiv_255-mtriple=riscv64 -mattr=+m,+zdinx -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.