fallback: legalize: G_FMA <N x f64>

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:legalize: G_FMA <N x f64>
Occurrences:46 in 9 configs, 2 test files
Snippet from:fixed-vectors-vfw-web-simplification.ll @vfwmacc_v2f32_addend_user via llvm-extract
Config:-mtriple=riscv64 -mattr=+v,+zvfh,+f,+d -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @vfwmacc_v2f32_addend_user(ptr %x, <2 x float> %a, <2 x float> %b) {
  %c = fpext <2 x float> %a to <2 x double>
  %d = fpext <2 x float> %b to <2 x double>
  %f = call <2 x double> @llvm.fma.v2f64(<2 x double> %c, <2 x double> %d, <2 x double> %d)
  store <2 x double> %f, ptr %x, align 16
  ret void
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %7:_(<2 x f64>) = G_FMA %5:_, %6:_, %6:_ (in function: vfwmacc_v2f32_addend_user)
warning: Instruction selection used fallback path for vfwmacc_v2f32_addend_user

Occurrences (46) (first 15):

InputFunctionConfig
fixed-vectors-fp.llfma_v2f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfnmadd_v2f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfma_v4f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfma_vf_v2f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfma_fv_v2f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfnmadd_vf_v2f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfnmadd_fv_v2f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfmuladd_v2f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfnmadd_fmuladd_v2f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfma_v2f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfhmin,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfnmadd_v2f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfhmin,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfma_v4f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfhmin,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfma_vf_v2f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfhmin,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfma_fv_v2f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfhmin,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfnmadd_vf_v2f64-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfhmin,+zvfbfmin -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.