diff options
| author | Jim Laskey <jlaskey@mac.com> | 2005-08-17 00:40:22 +0000 |
|---|---|---|
| committer | Jim Laskey <jlaskey@mac.com> | 2005-08-17 00:40:22 +0000 |
| commit | 6267b2c97c551929753e6275587e8d8167356a05 (patch) | |
| tree | 56f525ba7170edfbbba6e092003dbac873326609 /llvm/lib | |
| parent | f2516a91800cbaba208c11c974947e01bbc68afe (diff) | |
| download | bcm5719-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.cpp | 4 |
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); // |

