fallback: legalize: G_FMAXIMUMNUM <N x bf16>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_FMAXIMUMNUM <N x bf16> M
Occurrences:4 in 3 configs, 1 test files, 4 more counted only
Snippet from:fixed-vectors-fmaximumnum.c7344e9067.ll (mutant of fixed-vectors-fmaximumnum.ll) @max_v8bf16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfhmin -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <8 x bfloat> @max_v8bf16(<8 x bfloat> %a, <8 x bfloat> %b) {
entry:
  %E = extractelement <8 x bfloat> %a, i16 42
  %c = call <8 x bfloat> @llvm.maximumnum.v8bf16(<8 x bfloat> %a, <8 x bfloat> %b)
  store bfloat %E, ptr poison, align 2
  ret <8 x bfloat> %c
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %24:_(<8 x bf16>) = G_FMAXIMUMNUM %0:_, %1:_ (in function: max_v8bf16)
warning: Instruction selection used fallback path for max_v8bf16

Occurrences (4):

InputFunctionConfig
fixed-vectors-fmaximumnum.0b2a8e2580.ll (mutant of fixed-vectors-fmaximumnum.ll)max_v16bf16-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfhmin,+experimental-zvfbfa -O3
fixed-vectors-fmaximumnum.be561e4586.ll (mutant of fixed-vectors-fmaximumnum.ll)max_v2bf16--mtriple=riscv64-linux-gnu -mattr=+v,+zvfh,+zve64d -O2 -verify-machineinstrs
fixed-vectors-fmaximumnum.be561e4586.ll (mutant of fixed-vectors-fmaximumnum.ll)max_v4bf16--mtriple=riscv64-linux-gnu -mattr=+v,+zvfh,+zve64d -O2 -verify-machineinstrs
fixed-vectors-fmaximumnum.c7344e9067.ll (mutant of fixed-vectors-fmaximumnum.ll)max_v8bf16-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfhmin -O0

Generated 2026-11-29 14:49 UTC.