fallback: legalize: G_FMINNUM <N x f64>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_FMINNUM <N x f64> M
Occurrences:4 in 4 configs, 2 test files, 2 more counted only
Snippet from:fixed-vectors-vfmin-vp.8e936dd191.ll (mutant of fixed-vectors-vfmin-vp.ll) @vfmin_vv_v2f64 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:

define <2 x double> @vfmin_vv_v2f64(<2 x double> %va, <2 x double> %vb, <2 x i1> %m, i32 zeroext %evl) {
  %C = fcmp oge half 0.000000e+00, +qnan
  %v = call <2 x double> @llvm.minnum.v2f64(<2 x double> %va, <2 x double> %vb)
  store i1 %C, ptr poison, align 1
  ret <2 x double> %v
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.minnum.v2f64(<2 x double>, <2 x double>) #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: %16:_(<2 x f64>) = G_FMINNUM %0:_, %1:_ (in function: vfmin_vv_v2f64)
warning: Instruction selection used fallback path for vfmin_vv_v2f64

Occurrences (4):

InputFunctionConfig
fixed-vectors-vfmin-vp.8e936dd191.ll (mutant of fixed-vectors-vfmin-vp.ll)vfmin_vv_v2f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin -O3
fixed-vectors-vfmin.a033899e7d.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v4f64_vv-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+zfbfmin,+zvfbfmin,+zcb -O0
fixed-vectors-vfmin.bae74a0152.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v8f64_fv-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zfbfmin,+zvfbfmin -O1
fixed-vectors-vfmin.fb2020a103.ll (mutant of fixed-vectors-vfmin.ll)vfmin_v8f64_fv-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+experimental-zvfbfa -O2

Generated 2026-11-29 14:49 UTC.