fallback: legalize: G_FMAXNUM <N x f16>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_FMAXNUM <N x f16> M
Occurrences:6 in 5 configs, 2 test files, 27 more counted only
Snippet from:fixed-vectors-vfmax-vp.3087fc4b2f.ll (mutant of fixed-vectors-vfmax-vp.ll) @vfmax_vv_v4f16_unmasked via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v,+zve64d -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i8
@G.1 = external global i1

define <4 x half> @vfmax_vv_v4f16_unmasked(<4 x half> %va, <4 x half> %vb, i32 zeroext %evl) {
  %LGV = load i8, ptr @G, align 1
  %v = call <4 x half> @llvm.maxnum.v4f16(<4 x half> %va, <4 x half> %vb)
  %C = icmp slt i8 1, %LGV
  store i1 %C, ptr @G.1, align 1
  ret <4 x half> %v
}

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

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

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v,+zve64d -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v,+zve64d -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (6):

InputFunctionConfig
fixed-vectors-vfmax-vp.3087fc4b2f.ll (mutant of fixed-vectors-vfmax-vp.ll)vfmax_vv_v4f16_unmasked-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v,+zve64d -O1
fixed-vectors-vfmax-vp.8a1b0f0d60.ll (mutant of fixed-vectors-vfmax-vp.ll)vfmax_vv_v4f16_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin,+zbb -O3
fixed-vectors-vfmax.56af3eb9e0.ll (mutant of fixed-vectors-vfmax.ll)vfmax_v8f16_fv-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zfbfmin,+zvfbfmin,+zbs -O1 -code-model=small
fixed-vectors-vfmax.dbbc28028b.ll (mutant of fixed-vectors-vfmax.ll)vfmax_v16f16_vv-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zfbfmin -O1
fixed-vectors-vfmax.dc864d048a.ll (mutant of fixed-vectors-vfmax.ll)vfmax_v4f16_vv-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+experimental-zvfbfa,+zicond -O1
fixed-vectors-vfmax.dc864d048a.ll (mutant of fixed-vectors-vfmax.ll)vfmax_v8f16_vf-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+experimental-zvfbfa,+zicond -O1

Generated 2026-11-29 14:49 UTC.