fallback: legalize: G_VECREDUCE_FMAXIMUM <N x f64>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_VECREDUCE_FMAXIMUM <N x f64> M
Occurrences:5 in 4 configs, 1 test files, 31 more counted only
Snippet from:fixed-vectors-reduction-fp.59071e44ad.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fmaximum_v32f64_nonans via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define double @vreduce_fmaximum_v32f64_nonans(ptr %x) {
  %C = icmp ugt i16 256, 256
  %v = load <32 x double>, ptr %x, align 256
  %red = call nnan double @llvm.vector.reduce.fmaximum.v32f64(<32 x double> %v)
  store i1 %C, ptr @G, align 1
  ret double %red
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %4:_(f64) = nnan G_VECREDUCE_FMAXIMUM %3:_(<32 x f64>) (in function: vreduce_fmaximum_v32f64_nonans)
warning: Instruction selection used fallback path for vreduce_fmaximum_v32f64_nonans

Occurrences (5):

InputFunctionConfig
fixed-vectors-reduction-fp.59071e44ad.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v32f64_nonans-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O3
fixed-vectors-reduction-fp.64f0a72bad.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v2f64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zfh,+zvfh,+f,+d,+zbb -O0 -code-model=medium
fixed-vectors-reduction-fp.7a6fb15e3b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v64f64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O0
fixed-vectors-reduction-fp.eb73f5972c.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v4f64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zicsr -O3
fixed-vectors-reduction-fp.eb73f5972c.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v4f64_nonans-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zicsr -O3

Generated 2026-11-29 14:49 UTC.