fallback: legalize: G_VECREDUCE_FMAXIMUM <N x f16>

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:legalize: G_VECREDUCE_FMAXIMUM <N x f16> M
Occurrences:4 in 4 configs, 1 test files
Snippet from:fixed-vectors-reduction-fp.1d4542a86b.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fmaximum_v64f16_nonans via llvm-extract
Config:-mtriple=riscv32 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i8
@G.2 = external global ptr

define half @vreduce_fmaximum_v64f16_nonans(ptr %x) {
  %LGV = load i8, ptr @G.1, align 1
  %G = getelementptr ptr, ptr %x, i8 %LGV
  %v = load <64 x half>, ptr %x, align 128
  %red = call nnan half @llvm.vector.reduce.fmaximum.v64f16(<64 x half> %v)
  store ptr %G, ptr @G.2, align 8
  ret half %red
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %8:_(f16) = nnan G_VECREDUCE_FMAXIMUM %7:_(<64 x f16>) (in function: vreduce_fmaximum_v64f16_nonans)
warning: Instruction selection used fallback path for vreduce_fmaximum_v64f16_nonans

Occurrences (4):

InputFunctionConfig
fixed-vectors-reduction-fp.1d4542a86b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v64f16_nonans-mtriple=riscv32 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs
fixed-vectors-reduction-fp.5cbc202a20.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v64f16_nonans-mtriple=riscv64 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs
fixed-vectors-reduction-fp.5da2990a3b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v64f16_nonans-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-reduction-fp.ccbf0b8f2f.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v64f16_nonans-mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.