fallback: translate: urem i32

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: urem i32 M
Occurrences:7 in 7 configs, 7 test files, 93 more counted only
Snippet from:select-zbb.7342433bdb.ll (mutant of select-zbb.ll) @select_umin_3 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zicond,+zdinx -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @select_umin_3(i1 zeroext %cond, i32 %a) {
entry:
  %B = urem i32 %a, -1
  ret i32 %B
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: urem: '  %B = urem i32 %a, -1' (in function: select_umin_3)
warning: Instruction selection used fallback path for select_umin_3

Occurrences (7):

InputFunctionConfig
attributes.135c1fd812.ll (mutant of attributes.ll)addi-mtriple=riscv64 -mattr=+zdinx -O0 -verify-machineinstrs
half-convert.3d8f715975.ll (mutant of half-convert.ll)fcvt_h_w-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zdinx,+zhinx -O2
reserved-regs.a974e17fdc.ll (mutant of reserved-regs.ll)foo-mtriple=riscv64 -verify-machineinstrs -mattr=+reserve-x11,+zhinx,+zbkb -O1
rvp-scalar-rv64.72c48a2807.ll (mutant of rvp-scalar-rv64.ll)macc_w00_commute-mtriple=riscv64 -mattr=+experimental-p,+m,+zdinx -O0 -verify-machineinstrs
select-to-and-zext.1bd51d71c0.ll (mutant of select-to-and-zext.ll)from_i1_fail_bad_select0-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2 -code-model=small
select-zbb.7342433bdb.ll (mutant of select-zbb.ll)select_umin_3-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zicond,+zdinx -O1
urem-lkk.5edce09a89.ll (mutant of urem-lkk.ll)dont_fold_urem_power_of_two-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O1

Generated 2026-11-29 14:49 UTC.