summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2005-08-17 00:40:22 +0000
committerJim Laskey <jlaskey@mac.com>2005-08-17 00:40:22 +0000
commit6267b2c97c551929753e6275587e8d8167356a05 (patch)
tree56f525ba7170edfbbba6e092003dbac873326609 /llvm/lib
parentf2516a91800cbaba208c11c974947e01bbc68afe (diff)
downloadbcm5719-llvm-6267b2c97c551929753e6275587e8d8167356a05.tar.gz
bcm5719-llvm-6267b2c97c551929753e6275587e8d8167356a05.zip
Make UINT_TO_FP and SINT_TO_FP use generic expansion.
llvm-svn: 22815
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index deda6d72026..8271bca3d7e 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -74,6 +74,10 @@ PPC32TargetLowering::PPC32TargetLowering(TargetMachine &TM)
// PowerPC does not have FP_TO_UINT
setOperationAction(ISD::FP_TO_UINT, MVT::i32, Expand);
+ // PowerPC does not have [U|S]INT_TO_FP
+ setOperationAction(ISD::SINT_TO_FP, MVT::i32, Expand);
+ setOperationAction(ISD::UINT_TO_FP, MVT::i32, Expand);
+
setSetCCResultContents(ZeroOrOneSetCCResult);
addLegalFPImmediate(+0.0); // Necessary for FSEL
addLegalFPImmediate(-0.0); //
OpenPOWER on IntegriCloud