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

Chris Lattner lattner at cs.uiuc.edu
Sat Jan 28 22:26:21 PST 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCISelLowering.cpp updated: 1.75 -> 1.76
---
Log message:

Targets all now request ConstantFP to be legalized into TargetConstantFP.
'fpimm' in .td files is now TargetConstantFP.



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

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


Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.75 llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.76
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.75	Sat Jan 28 01:33:03 2006
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp	Sun Jan 29 00:26:07 2006
@@ -37,6 +37,9 @@
   addRegisterClass(MVT::f32, PPC::F4RCRegisterClass);
   addRegisterClass(MVT::f64, PPC::F8RCRegisterClass);
   
+  setOperationAction(ISD::ConstantFP, MVT::f64, Expand);
+  setOperationAction(ISD::ConstantFP, MVT::f32, Expand);
+
   // PowerPC has no intrinsics for these particular operations
   setOperationAction(ISD::MEMMOVE, MVT::Other, Expand);
   setOperationAction(ISD::MEMSET, MVT::Other, Expand);






More information about the llvm-commits mailing list