fallback: translate: srem <N x i64>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: srem <N x i64> M
Occurrences:4 in 4 configs, 4 test files, 24 more counted only
Snippet from:rv64zbb.399dcfb2ff.ll (mutant of rv64zbb.ll) @orc_b_i16 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O0 -code-model=medium
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.4 = external global <2 x i64>

define i16 @orc_b_i16(i16 %a) {
  %B = srem <2 x i64> splat (i64 -1), splat (i64 9223372036854775807)
  %1 = and i16 %a, 257
  %2 = mul nuw i16 %1, 255
  store <2 x i64> %B, ptr @G.4, align 16
  ret i16 %2
}

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O0 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O0 -code-model=medium -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
nest-register.5012ed284a.ll (mutant of nest-register.ll)nest_receiver-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zicond -O1
rv64-double-convert.f19e86bab6.ll (mutant of rv64-double-convert.ll)uitofp_i128_to_f64-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zdinx -O0
rv64zbb.399dcfb2ff.ll (mutant of rv64zbb.ll)orc_b_i16-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O0 -code-model=medium
short-forward-branch-opt-with-branch-with-immediates_48_slt.ff5d982d72.ll (mutant of short-forward-branch-opt-with-branch-with-immediates_48_slt.ll)branch_with_immSFB_mul-verify-machineinstrs -mtriple=riscv32 -mattr=+xqci,+short-forward-branch-ialu,+short-forward-branch-imul,+m,+zfinx -O1

Generated 2026-11-29 14:49 UTC.