fallback: legalize: G_VECREDUCE_FMINIMUM <N x f16>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_VECREDUCE_FMINIMUM <N x f16> M
Occurrences:3 in 3 configs, 1 test files, 15 more counted only
Snippet from:fixed-vectors-reduction-fp.23e67ef23a.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fminimum_v64f16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+m -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i1

define half @vreduce_fminimum_v64f16(ptr %x) {
  %LGV = load i1, ptr @G.2, align 1
  %v = load <64 x half>, ptr %x, align 128
  %red = call half @llvm.vector.reduce.fminimum.v64f16(<64 x half> %v)
  %B = xor i1 %LGV, false
  store i1 %B, ptr @G.2, align 1
  ret half %red
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
fixed-vectors-reduction-fp.23e67ef23a.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v64f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+m -O1
fixed-vectors-reduction-fp.b85002b2e5.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v64f16_nonans-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O2
fixed-vectors-reduction-fp.eafd04ab2b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v64f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+m,+zcb -O3

Generated 2026-11-29 14:49 UTC.