fallback: translate: urem i64

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: urem i64 M
Occurrences:6 in 6 configs, 5 test files, 38 more counted only
Snippet from:bswap-bitreverse.04db63aa6b.ll (mutant of bswap-bitreverse.ll) @test_bswap_i64 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadba,+zdinx -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i64 @test_bswap_i64(i64 %a) #0 {
  %B = urem i64 %a, %a
  %B1 = or i64 %B, %a
  ret i64 %B1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

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

Occurrences (6):

InputFunctionConfig
bswap-bitreverse.04db63aa6b.ll (mutant of bswap-bitreverse.ll)test_bswap_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadba,+zdinx -O3
bswap-bitreverse.46d8767000.ll (mutant of bswap-bitreverse.ll)test_bitreverse_bswap_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx -O1 -code-model=small
div_minsize.a9a2ed6b.b27c0ff2.b145ccd1f7.ll (mutant of div_minsize.a9a2ed6b.b27c0ff2.ll)i256_sdiv-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zhinx -O3
iabs.06c84862c4.ll (mutant of iabs.ll)abs64-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx,+c -O1
rotl-rotr.165a80f175.ll (mutant of rotl-rotr.ll)rotl_64_mask_shared-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zihintpause,+zdinx -O0
scmp.9f84261f.076cb2aa38.ll (mutant of scmp.9f84261f.ll)scmp.8.64-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zihintpause -O3

Generated 2026-11-29 14:49 UTC.