fallback: legalize: G_FMINNUM <N x bf16>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_FMINNUM <N x bf16> M
Occurrences:3 in 2 configs, 1 test files, 2 more counted only
Snippet from:fixed-vectors-vfmin.d431fdee81.ll (mutant of fixed-vectors-vfmin.ll) @vfmin_v2bf16_vv via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zfbfmin,+v,+zcb -O0
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <2 x bfloat> @vfmin_v2bf16_vv(<2 x bfloat> %a, <2 x bfloat> %b) {
  %B = fsub <2 x bfloat> %a, splat (bfloat 4.200000e+01)
  %v = call <2 x bfloat> @llvm.minnum.v2bf16(<2 x bfloat> %a, <2 x bfloat> %b)
  store <2 x bfloat> %B, ptr poison, align 4
  ret <2 x bfloat> %v
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x bfloat> @llvm.minnum.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,+zfh,+zvfhmin,+zfbfmin,+v,+zcb -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zfbfmin,+v,+zcb -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
fixed-vectors-vfmin.d431fdee81.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v2bf16_vv-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zfbfmin,+v,+zcb -O0
fixed-vectors-vfmin.d431fdee81.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v4bf16_vv-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zfbfmin,+v,+zcb -O0
fixed-vectors-vfmin.e429a1c80b.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v2bf16_vv-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v -O3

Generated 2026-11-29 14:49 UTC.