fallback: legalize: G_VECREDUCE_SMIN <N x i16>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_VECREDUCE_SMIN <N x i16> M
Occurrences:3 in 3 configs, 1 test files, 6 more counted only
Snippet from:fixed-vectors-reduction-int.7369cce370.ll (mutant of fixed-vectors-reduction-int.ll) @vreduce_smin_v64i16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zfa,+zve64d -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i16 @vreduce_smin_v64i16(ptr %x) {
  %B = mul <4 x i32> splat (i32 65536), splat (i32 1)
  %v = load <64 x i16>, ptr %x, align 128
  %red = call i16 @llvm.vector.reduce.smin.v64i16(<64 x i16> %v)
  store <4 x i32> %B, ptr poison, align 16
  ret i16 %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.vector.reduce.smin.v64i16(<64 x i16>) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %8:_(i16) = G_VECREDUCE_SMIN %7:_(<64 x i16>) (in function: vreduce_smin_v64i16)
warning: Instruction selection used fallback path for vreduce_smin_v64i16

Occurrences (3):

InputFunctionConfig
fixed-vectors-reduction-int.7369cce370.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_smin_v64i16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zfa,+zve64d -O2
fixed-vectors-reduction-int.863d96b599.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_smin_v8i16-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zvkb,+zbs -O2
fixed-vectors-reduction-int.aa9732c2bb.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_smin_v16i16-mtriple=riscv64 -verify-machineinstrs -O3

Generated 2026-11-29 14:49 UTC.