fallback: legalize: G_FMINIMUM <N x f16>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_FMINIMUM <N x f16> M
Occurrences:8 in 7 configs, 2 test files, 36 more counted only
Snippet from:fixed-vectors-fminimum.461e8aaaf9.ll (mutant of fixed-vectors-fminimum.ll) @vfmin_v2f16_vv via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i1

define <2 x half> @vfmin_v2f16_vv(<2 x half> %a, <2 x half> %b) {
  %C = icmp uge i32 2147483647, -1
  %v = call <2 x half> @llvm.minimum.v2f16(<2 x half> %a, <2 x half> %b)
  store i1 %C, ptr @G.1, 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,+zvfhmin -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (8):

InputFunctionConfig
fixed-vectors-fminimum-vp.a206dd92fd.ll (mutant of fixed-vectors-fminimum-vp.ll)vfmin_vv_v2f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v -O1
fixed-vectors-fminimum.461e8aaaf9.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v2f16_vv-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin -O0
fixed-vectors-fminimum.461e8aaaf9.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v2f16_vv_nnan_insert_subvector-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin -O0
fixed-vectors-fminimum.6219fb6061.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v2f16_vv_nnan_insert_subvector-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin,+zfbfmin,+zvfbfmin -O0 -code-model=medium
fixed-vectors-fminimum.8bb97d76f5.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v2f16_vv-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfbfmin,+zvfbfmin,+v,+zve32x -O1
fixed-vectors-fminimum.9211c8e086.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v2f16_vv_nnana-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+experimental-zvfbfa -O3
fixed-vectors-fminimum.e8ad3dae0e.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v2f16_vv_nnanb-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfbfmin,+zvfbfmin -O0
fixed-vectors-fminimum.f952ed3821.ll (mutant of fixed-vectors-fminimum.ll)vfmin_v2f16_vv_nnan_insert_subvector-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+experimental-zvfbfa -O2 -code-model=small

Generated 2026-11-29 14:49 UTC.