fallback: legalize: G_VECREDUCE_FMAXIMUM <N x f64>

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

Snippet:

define double @vreduce_fmaximum_v32f64_nonans(ptr %x) {
  %v = load <32 x double>, ptr %x, align 256
  %red = call nnan double @llvm.vector.reduce.fmaximum.v32f64(<32 x double> %v)
  %C = fcmp uge double %red, %red
  store i1 %C, ptr poison, 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=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+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=+v,+zfh,+zvfh,+f,+d -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %2:_(f64) = nnan G_VECREDUCE_FMAXIMUM %1:_(<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.4ac666c7ad.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v16f64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f -O2
fixed-vectors-reduction-fp.5c4434c733.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v32f64_nonans-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.67c89f3fde.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v2f64_nonans-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zcb -O0
fixed-vectors-reduction-fp.7e3fee0e58.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v32f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O1
fixed-vectors-reduction-fp.f451b0f566.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v8f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O0

Generated 2026-11-29 14:49 UTC.