[VE] Change to expand FMA
authorKazushi (Jam) Marukawa <marukawa@nec.com>
Sat, 17 Sep 2022 09:04:06 +0000 (18:04 +0900)
committerKazushi (Jam) Marukawa <marukawa@nec.com>
Wed, 21 Sep 2022 09:02:55 +0000 (18:02 +0900)
commit3ee64ea5cf2466a03ed471606da831d4870a34b9
treefd0a6858363aa9cfaa5dbcbea38feec861c8a77b
parent9a20596f482586ac6f5507aa151987e0987d5231
[VE] Change to expand FMA

VE has fused multiply-add instruction for only vector calculations.  This
patch forces to expand scalar FMA to multiply and add instructions.
This patch also adds regression test.

Reviewed By: efocht

Differential Revision: https://reviews.llvm.org/D134107
llvm/lib/Target/VE/VEISelLowering.cpp
llvm/test/CodeGen/VE/Scalar/fma.ll [new file with mode: 0644]