fallback: legalize: G_FMINIMUM <N x f16>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_FMINIMUM <N x f16> M
Occurrences:6 in 4 configs, 2 test files, 11 more counted only
Snippet from:fixed-vectors-fminimum.92f315e7f2.ll (mutant of fixed-vectors-fminimum.ll) @vfmin_v2f16_vv via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i8

define <2 x half> @vfmin_v2f16_vv(<2 x half> %a, <2 x half> %b) {
  %LGV = load i8, ptr @G.2, align 1
  %v = call <2 x half> @llvm.minimum.v2f16(<2 x half> %a, <2 x half> %b)
  %C = icmp ne i8 16, %LGV
  store i1 %C, ptr poison, align 1
  ret <2 x half> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (6):

InputFunctionConfig
fixed-vectors-fminimum-vp.681a7df8a2.ll (mutant of fixed-vectors-fminimum-vp.ll)vfmin_vv_v16f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+v,+m -O2
fixed-vectors-fminimum.4432716417.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v16f16_vv-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfbfmin,+zvfbfmin -O1
fixed-vectors-fminimum.4883519755.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v2f16_vv_nnan-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfbfmin,+zvfbfmin,+c -O0
fixed-vectors-fminimum.4883519755.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v2f16_vv_nnana-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfbfmin,+zvfbfmin,+c -O0
fixed-vectors-fminimum.92f315e7f2.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v2f16_vv-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v -O1
fixed-vectors-fminimum.92f315e7f2.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v16f16_vv-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v -O1

Generated 2026-11-29 14:49 UTC.