fallback: translate: urem i128

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

Snippet:

@G.4 = external global i1

; Function Attrs: nounwind
define i128 @test_urem_257(i128 %x) #0 {
  %a = urem i128 %x, 257
  %B = sdiv i1 true, true
  store i1 %B, ptr @G.4, align 1
  ret i128 %a
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
rv64-float-convert.3fc04863c2.ll (mutant of rv64-float-convert.ll)uitofp_i128_to_f32-mtriple=riscv64 -target-abi=lp64 -verify-machineinstrs -mattr=+zdinx -O0
split-urem-by-constant.df832759e7.ll (mutant of split-urem-by-constant.ll)test_urem_257-mtriple=riscv64 -mattr=+m,+zhinx,+zicond -O0 -verify-machineinstrs
split-urem-by-constant.df832759e7.ll (mutant of split-urem-by-constant.ll)test_urem_7_shl_30-mtriple=riscv64 -mattr=+m,+zhinx,+zicond -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.