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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: srem <vscale x N x i1> M
Occurrences:5 in 5 configs, 5 test files, 96 more counted only
Snippet from:vreductions-mask-vp.bc141c5848.ll (mutant of vreductions-mask-vp.ll) @vpreduce_smin_nxv8i1 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define zeroext i1 @vpreduce_smin_nxv8i1(i1 zeroext %s, <vscale x 8 x i1> %v, <vscale x 8 x i1> %m, i32 zeroext %evl) {
  %B = srem <vscale x 8 x i1> %v, %m
  %r = call i1 @llvm.vp.reduce.smin.nxv8i1(i1 %s, <vscale x 8 x i1> %B, <vscale x 8 x i1> %m, i32 %evl)
  ret i1 %r
}

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

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

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 -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, %m' (in function: vpreduce_smin_nxv8i1)
warning: Instruction selection used fallback path for vpreduce_smin_nxv8i1

Occurrences (5):

InputFunctionConfig
fixed-vectors-extract-subvector.c4eb4770ee.ll (mutant of fixed-vectors-extract-subvector.ll)extract_v8i1_nxv64i1_128-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zvfhmin,+zvfbfmin,+c -O1
vmsif.ef4b7415b3.ll (mutant of vmsif.ll)intrinsic_vmsif_mask_m_nxv64i1_nxv64i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1 -code-model=small
vpmerge-sdnode.8a0b660543.ll (mutant of vpmerge-sdnode.ll)vpmerge_vf_nxv16f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m -O3
vreductions-mask-vp.bc141c5848.ll (mutant of vreductions-mask-vp.ll)vpreduce_smin_nxv8i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2
vsoxei.fe94c4ca49.ll (mutant of vsoxei.ll)intrinsic_vsoxei_mask_v_nxv1f32_nxv1f32_nxv1i32-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+v,+zvfhmin,+zvfbfmin,+zfh -O3

Generated 2026-11-29 14:49 UTC.