fallback: translate: srem <vscale x N x i1>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: srem <vscale x N x i1> M
Occurrences:7 in 7 configs, 6 test files, 73 more counted only
Snippet from:vreductions-mask.630d21c1b4.ll (mutant of vreductions-mask.ll) @vreduce_smax_nxv8i1 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zbs -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define zeroext i1 @vreduce_smax_nxv8i1(<vscale x 8 x i1> %v) {
  %B = srem <vscale x 8 x i1> %v, splat (i1 true)
  %red = call i1 @llvm.vector.reduce.smax.nxv8i1(<vscale x 8 x i1> %B)
  ret i1 %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.vector.reduce.smax.nxv8i1(<vscale x 8 x i1>) #0

attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zbs -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zbs -O3 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: srem: '  %B = srem <vscale x 8 x i1> %v, splat (i1 true)' (in function: vreduce_smax_nxv8i1)
warning: Instruction selection used fallback path for vreduce_smax_nxv8i1

Occurrences (7):

InputFunctionConfig
fixed-vectors-extract-i1.7a96e8ee.6c49832b.341cfbaa.7afe3b83.8864b1fe.9984b4e040.ll (mutant of fixed-vectors-extract-i1.7a96e8ee.6c49832b.341cfbaa.7afe3b83.8864b1fe.ll)extractelt_v1i1-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfa,+zfh,+c,+v,+zcb -O1 -code-model=small
vfmuladd-vp.45f70787ef.ll (mutant of vfmuladd-vp.ll)vfmsub_vf_nxv4f32_commute-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zbs -O2
vluxei.792ec8d5e7.ll (mutant of vluxei.ll)intrinsic_vluxei_mask_v_nxv4f64_nxv4f64_nxv4i16-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32d -mattr=+v,+zvfhmin,+zvfbfmin,+zbkb -O1
vnclip.4ac7d4488a.ll (mutant of vnclip.ll)intrinsic_vnclip_mask_vi_nxv16i8_nxv16i16_i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zba,+f -O3
vploadff.762e590a1c.ll (mutant of vploadff.ll)vploadff_nxv32f16-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v,+f,+m -O2
vreductions-mask.630d21c1b4.ll (mutant of vreductions-mask.ll)vreduce_smax_nxv8i1-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zbs -O3
vreductions-mask.fb47a94847.ll (mutant of vreductions-mask.ll)vreduce_or_nxv32i1-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v -O1

Generated 2026-11-29 14:49 UTC.