fallback: legalize: G_VECREDUCE_SEQ_FADD <N x f16>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_VECREDUCE_SEQ_FADD <N x f16> M
Occurrences:4 in 4 configs, 1 test files, 20 more counted only
Snippet from:fixed-vectors-reduction-fp.a35313d72a.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_ord_fadd_v64f16 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define half @vreduce_ord_fadd_v64f16(ptr %x, half %s) {
  %v = load <64 x half>, ptr %x, align 128
  %C = icmp sle i1 false, true
  %red = call half @llvm.vector.reduce.fadd.v64f16(half %s, <64 x half> %v)
  store i1 %C, ptr @G, align 1
  ret half %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare half @llvm.vector.reduce.fadd.v64f16(half, <64 x half>) #0

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

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -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: %6:_(f16) = G_VECREDUCE_SEQ_FADD %1:_(f16), %2:_(<64 x f16>) (in function: vreduce_ord_fadd_v64f16)
warning: Instruction selection used fallback path for vreduce_ord_fadd_v64f16

Occurrences (4):

InputFunctionConfig
fixed-vectors-reduction-fp.271149729a.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v16f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfh,+zvfh,+f -O1 -code-model=medium
fixed-vectors-reduction-fp.477b103e1d.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v2f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+m -O1
fixed-vectors-reduction-fp.a35313d72a.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v64f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.f0b5383f11.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v2f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zba -O2

Generated 2026-11-29 14:49 UTC.