fallback: translate: urem i32

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: urem i32 M
Occurrences:6 in 6 configs, 6 test files, 77 more counted only
Snippet from:xqcibm-extract.fb36bca0f4.ll (mutant of xqcibm-extract.ll) @extu_from_lshr_and_i32 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+xqcibm,+zhinx -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @extu_from_lshr_and_i32(i32 %x) {
  %B = urem i32 %x, 0
  ret i32 %B
}

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+xqcibm,+zhinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+xqcibm,+zhinx -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (6):

InputFunctionConfig
alu-roundtrip.44c426980e.ll (mutant of alu-roundtrip.ll)urem_i32-mtriple=riscv32 -verify-machineinstrs -riscv-enable-copy-propagation=false -mattr=+m,+zfinx -O0
float-convert-strict.ad1c4b5061.ll (mutant of float-convert-strict.ll)fcvt_s_w-mtriple=riscv32 -verify-machineinstrs -disable-strictnode-mutation -target-abi=ilp32 -mattr=+zfinx -O3
inline-asm.10347e0351.ll (mutant of inline-asm.ll)modifier_i_imm-mtriple=riscv32 -verify-machineinstrs -no-integrated-as -mattr=+zhinx -O2
sadd_sat.cd0663f8be.ll (mutant of sadd_sat.ll)func-mtriple=riscv64 -mattr=+m,+zba,+zhinx -O0 -verify-machineinstrs
ucmp.ca680b02f0.ll (mutant of ucmp.ll)ucmp.32.32_sext-mtriple=riscv64 -mattr=+zfinx -O1 -verify-machineinstrs
xqcibm-extract.fb36bca0f4.ll (mutant of xqcibm-extract.ll)extu_from_lshr_and_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+xqcibm,+zhinx -O1

Generated 2026-11-29 14:49 UTC.