fallback: translate: urem i64

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: urem i64 M
Occurrences:5 in 5 configs, 5 test files, 53 more counted only
Snippet from:and.c163f4a510.ll (mutant of and.ll) @and64_0x00000000fffffff8 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx,+m -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i64 @and64_0x00000000fffffff8(i64 %x) {
  %B = urem i64 %x, 42
  %a = and i64 %x, 4294967288
  store i64 %B, ptr poison, align 4
  ret i64 %a
}

Reproduce:

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

Local llc output:

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

Occurrences (5):

InputFunctionConfig
and.c163f4a510.ll (mutant of and.ll)and64_0x00000000fffffff8-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx,+m -O1
double-imm.3bd7ddaf44.ll (mutant of double-imm.ll)negzero_sel-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx,+zhinx -O3
fp-fcanonicalize.3ea271b8b9.ll (mutant of fp-fcanonicalize.ll)fcanonicalize_v2f64-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx,+zihintpause -O1
iabs.98761a06a0.ll (mutant of iabs.ll)abs64-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx -O3
split-urem-by-constant.b477c9b0fa.ll (mutant of split-urem-by-constant.ll)test_urem_3-mtriple=riscv32 -mattr=+zfinx -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.