fallback: legalize: G_FMAXIMUM <N x f16>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_FMAXIMUM <N x f16> M
Occurrences:3 in 3 configs, 1 test files, 14 more counted only
Snippet from:fixed-vectors-fmaximum.8ede42b289.ll (mutant of fixed-vectors-fmaximum.ll) @vfmax_v8f16_vv via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfhmin,+experimental-zvfbfa,+zbb -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i8

define <8 x half> @vfmax_v8f16_vv(<8 x half> %a, <8 x half> %b) {
  %v = call <8 x half> @llvm.maximum.v8f16(<8 x half> %a, <8 x half> %b)
  %B = sdiv i8 -128, 1
  store i8 %B, ptr @G, align 1
  ret <8 x half> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
fixed-vectors-fmaximum.1c89a8efa6.ll (mutant of fixed-vectors-fmaximum.ll)vfmax_v8f16_vv-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfbfmin,+zvfbfmin,+v -O3
fixed-vectors-fmaximum.6ed3978f01.ll (mutant of fixed-vectors-fmaximum.ll)vfmax_v8f16_vv-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v,+zbs -O0
fixed-vectors-fmaximum.8ede42b289.ll (mutant of fixed-vectors-fmaximum.ll)vfmax_v8f16_vv-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfhmin,+experimental-zvfbfa,+zbb -O1

Generated 2026-11-29 14:49 UTC.