[PowerPC] Legalize rounding nodes
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 30 Dec 2019 13:38:27 +0000 (07:38 -0600)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 30 Dec 2019 14:03:53 +0000 (08:03 -0600)
commit0f0330a7870929558b2a2571ab28d242e719142e
tree1c31c547e4a0b28961a43dcc0be822857149a9d2
parent32cc14100e802fddd9f88e7a862250ce3108a583
[PowerPC] Legalize rounding nodes

VSX provides a full complement of rounding instructions yet we somehow ended up
with some of them legal and others not. This just legalizes all of the FP
rounding nodes and the FP -> int rounding nodes with unsafe math.

Differential revision: https://reviews.llvm.org/D69949
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/fp-int128-fp-combine.ll
llvm/test/CodeGen/PowerPC/rounding-ops.ll
llvm/test/CodeGen/PowerPC/scalar-rounding-ops.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/vector-constrained-fp-intrinsics.ll