fallback: translate: srem <N x i32>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: srem <N x i32> M
Occurrences:3 in 3 configs, 3 test files, 13 more counted only
Snippet from:attributes.c8e6785f41.ll (mutant of attributes.ll) @atomic_load_i8_seq_cst via llvm-extract
Config:-mtriple=riscv32 -mattr=+zcb,+zfinx -O2 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global ptr
@G.4 = external global <4 x i32>

; Function Attrs: nounwind
define i8 @atomic_load_i8_seq_cst(ptr %a) #0 {
  %B = srem <4 x i32> splat (i32 65536), splat (i32 2147483647)
  %1 = load atomic i8, ptr %a seq_cst, align 1
  %G = getelementptr bfloat, ptr %a, i128 170141183460469231731687303715884105727
  store ptr %G, ptr @G, align 8
  store <4 x i32> %B, ptr @G.4, align 16
  ret i8 %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: srem: '  %B = srem <4 x i32> splat (i32 65536), splat (i32 2147483647)' (in function: atomic_load_i8_seq_cst)
warning: Instruction selection used fallback path for atomic_load_i8_seq_cst

Occurrences (3):

InputFunctionConfig
attributes.c8e6785f41.ll (mutant of attributes.ll)atomic_load_i8_seq_cst-mtriple=riscv32 -mattr=+zcb,+zfinx -O2 -verify-machineinstrs
clmul-rv64.cd595d8e74.ll (mutant of clmul-rv64.ll)clmulh_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkc,+zhinx -O0
fixed-vectors-shuffle-exact-vlen.58ea213c.ad243e62.8542e13b42.ll (mutant of fixed-vectors-shuffle-exact-vlen.58ea213c.ad243e62.ll)m4_square_num_of_shuffles_in_chunks-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2

Generated 2026-11-29 14:49 UTC.