fallback: legalize: G_FMAXIMUMNUM <N x f32>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_FMAXIMUMNUM <N x f32> M
Occurrences:4 in 2 configs, 1 test files, 3 more counted only
Snippet from:fixed-vectors-fmaximumnum.7bf2a3baad.ll (mutant of fixed-vectors-fmaximumnum.ll) @max_v2f32 via llvm-extract
Config:--mtriple=riscv64-linux-gnu -mattr=+zvfh -O3 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.4 = external global <2 x float>

define <2 x float> @max_v2f32(<2 x float> %a, <2 x float> %b) {
entry:
  %B = fdiv <2 x float> %b, zeroinitializer
  %c = call <2 x float> @llvm.maximumnum.v2f32(<2 x float> %a, <2 x float> %b)
  store <2 x float> %B, ptr @G.4, align 8
  ret <2 x float> %c
}

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

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

Reproduce:

llc --mtriple=riscv64-linux-gnu -mattr=+zvfh -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc --mtriple=riscv64-linux-gnu -mattr=+zvfh -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %9:_(<2 x f32>) = G_FMAXIMUMNUM %0:_, %1:_ (in function: max_v2f32)
warning: Instruction selection used fallback path for max_v2f32

Occurrences (4):

InputFunctionConfig
fixed-vectors-fmaximumnum.7bf2a3baad.ll (mutant of fixed-vectors-fmaximumnum.ll)max_v2f32--mtriple=riscv64-linux-gnu -mattr=+zvfh -O3 -verify-machineinstrs
fixed-vectors-fmaximumnum.7bf2a3baad.ll (mutant of fixed-vectors-fmaximumnum.ll)max_v4f32--mtriple=riscv64-linux-gnu -mattr=+zvfh -O3 -verify-machineinstrs
fixed-vectors-fmaximumnum.7bf2a3baad.ll (mutant of fixed-vectors-fmaximumnum.ll)max_v5f32--mtriple=riscv64-linux-gnu -mattr=+zvfh -O3 -verify-machineinstrs
fixed-vectors-fmaximumnum.dd80f82d34.ll (mutant of fixed-vectors-fmaximumnum.ll)max_v3f32--mtriple=riscv64-linux-gnu -mattr=+zvfh,+zvfbfmin -O1 -code-model=medium -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.