fallback: legalize: G_VECREDUCE_FMINIMUM <N x f64>

Run:main-b577f07195-20261129-101839
Kind:fallback
Category:legalize: G_VECREDUCE_FMINIMUM <N x f64> M
Occurrences:4 in 4 configs, 1 test files
Snippet from:fixed-vectors-reduction-fp.3d519ba5be.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fminimum_v16f64 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i128

define double @vreduce_fminimum_v16f64(ptr %x) {
  %LGV = load i128, ptr @G, align 4
  %G = getelementptr float, ptr %x, i128 %LGV
  %v = load <16 x double>, ptr %x, align 128
  %red = call double @llvm.vector.reduce.fminimum.v16f64(<16 x double> %v)
  store ptr %G, ptr poison, align 8
  ret double %red
}

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

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

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
fixed-vectors-reduction-fp.3d519ba5be.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v16f64-mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-reduction-fp.8ab7f83c0e.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v16f64-mtriple=riscv64 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs
fixed-vectors-reduction-fp.a53a62f633.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v16f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-reduction-fp.d35d9312ea.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v16f64-mtriple=riscv32 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.