fallback: legalize: G_FMINNUM <N x f16>

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

Snippet:

@G = external global bfloat
@G.1 = external global bfloat
@G.2 = external global i1

define <2 x half> @vfmin_v2f16_vv(<2 x half> %a, <2 x half> %b) {
  %LGV1 = load bfloat, ptr @G.1, align 2
  %LGV = load bfloat, ptr @G, align 2
  %C = fcmp true bfloat %LGV, %LGV1
  %v = call <2 x half> @llvm.minnum.v2f16(<2 x half> %a, <2 x half> %b)
  store i1 %C, ptr @G.2, align 1
  ret <2 x half> %v
}

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

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

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+zfbfmin,+zvfbfmin -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+zfbfmin,+zvfbfmin -O3 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
fixed-vectors-vfmin.2cf4390a9a.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v4f16_fv-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+experimental-zvfbfa,+xtheadba -O0
fixed-vectors-vfmin.77feb886d4.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v4f16_vf-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+experimental-zvfbfa,+zba -O2 -code-model=medium
fixed-vectors-vfmin.77feb886d4.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v16f16_vf-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+experimental-zvfbfa,+zba -O2 -code-model=medium
fixed-vectors-vfmin.c768c33537.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v2f16_vv-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+zfbfmin,+zvfbfmin -O3
fixed-vectors-vfmin.c768c33537.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v2f16_fv-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+zfbfmin,+zvfbfmin -O3

Generated 2026-11-29 14:49 UTC.