fallback: legalize: G_FMINIMUM <N x bf16>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_FMINIMUM <N x bf16> M
Occurrences:3 in 3 configs, 1 test files, 6 more counted only
Snippet from:fixed-vectors-fminimum.6219fb6061.ll (mutant of fixed-vectors-fminimum.ll) @vfmin_v2bf16_vv via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin,+zfbfmin,+zvfbfmin -O0 -code-model=medium
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global bfloat

define <2 x bfloat> @vfmin_v2bf16_vv(<2 x bfloat> %a, <2 x bfloat> %b) {
  %v = call <2 x bfloat> @llvm.minimum.v2bf16(<2 x bfloat> %a, <2 x bfloat> %b)
  %B = frem bfloat +inf, 4.200000e+01
  store bfloat %B, ptr @G.1, align 2
  ret <2 x bfloat> %v
}

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

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

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin,+zfbfmin,+zvfbfmin -O0 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin,+zfbfmin,+zvfbfmin -O0 -code-model=medium -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %6:_(<2 x bf16>) = G_FMINIMUM %0:_, %1:_ (in function: vfmin_v2bf16_vv)
warning: Instruction selection used fallback path for vfmin_v2bf16_vv

Occurrences (3):

InputFunctionConfig
fixed-vectors-fminimum.18fe424f33.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v2bf16_vv-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfhmin,+v,+zvbb -O2
fixed-vectors-fminimum.6219fb6061.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v2bf16_vv-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin,+zfbfmin,+zvfbfmin -O0 -code-model=medium
fixed-vectors-fminimum.73946750f7.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v2bf16_vv-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+v,+zve32x -O3

Generated 2026-11-29 14:49 UTC.