fallback: translate: srem i64

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: srem i64 M
Occurrences:8 in 8 configs, 8 test files, 42 more counted only
Snippet from:double-imm.3bd7ddaf44.ll (mutant of double-imm.ll) @double_imm via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx,+zhinx -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i64

; Function Attrs: nounwind
define double @double_imm() #0 {
  %B = srem i64 1, 1
  store i64 %B, ptr @G.1, align 4
  ret double f0x400921FB54442D18
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

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

Occurrences (8):

InputFunctionConfig
double-imm.3bd7ddaf44.ll (mutant of double-imm.ll)double_imm-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx,+zhinx -O3
half-arith-strict.8e7e10fb5b.ll (mutant of half-arith-strict.ll)fnmsub_h-mtriple=riscv64 -verify-machineinstrs -disable-strictnode-mutation -target-abi lp64 -mattr=+zhinxmin -O1
orc-b-patterns-rv64.d5df38aa2e.ll (mutant of orc-b-patterns-rv64.ll)byte_bit_5-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O2 -code-model=small
rv32zbb.cb8b42065f.ll (mutant of rv32zbb.ll)zexth_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3
scmp.ac1e6606df.ll (mutant of scmp.ll)scmp.32.64-mtriple=riscv64 -mattr=+m,+zhinx -O0 -verify-machineinstrs
sf_vqmaccus_2x8x2.d0727eb2.d6009261.3efa5092d7.ll (mutant of sf_vqmaccus_2x8x2.d0727eb2.d6009261.ll)intrinsic_vqmaccus_2x8x2_tu_i32m1-mtriple=riscv64 -verify-machineinstrs -mattr=+xsfvqmaccdod,+zfinx,+zvkb,+xtheadba,+zhinx -O0 -code-model=medium
shifts.1fe2b900ae.ll (mutant of shifts.ll)ashr64_shamt32-mtriple=riscv64 -verify-machineinstrs -mattr=+zvbb,+zdinx -O2 -code-model=small
xqcibm-insbi.e6f5624f55.ll (mutant of xqcibm-insbi.ll)insb_i64-mtriple=riscv32 --verify-machineinstrs -mattr=+zfinx -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.