[PowerPC] Add missing handling for half precision
authorNemanja Ivanovic <nemanjai@ca.ibm.com>
Fri, 22 May 2020 12:48:09 +0000 (07:48 -0500)
committerNemanja Ivanovic <nemanjai@ca.ibm.com>
Fri, 22 May 2020 12:50:11 +0000 (07:50 -0500)
commit1a493b0fa556a07c728862c3c3f70bfd8683bef0
tree0f5729548e4e84ecf4a23ffeaa95ba132db6fecf
parenteddcce0814f96610be50a32569c3b42590e94adb
[PowerPC] Add missing handling for half precision

The fix for PR39865 took care of some of the handling for half precision
but it missed a number of issues that still exist. This patch fixes the
remaining issues that cause crashes in the PPC back end.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=45776

Differential revision: https://reviews.llvm.org/D79283
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/handle-f16-storage-type.ll
llvm/test/CodeGen/PowerPC/scalar_vector_test_2.ll
llvm/test/CodeGen/PowerPC/vector-constrained-fp-intrinsics.ll