fallback: legalize: G_VECREDUCE_FMINIMUM <N x f32>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_VECREDUCE_FMINIMUM <N x f32> M
Occurrences:9 in 7 configs, 1 test files, 67 more counted only
Snippet from:fixed-vectors-reduction-fp.e63192eb58.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fminimum_v2f32 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 float @vreduce_fminimum_v2f32(ptr %x) {
  %v = load <2 x float>, ptr %x, align 8
  %red = call float @llvm.vector.reduce.fminimum.v2f32(<2 x float> %v)
  %B = fdiv float %red, %red
  ret float %B
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.vector.reduce.fminimum.v2f32(<2 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,+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: %2:_(f32) = G_VECREDUCE_FMINIMUM %1:_(<2 x f32>) (in function: vreduce_fminimum_v2f32)
warning: Instruction selection used fallback path for vreduce_fminimum_v2f32

Occurrences (9):

InputFunctionConfig
fixed-vectors-reduction-fp.2c9f4baeae.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v8f32_nonans-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O3
fixed-vectors-reduction-fp.5c4434c733.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v128f32_nonans-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.94e2f938e8.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v8f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zbkb -O0
fixed-vectors-reduction-fp.e63192eb58.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v2f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+d -O1
fixed-vectors-reduction-fp.ee07b4a97c.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v32f32_nonans-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O0
fixed-vectors-reduction-fp.f823c1a203.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v2f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zfh,+zvfh,+f,+d -O3
fixed-vectors-reduction-fp.f823c1a203.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v7f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zfh,+zvfh,+f,+d -O3
fixed-vectors-reduction-fp.f823c1a203.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v32f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zfh,+zvfh,+f,+d -O3
fixed-vectors-reduction-fp.ff67f59a1d.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v128f32_nonans-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d,+zfa -O0

Generated 2026-11-29 14:49 UTC.