fallback: legalize: G_VECREDUCE_FMINIMUM <N x f16>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_VECREDUCE_FMINIMUM <N x f16> M
Occurrences:3 in 3 configs, 1 test files, 13 more counted only
Snippet from:fixed-vectors-reduction-fp.e63192eb58.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fminimum_v128f16 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+d -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define half @vreduce_fminimum_v128f16(ptr %x) {
  %G = getelementptr i16, ptr %x, i16 -1
  %v = load <128 x half>, ptr %G, align 256
  %red = call half @llvm.vector.reduce.fminimum.v128f16(<128 x half> %v)
  ret half %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare half @llvm.vector.reduce.fminimum.v128f16(<128 x half>) #0

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

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+d -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+d -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %4:_(f16) = G_VECREDUCE_FMINIMUM %3:_(<128 x f16>) (in function: vreduce_fminimum_v128f16)
warning: Instruction selection used fallback path for vreduce_fminimum_v128f16

Occurrences (3):

InputFunctionConfig
fixed-vectors-reduction-fp.395395d27b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v128f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zcb,+m -O2
fixed-vectors-reduction-fp.5c4434c733.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v64f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.e63192eb58.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v128f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+d -O1

Generated 2026-11-29 14:49 UTC.