fallback: legalize: G_VECREDUCE_FMINIMUM <N x f64>

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

Snippet:

@G.4 = external global i128

define double @vreduce_fminimum_v32f64_nonans(ptr %x) {
  %LGV = load i128, ptr @G.4, align 4
  %B = sdiv i128 %LGV, 1
  %v = load <32 x double>, ptr %x, align 256
  %red = call nnan double @llvm.vector.reduce.fminimum.v32f64(<32 x double> %v)
  store i128 %B, ptr @G.4, align 4
  ret double %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.vector.reduce.fminimum.v32f64(<32 x double>) #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: %4:_(f64) = nnan G_VECREDUCE_FMINIMUM %3:_(<32 x f64>) (in function: vreduce_fminimum_v32f64_nonans)
warning: Instruction selection used fallback path for vreduce_fminimum_v32f64_nonans

Occurrences (3):

InputFunctionConfig
fixed-vectors-reduction-fp.9d6cdb5ad9.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v32f64_nonans-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.c44947a59c.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v4f64_nonans-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O3
fixed-vectors-reduction-fp.df260a3a74.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v32f64_nonans-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+d -O2

Generated 2026-11-29 14:49 UTC.