fallback: legalize: G_SREM <4 x s32>

Run:explore-04ca53e65f-20261014-114124
Kind:fallback
Category:legalize: G_SREM <4 x s32> NEW
Occurrences:10 in 8 configs, 5 test files
Snippet from:rv32zbkb.62b0f13479.ll (mutant of rv32zbkb.ll) @packh_zero_i8 via llvm-extract + llvm-reduce
Config:-mtriple=riscv32 -mattr=+zbkb -verify-machineinstrs
Local check:reproduces at 04ca53e65f
Compiler Explorer:https://godbolt.org/z/j8qrsdE4d (llc-assertions-trunk, checked 2026-10-14 11:49 UTC): G reproduces

Snippet:

define <4 x i32> @packh_zero_i8() {
  %B = srem <4 x i32> splat (i32 1), zeroinitializer
  ret <4 x i32> %B
}

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv32 -mattr=+zbkb -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*01remark: <unknown>:0:0: unable to legalize instruction: %5:_(<4 x s32>) = G_SREM %1:_, %3:_ (in function: packh_zero_i8)
warning: Instruction selection used fallback path for packh_zero_i8
SelectionDAG (control)-mtriple=riscv32 -mattr=+zbkb -verify-machineinstrs -global-isel=001-

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %5:_(<4 x s32>) = G_SREM %1:_, %3:_ (in function: packh_zero_i8)
warning: Instruction selection used fallback path for packh_zero_i8

Occurrences (10):

InputFunctionConfig
calling-conv-sext-zext.6841dc235b.ll (mutant of calling-conv-sext-zext.ll)ret_callresult_anyint32_as_anyint32-mtriple=riscv32 -verify-machineinstrs
memmove.14a6403b99.ll (mutant of memmove.ll)memmove_i64_var-mtriple=riscv64 -mattr=+unaligned-scalar-mem
memmove.7082286db0.ll (mutant of memmove.ll)memmove_i64_var-mtriple=riscv32
memmove.7fb4cdfd59.ll (mutant of memmove.ll)memmove_i64_var-mtriple=riscv32 -mattr=+unaligned-scalar-mem
memmove.a4088bb268.ll (mutant of memmove.ll)memmove_i64_var-mtriple=riscv64
rv32zbb.3d93253099.ll (mutant of rv32zbb.ll)ctpop_i32_ne_one-mtriple=riscv32 -mattr=+zbb -verify-machineinstrs
rv32zbb.99f22e8cb0.ll (mutant of rv32zbb.ll)ctpop_i32_ne_one-mtriple=riscv32 -verify-machineinstrs
rv32zbkb.62b0f13479.ll (mutant of rv32zbkb.ll)packh_zero_i8-mtriple=riscv32 -mattr=+zbkb -verify-machineinstrs
rv32zbkb.a726e5ac6f.ll (mutant of rv32zbkb.ll)packh_zero_i8-mtriple=riscv32 -verify-machineinstrs
rvp-mul-parts-acc-fold.48870374a5.ll (mutant of rvp-mul-parts-acc-fold.ll)accumulate_chain-mtriple=riscv64 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.