fallback: legalize: G_VECREDUCE_FMIN <N x f64>

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

Snippet:

define double @vreduce_fmin_v2f64(ptr %x) {
  %v = load <2 x double>, ptr %x, align 16
  %red = call double @llvm.vector.reduce.fmin.v2f64(<2 x double> %v)
  %B = frem double %red, %red
  ret double %B
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (4):

InputFunctionConfig
fixed-vectors-reduction-fp.80077f62c4.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v32f64-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O1 -code-model=small
fixed-vectors-reduction-fp.b85002b2e5.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v4f64-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O2
fixed-vectors-reduction-fp.db2b863461.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v2f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.ec3c4a711a.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v32f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O3

Generated 2026-11-29 14:49 UTC.