OSDN Git Service

Fix PR15632: No support for ppcf128 floating-point remainder on PowerPC.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 3 Apr 2013 13:05:44 +0000 (13:05 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 3 Apr 2013 13:05:44 +0000 (13:05 +0000)
commitcd7a1558edd0bdae770c57b82b32291e54e014b2
treeb42192cf9793615364fae850b77f3a642ce25bae
parent4385f5dfced4e14bc59dfedb1f75116c0aabbc36
Fix PR15632: No support for ppcf128 floating-point remainder on PowerPC.

For this we need to use a libcall.  Previously LLVM didn't implement
libcall support for frem, so I've added it in the usual
straightforward manner.  A test case from the bug report is included.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178639 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
lib/CodeGen/SelectionDAG/LegalizeTypes.h
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/pr15632.ll [new file with mode: 0644]