fallback: legalize: G_FMAXIMUM <N x f16>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_FMAXIMUM <N x f16> M
Occurrences:8 in 6 configs, 1 test files, 19 more counted only
Snippet from:fixed-vectors-fmaximum.50e7d870b4.ll (mutant of fixed-vectors-fmaximum.ll) @vfmax_v2f16_vv_nnan via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfbfmin,+zvfbfmin,+zvkb -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global half

define <2 x half> @vfmax_v2f16_vv_nnan(<2 x half> %a, <2 x half> %b) {
  %E = extractelement <2 x half> %b, i8 16
  %v = call nnan <2 x half> @llvm.maximum.v2f16(<2 x half> %a, <2 x half> %b)
  store half %E, ptr @G.2, align 2
  ret <2 x half> %v
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x half> @llvm.maximum.v2f16(<2 x half>, <2 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,+zvfh,+zfbfmin,+zvfbfmin,+zvkb -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfbfmin,+zvfbfmin,+zvkb -O2 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (8):

InputFunctionConfig
fixed-vectors-fmaximum.3c96e3b3a8.ll (mutant of fixed-vectors-fmaximum.ll)vfmax_v8f16_vv-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfhmin -O1 -code-model=small
fixed-vectors-fmaximum.3c96e3b3a8.ll (mutant of fixed-vectors-fmaximum.ll)vfmax_v2f16_vv_nnana-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfhmin -O1 -code-model=small
fixed-vectors-fmaximum.50e7d870b4.ll (mutant of fixed-vectors-fmaximum.ll)vfmax_v2f16_vv_nnan-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfbfmin,+zvfbfmin,+zvkb -O2
fixed-vectors-fmaximum.57a0445a9f.ll (mutant of fixed-vectors-fmaximum.ll)vfmax_v2f16_vv_nnanb-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfbfmin,+zvfbfmin,+v -O3
fixed-vectors-fmaximum.5b80a15250.ll (mutant of fixed-vectors-fmaximum.ll)vfmax_v2f16_vv_nnan-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin -O2
fixed-vectors-fmaximum.5f4e049e19.ll (mutant of fixed-vectors-fmaximum.ll)vfmax_v4f16_vv-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+experimental-zvfbfa -O1
fixed-vectors-fmaximum.5f4e049e19.ll (mutant of fixed-vectors-fmaximum.ll)vfmax_v16f16_vv-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+experimental-zvfbfa -O1
fixed-vectors-fmaximum.e3797dde8f.ll (mutant of fixed-vectors-fmaximum.ll)vfmax_v8f16_vv-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v,+zvkb -O1

Generated 2026-11-29 14:49 UTC.