fallback: translate: srem <N x i64>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: srem <N x i64> M
Occurrences:3 in 3 configs, 3 test files, 7 more counted only
Snippet from:srem-vector-lkk.ca14318922.ll (mutant of srem-vector-lkk.ll) @dont_fold_srem_i64 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define <4 x i64> @dont_fold_srem_i64(<4 x i64> %x) #0 {
  %1 = srem <4 x i64> %x, <i64 1, i64 654, i64 23, i64 5423>
  store <4 x i64> %1, ptr poison, align 32
  ret <4 x i64> %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: srem: '  %1 = srem <4 x i64> %x, <i64 1, i64 654, i64 23, i64 5423>' (in function: dont_fold_srem_i64)
warning: Instruction selection used fallback path for dont_fold_srem_i64

Occurrences (3):

InputFunctionConfig
float-convert.aa42408c52.ll (mutant of float-convert.ll)fcvt_s_lu-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx,+zcb,+zve32x -O1
srem-vector-lkk.ca14318922.ll (mutant of srem-vector-lkk.ll)dont_fold_srem_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2
zicond-fp-select-zfinx.95615862a8.ll (mutant of zicond-fp-select-zfinx.ll)select_i1_f32_0-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zicond,+c -O3

Generated 2026-11-29 14:49 UTC.