fallback: legalize: G_STRICT_FMA <N x f16>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_STRICT_FMA <N x f16> M
Occurrences:4 in 4 configs, 4 test files, 3 more counted only
Snippet from:fixed-vectors-vfnmsub-constrained-sdnode.365186b396.ll (mutant of fixed-vectors-vfnmsub-constrained-sdnode.ll) @vfnmsub_vv_v2f16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfhmin -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global <2 x half>
@G.2 = external global <2 x half>

; Function Attrs: strictfp
define <2 x half> @vfnmsub_vv_v2f16(<2 x half> %va, <2 x half> %vb, <2 x half> %vc) #0 {
  %neg = fneg <2 x half> %va
  %B = frem <2 x half> %vb, splat (half 1.000000e+00)
  %B1 = fsub <2 x half> %neg, %vb
  %vd = call <2 x half> @llvm.experimental.constrained.fma.v2f16(<2 x half> %neg, <2 x half> %vc, <2 x half> %vb, metadata !"round.dynamic", metadata !"fpexcept.strict")
  store <2 x half> %B, ptr @G.1, align 4
  store <2 x half> %B1, ptr @G.2, align 4
  ret <2 x half> %vd
}

; Function Attrs: nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite)
declare <2 x half> @llvm.experimental.constrained.fma.v2f16(<2 x half>, <2 x half>, <2 x half>, metadata, metadata) #1

attributes #0 = { strictfp }
attributes #1 = { nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite) }

Reproduce:

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

Local llc output:

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

Occurrences (4):

InputFunctionConfig
fixed-vectors-vfmadd-constrained-sdnode.cf8c8f2fcc.ll (mutant of fixed-vectors-vfmadd-constrained-sdnode.ll)vfmadd_vv_v16f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfhmin,+experimental-zvfbfa,+v -O1
fixed-vectors-vfmsub-constrained-sdnode.f33ecdad1a.ll (mutant of fixed-vectors-vfmsub-constrained-sdnode.ll)vfmsub_vv_v2f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh -O0
fixed-vectors-vfnmadd-constrained-sdnode.92fc1df57a.ll (mutant of fixed-vectors-vfnmadd-constrained-sdnode.ll)vfnmsub_vf_v32f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+zicond -O0
fixed-vectors-vfnmsub-constrained-sdnode.365186b396.ll (mutant of fixed-vectors-vfnmsub-constrained-sdnode.ll)vfnmsub_vv_v2f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfhmin -O3

Generated 2026-11-29 14:49 UTC.