diff options
author | Owen Anderson <resistor@mac.com> | 2011-12-08 19:32:14 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-12-08 19:32:14 +0000 |
commit | 0b9b9da6c87561655af834f9ced38cd4908aebb7 (patch) | |
tree | 9022594ba7f537c37e2d455777ab7406b3c18106 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | 4edc7360c76b00a6215c6efa54d57064eb716e9d (diff) | |
download | bcm5719-llvm-0b9b9da6c87561655af834f9ced38cd4908aebb7.tar.gz bcm5719-llvm-0b9b9da6c87561655af834f9ced38cd4908aebb7.zip |
Teach SelectionDAG to match more calls to libm functions onto existing SDNodes. Mark these nodes as illegal by default, unless the target declares otherwise.
llvm-svn: 146171
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 067daf7d4f1..28fed5ad24a 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -103,6 +103,13 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM) // from FP_ROUND: that rounds to nearest, this rounds to zero. setOperationAction(ISD::FP_ROUND_INREG, MVT::ppcf128, Custom); + // We do not currently implment this libm ops for PowerPC. + setOperationAction(ISD::FFLOOR, MVT::ppcf128, Expand); + setOperationAction(ISD::FCEIL, MVT::ppcf128, Expand); + setOperationAction(ISD::FTRUNC, MVT::ppcf128, Expand); + setOperationAction(ISD::FRINT, MVT::ppcf128, Expand); + setOperationAction(ISD::FNEARBYINT, MVT::ppcf128, Expand); + // PowerPC has no SREM/UREM instructions setOperationAction(ISD::SREM, MVT::i32, Expand); setOperationAction(ISD::UREM, MVT::i32, Expand); |