fallback: translate: srem i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: srem i32 M
Occurrences:6 in 6 configs, 6 test files, 70 more counted only
Snippet from:fixed-vectors-int-splat.f5f3faba9f.ll (mutant of fixed-vectors-int-splat.ll) @splat_zero_v7i16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global i32

define void @splat_zero_v7i16(ptr %p) {
  %B = srem i32 -1, -2147483648
  store <7 x i16> zeroinitializer, ptr %p, align 16
  store i32 %B, ptr @G.3, align 4
  ret void
}

Reproduce:

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

Local llc output:

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

Occurrences (6):

InputFunctionConfig
attributes.7de1e03729.ll (mutant of attributes.ll)atomic_load_i8_seq_cst-mtriple=riscv64 -mattr=+ziccif,+zhinx -O3 -verify-machineinstrs
calling-conv-ilp32-ilp32f-ilp32d-common.ead05e93f1.ll (mutant of calling-conv-ilp32-ilp32f-ilp32d-common.ll)callee_large_scalars_exhausted_regs-mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+zdinx -O1
fixed-vectors-int-splat.f5f3faba9f.ll (mutant of fixed-vectors-int-splat.ll)splat_zero_v7i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O2
machinelicm-address-pseudos.aff0dd564e.ll (mutant of machinelicm-address-pseudos.ll)test_la_tls_gd-mtriple=riscv32 -relocation-model=pic -verify-machineinstrs -mattr=+zfinx -O2
rv64m-exhaustive-w-insts.4d2e4de9e5.ll (mutant of rv64m-exhaustive-w-insts.ll)zext_remw_zext_sext-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zdinx -O2
vararg.e0e3dc3658.ll (mutant of vararg.ll)va3_va_arg-mtriple=riscv32 -target-abi ilp32e -verify-machineinstrs -mattr=+zcb,+zhinx -O3

Generated 2026-11-29 14:49 UTC.