summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-12-15 14:32:57 +0000
committerJim Laskey <jlaskey@mac.com>2006-12-15 14:32:57 +0000
commitf07cc990dd4f86ba7af9a0c98534118a471afd18 (patch)
tree6c096f8e379a5068d6867eb1b4983a028868e777 /llvm/lib
parent57825843d0701cf7d27a5b79a52b0e6408b986e7 (diff)
downloadbcm5719-llvm-f07cc990dd4f86ba7af9a0c98534118a471afd18.tar.gz
bcm5719-llvm-f07cc990dd4f86ba7af9a0c98534118a471afd18.zip
Provide support for FP_TO_UINT.
llvm-svn: 32599
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 08dae42476a..1e901931cce 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -181,9 +181,11 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
if (TM.getSubtarget<PPCSubtarget>().has64BitSupport()) {
// They also have instructions for converting between i64 and fp.
setOperationAction(ISD::FP_TO_SINT, MVT::i64, Custom);
+ setOperationAction(ISD::FP_TO_UINT, MVT::i64, Expand);
setOperationAction(ISD::SINT_TO_FP, MVT::i64, Custom);
setOperationAction(ISD::UINT_TO_FP, MVT::i64, Expand);
-
+ setOperationAction(ISD::FP_TO_UINT, MVT::i32, Expand);
+
// FIXME: disable this lowered code. This generates 64-bit register values,
// and we don't model the fact that the top part is clobbered by calls. We
// need to flag these together so that the value isn't live across a call.
OpenPOWER on IntegriCloud