[VE] Support copysign math function
authorKazushi (Jam) Marukawa <marukawa@nec.com>
Sun, 11 Oct 2020 08:33:47 +0000 (17:33 +0900)
committerKazushi (Jam) Marukawa <marukawa@nec.com>
Mon, 12 Oct 2020 12:06:19 +0000 (21:06 +0900)
commit66be2e00ef29f8a747df2f7a57682e112266f525
treeed17614037b55d423367ddf62da8ec9cca32d6e5
parente2f1fe361a9c7616a1d6459b036d15f47da4a073
[VE] Support copysign math function

VE doesn't have instruction for copysign, so expand it.  Add a
regression test also.

Reviewed By: simoll

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