fallback: legalize: G_VECREDUCE_FMINIMUM <N x f64>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_VECREDUCE_FMINIMUM <N x f64> M
Occurrences:12 in 11 configs, 1 test files, 26 more counted only
Snippet from:fixed-vectors-reduction-fp.fddffa34dd.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fminimum_v32f64 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zve32x,+zicond -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global ptr

define double @vreduce_fminimum_v32f64(ptr %x) {
  %v = load <32 x double>, ptr %x, align 256
  %red = call double @llvm.vector.reduce.fminimum.v32f64(<32 x double> %v)
  %G = getelementptr double, ptr %x, i32 -2147483648
  store ptr %G, ptr @G.2, align 8
  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=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zve32x,+zicond -O2 -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,+zve32x,+zicond -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %2:_(f64) = G_VECREDUCE_FMINIMUM %1:_(<32 x f64>) (in function: vreduce_fminimum_v32f64)
warning: Instruction selection used fallback path for vreduce_fminimum_v32f64

Occurrences (12):

InputFunctionConfig
fixed-vectors-reduction-fp.04fd429025.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v64f64_nonans-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zfa,+c -O2
fixed-vectors-reduction-fp.630deba0f9.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v8f64_nonans-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f -O3
fixed-vectors-reduction-fp.64f0a72bad.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v4f64_nonans-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zfh,+zvfh,+f,+d,+zbb -O0 -code-model=medium
fixed-vectors-reduction-fp.698eaa4590.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v64f64_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_v2f64-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_v16f64_nonans-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zve32x -O3
fixed-vectors-reduction-fp.90b6998bbe.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v2f64_nonans-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+c,+zvbb -O3
fixed-vectors-reduction-fp.a35313d72a.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v2f64_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_v4f64-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_v16f64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zicsr -O3
fixed-vectors-reduction-fp.eb73f5972c.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v64f64_nonans-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zicsr -O3
fixed-vectors-reduction-fp.fddffa34dd.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v32f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zve32x,+zicond -O2

Generated 2026-11-29 14:49 UTC.