fallback: translate: urem i128

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: urem i128 M
Occurrences:4 in 4 configs, 4 test files, 10 more counted only
Snippet from:rv64-float-convert.9ed9e1e93d.ll (mutant of rv64-float-convert.ll) @fptoui_f32_to_i128 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64 -verify-machineinstrs -mattr=+zfinx,+zicsr -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i128 @fptoui_f32_to_i128(float %a) #0 {
  %B = urem i128 0, 170141183460469231731687303715884105727
  ret i128 %B
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64 -verify-machineinstrs -mattr=+zfinx,+zicsr -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64 -verify-machineinstrs -mattr=+zfinx,+zicsr -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
bswap-bitreverse.b0294ae5f3.ll (mutant of bswap-bitreverse.ll)test_bitreverse_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+experimental-p,+zdinx,+zcb -O1
fastcc-without-f-reg.a1fc7d8c5e.ll (mutant of fastcc-without-f-reg.ll)h-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zbb -O3
fpenv-xlen.94c18469db.ll (mutant of fpenv-xlen.ll)func_set_fpmode-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zdinx -O2
rv64-float-convert.9ed9e1e93d.ll (mutant of rv64-float-convert.ll)fptoui_f32_to_i128-mtriple=riscv64 -target-abi=lp64 -verify-machineinstrs -mattr=+zfinx,+zicsr -O1

Generated 2026-11-29 14:49 UTC.