fallback: legalize: G_VECREDUCE_FMINIMUM <N x f32>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_VECREDUCE_FMINIMUM <N x f32> M
Occurrences:10 in 7 configs, 1 test files, 47 more counted only
Snippet from:fixed-vectors-reduction-fp.a35313d72a.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fminimum_v16f32_nonans via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define float @vreduce_fminimum_v16f32_nonans(ptr %x) {
  %C = fcmp ult double 1.000000e+00, 4.940660e-324
  %v = load <16 x float>, ptr %x, align 64
  %red = call nnan float @llvm.vector.reduce.fminimum.v16f32(<16 x float> %v)
  store i1 %C, ptr @G, align 1
  ret float %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.vector.reduce.fminimum.v16f32(<16 x float>) #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,+f,+d -O0 -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,+f,+d -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %5:_(f32) = nnan G_VECREDUCE_FMINIMUM %4:_(<16 x f32>) (in function: vreduce_fminimum_v16f32_nonans)
warning: Instruction selection used fallback path for vreduce_fminimum_v16f32_nonans

Occurrences (10):

InputFunctionConfig
fixed-vectors-reduction-fp.61f36a604b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v2f32_nonans-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+zfa -O2
fixed-vectors-reduction-fp.61f36a604b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v4f32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+zfa -O2
fixed-vectors-reduction-fp.61f36a604b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v64f32_nonans-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+zfa -O2
fixed-vectors-reduction-fp.698eaa4590.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v7f32_nonans-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zve32x -O0
fixed-vectors-reduction-fp.6cd91c54c1.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v2f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zve32x -O3
fixed-vectors-reduction-fp.6cd91c54c1.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v128f32_nonans-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zve32x -O3
fixed-vectors-reduction-fp.91305c000f.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v8f32_nonans-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O2
fixed-vectors-reduction-fp.a35313d72a.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v16f32_nonans-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.b2f2366cb1.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v32f32-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O0
fixed-vectors-reduction-fp.ca298d199c.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v32f32_nonans-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zicsr -O3

Generated 2026-11-29 14:49 UTC.