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

Jim Laskey jlaskey at apple.com
Fri Dec 15 06:33:13 PST 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCISelLowering.cpp updated: 1.244 -> 1.245
---
Log message:

Provide support for FP_TO_UINT.

---
Diffs of the changes:  (+3 -1)

 PPCISelLowering.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.244 llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.245
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.244	Mon Dec 11 17:22:45 2006
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp	Fri Dec 15 08:32:57 2006
@@ -181,9 +181,11 @@
   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.






More information about the llvm-commits mailing list