fallback: legalize: G_VECREDUCE_FMIN <N x f64>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_VECREDUCE_FMIN <N x f64> M
Occurrences:4 in 3 configs, 1 test files, 21 more counted only
Snippet from:fixed-vectors-reduction-fp.5c59b51011.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fmin_v4f64 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zfh,+zvfhmin,+f,+d -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global <8 x i8>

define double @vreduce_fmin_v4f64(ptr %x) {
  %B = or <8 x i8> splat (i8 42), splat (i8 127)
  %v = load <4 x double>, ptr %x, align 32
  %red = call double @llvm.vector.reduce.fmin.v4f64(<4 x double> %v)
  store <8 x i8> %B, ptr @G.3, align 8
  ret double %red
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %8:_(f64) = G_VECREDUCE_FMIN %7:_(<4 x f64>) (in function: vreduce_fmin_v4f64)
warning: Instruction selection used fallback path for vreduce_fmin_v4f64

Occurrences (4):

InputFunctionConfig
fixed-vectors-reduction-fp.4ac666c7ad.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v32f64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f -O2
fixed-vectors-reduction-fp.5c59b51011.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v4f64-mtriple=riscv32 -verify-machineinstrs -mattr=+zfh,+zvfhmin,+f,+d -O1
fixed-vectors-reduction-fp.ee07b4a97c.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v4f64-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O0
fixed-vectors-reduction-fp.ee07b4a97c.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v32f64-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O0

Generated 2026-11-29 14:49 UTC.