fallback: legalize: G_FMAXNUM <N x f16>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_FMAXNUM <N x f16> M
Occurrences:4 in 4 configs, 2 test files, 14 more counted only
Snippet from:fixed-vectors-vfmax-vp.a807a5be00.ll (mutant of fixed-vectors-vfmax-vp.ll) @vfmax_vv_v8f16_unmasked via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin,+zicsr -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <8 x half> @vfmax_vv_v8f16_unmasked(<8 x half> %va, <8 x half> %vb, i32 zeroext %evl) {
  %B = frem <8 x half> %va, splat (half 4.200000e+01)
  %v = call <8 x half> @llvm.maxnum.v8f16(<8 x half> %va, <8 x half> %vb)
  store <8 x half> %B, ptr poison, align 16
  ret <8 x half> %v
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x half> @llvm.maxnum.v8f16(<8 x half>, <8 x half>) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %11:_(<8 x f16>) = G_FMAXNUM %0:_, %1:_ (in function: vfmax_vv_v8f16_unmasked)
warning: Instruction selection used fallback path for vfmax_vv_v8f16_unmasked

Occurrences (4):

InputFunctionConfig
fixed-vectors-vfmax-vp.7f0d6604d8.ll (mutant of fixed-vectors-vfmax-vp.ll)vfmax_vv_v16f16_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+v -O3
fixed-vectors-vfmax-vp.a807a5be00.ll (mutant of fixed-vectors-vfmax-vp.ll)vfmax_vv_v8f16_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin,+zicsr -O2
fixed-vectors-vfmax.336e1722dc.ll (mutant of fixed-vectors-vfmax.ll)vfmax_v8f16_vf-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+experimental-zvfbfa,+v -O0
fixed-vectors-vfmax.43dfb26453.ll (mutant of fixed-vectors-vfmax.ll)vfmax_v2f16_fv-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zfbfmin,+zvfbfmin,+v,+zve64d -O0 -code-model=medium

Generated 2026-11-29 14:49 UTC.