[PowerPC] Handle f16 as a storage type only
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Sat, 11 Apr 2020 12:34:10 +0000 (07:34 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Sat, 11 Apr 2020 12:34:47 +0000 (07:34 -0500)
commit512600e3c0db5e78aa5d23cc9efdec86814ca66d
tree2e32beb9b19d726c77ff69bb3e52ea5fc36e4b1f
parent719846c469ed37e1de4d2f8d2ea857de672fe66e
[PowerPC] Handle f16 as a storage type only

The PPC back end currently crashes (fails to select) with f16 input. This patch
expands it on subtargets prior to ISA 3.0 (Power9) and uses the HW conversions
on Power9.

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

Differential revision: https://reviews.llvm.org/D68237
llvm/include/llvm/Target/TargetSelectionDAG.td
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/handle-f16-storage-type.ll [new file with mode: 0644]