fallback: legalize: G_VECREDUCE_FMIN <N x f16>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_VECREDUCE_FMIN <N x f16> M
Occurrences:4 in 4 configs, 1 test files, 13 more counted only
Snippet from:fixed-vectors-reduction-fp.698eaa4590.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fmin_v4f16_nonans via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zve32x -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global <4 x half>

define half @vreduce_fmin_v4f16_nonans(ptr %x) {
  %v = load <4 x half>, ptr %x, align 8
  %red = call nnan half @llvm.vector.reduce.fmin.v4f16(<4 x half> %v)
  %B = frem <4 x half> %v, %v
  store <4 x half> %B, ptr @G.1, align 8
  ret half %red
}

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

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

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zve32x -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zve32x -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %2:_(f16) = nnan G_VECREDUCE_FMIN %1:_(<4 x f16>) (in function: vreduce_fmin_v4f16_nonans)
warning: Instruction selection used fallback path for vreduce_fmin_v4f16_nonans

Occurrences (4):

InputFunctionConfig
fixed-vectors-reduction-fp.04fd429025.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v128f16-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zfa,+c -O2
fixed-vectors-reduction-fp.698eaa4590.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v4f16_nonans-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zve32x -O0
fixed-vectors-reduction-fp.a658a487ab.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v64f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+f,+d -O3
fixed-vectors-reduction-fp.b26516b056.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v128f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zvbb -O1

Generated 2026-11-29 14:49 UTC.