fallback: legalize: G_STRICT_FMA <N x f16>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_STRICT_FMA <N x f16> M
Occurrences:3 in 3 configs, 2 test files, 6 more counted only
Snippet from:fixed-vectors-vfmadd-constrained-sdnode.d04c1ff313.ll (mutant of fixed-vectors-vfmadd-constrained-sdnode.ll) @vfmadd_vv_v2f16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfhmin,+experimental-zvfbfa,+v -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global <4 x i32>

; Function Attrs: strictfp
define <2 x half> @vfmadd_vv_v2f16(<2 x half> %va, <2 x half> %vb, <2 x half> %vc) #0 {
  %A = alloca <4 x i32>, align 16
  store <4 x i32> poison, ptr %A, align 16
  %LGV = load <4 x i32>, ptr @G.1, align 16
  %B = mul <4 x i32> splat (i32 2147483647), %LGV
  %vd = call <2 x half> @llvm.experimental.constrained.fma.v2f16(<2 x half> %va, <2 x half> %vc, <2 x half> %vb, metadata !"round.dynamic", metadata !"fpexcept.strict")
  store <4 x i32> %B, ptr %A, align 16
  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,+zfhmin,+experimental-zvfbfa,+v -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfhmin,+experimental-zvfbfa,+v -O3 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
fixed-vectors-vfmadd-constrained-sdnode.d04c1ff313.ll (mutant of fixed-vectors-vfmadd-constrained-sdnode.ll)vfmadd_vv_v2f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfhmin,+experimental-zvfbfa,+v -O3
fixed-vectors-vfmadd-constrained-sdnode.faee1e669f.ll (mutant of fixed-vectors-vfmadd-constrained-sdnode.ll)vfmadd_vv_v2f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfhmin,+experimental-zvfbfa,+v,+m -O2
fixed-vectors-vfnmadd-constrained-sdnode.25a65efe2d.ll (mutant of fixed-vectors-vfnmadd-constrained-sdnode.ll)vfnmsub_vf_v16f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O2

Generated 2026-11-29 14:49 UTC.