fallback: translate: urem i64

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: urem i64 M
Occurrences:8 in 8 configs, 7 test files, 30 more counted only
Snippet from:combine-vmnot-setcc.186edb06aa.ll (mutant of combine-vmnot-setcc.ll) @not_trunc_v8i8 via llvm-extract
Config:-mtriple=riscv32 -mattr=+zdinx -O3 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.4 = external global i64

define <8 x i1> @not_trunc_v8i8(<8 x i8> %v) {
  %B = urem i64 0, 0
  %t = trunc <8 x i8> %v to <8 x i1>
  %n = xor <8 x i1> %t, splat (i1 true)
  store i64 %B, ptr @G.4, align 4
  ret <8 x i1> %n
}

Reproduce:

llc -mtriple=riscv32 -mattr=+zdinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zdinx -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (8):

InputFunctionConfig
combine-vmnot-setcc.186edb06aa.ll (mutant of combine-vmnot-setcc.ll)not_trunc_v8i8-mtriple=riscv32 -mattr=+zdinx -O3 -verify-machineinstrs
float-br-fcmp.4904bbe771.ll (mutant of float-br-fcmp.ll)br_fcmp_ole-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zfinx,+zihintpause -O1 -code-model=medium
float-intrinsics.472e5f8676.ll (mutant of float-intrinsics.ll)isnan_fpclass-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O0
half-convert.39e8ad2880.ll (mutant of half-convert.ll)fcvt_h_l-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx,+a -O0
half-convert.fd6e49f33f.ll (mutant of half-convert.ll)fcvt_w_h_sat_sext-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin,+zicsr -O0
mul.793269a53c.ll (mutant of mul.ll)mul64-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zhinx -O1
orc-b-rv64.3e0f8b981d.ll (mutant of orc-b-rv64.ll)orc_b_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zvkb,+zhinx -O1
rv64xtheadbb.a959fc2a84.ll (mutant of rv64xtheadbb.ll)cttz_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+zdinx -O0

Generated 2026-11-29 14:49 UTC.