[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelLowering.cpp

Jim Laskey jlaskey at apple.com
Tue Aug 16 17:40:33 PDT 2005



Changes in directory llvm/lib/Target/PowerPC:

PPC32ISelLowering.cpp updated: 1.3 -> 1.4
---
Log message:

Make UINT_TO_FP and SINT_TO_FP use generic expansion.



---
Diffs of the changes:  (+4 -0)

 PPC32ISelLowering.cpp |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/lib/Target/PowerPC/PPC32ISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelLowering.cpp:1.3 llvm/lib/Target/PowerPC/PPC32ISelLowering.cpp:1.4
--- llvm/lib/Target/PowerPC/PPC32ISelLowering.cpp:1.3	Tue Aug 16 16:58:15 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelLowering.cpp	Tue Aug 16 19:40:22 2005
@@ -74,6 +74,10 @@
   // 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); //






More information about the llvm-commits mailing list