[PowerPC] Support constrained scalar fptosi/fptoui
authorQiu Chaofan <qiucofan@cn.ibm.com>
Thu, 20 Aug 2020 05:29:43 +0000 (13:29 +0800)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Thu, 20 Aug 2020 05:29:43 +0000 (13:29 +0800)
commit131b3b9ed4efd11d2e50d2963fd11f5d7c7650f0
treefe73796afe450a35e13234af754173977ad75c26
parent2f38c755ba46d1357d79c922966d964694eb854e
[PowerPC] Support constrained scalar fptosi/fptoui

This patch adds support for constrained scalar fp to int operations on
PowerPC. Besides, this fixes the FP exception bit of quad-precision
convert & truncate instructions.

Reviewed By: steven.zhang, uweigand

Differential Revision: https://reviews.llvm.org/D81537
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/lib/Target/PowerPC/PPCInstr64Bit.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/fp-strict-conv-f128.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/fp-strict-conv.ll [new file with mode: 0644]