fallback: legalize: G_FMINNUM <N x f16>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_FMINNUM <N x f16> M
Occurrences:5 in 5 configs, 2 test files, 10 more counted only
Snippet from:fixed-vectors-vfmin-vp.8e936dd191.ll (mutant of fixed-vectors-vfmin-vp.ll) @vfmin_vv_v2f16_unmasked via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i128

define <2 x half> @vfmin_vv_v2f16_unmasked(<2 x half> %va, <2 x half> %vb, i32 zeroext %evl) {
  %LGV = load i128, ptr @G, align 4
  %B = sub i128 %LGV, 0
  %v = call <2 x half> @llvm.minnum.v2f16(<2 x half> %va, <2 x half> %vb)
  store i128 %B, ptr @G, align 4
  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,+zvfhmin -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin -O3 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
fixed-vectors-vfmin-vp.8e936dd191.ll (mutant of fixed-vectors-vfmin-vp.ll)vfmin_vv_v2f16_unmasked-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin -O3
fixed-vectors-vfmin-vp.f1bec61f30.ll (mutant of fixed-vectors-vfmin-vp.ll)vfmin_vv_v16f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfhmin,+zvbb -O2
fixed-vectors-vfmin.b6d4539d1a.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v4f16_vf-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin -O0
fixed-vectors-vfmin.bae74a0152.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v2f16_fv-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zfbfmin,+zvfbfmin -O1
fixed-vectors-vfmin.d6c30469a8.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v4f16_vf-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+experimental-zvfbfa,+v,+zbb -O2

Generated 2026-11-29 14:49 UTC.