[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Wed Jan 26 17:23:05 PST 2005



Changes in directory llvm/lib/Target/Alpha:

AlphaISelPattern.cpp updated: 1.9 -> 1.10
---
Log message:

perhaps this will let me have calls again

---
Diffs of the changes:  (+9 -5)

 AlphaISelPattern.cpp |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.9 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.10
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.9	Wed Jan 26 18:52:26 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp	Wed Jan 26 19:22:48 2005
@@ -220,6 +220,9 @@
 	break;
       case MVT::i64:
 	break;
+      case MVT::f64:
+      case MVT::f32:
+	break;
       }
       args_to_use.push_back(Args[i].first);
     }
@@ -454,8 +457,12 @@
 				 Alpha::R19, Alpha::R20, Alpha::R21};
 	  unsigned args_float[] = {Alpha::F16, Alpha::F17, Alpha::F18, 
 				   Alpha::F19, Alpha::F20, Alpha::F21};
-	  switch(N.getOperand(i).getValueType()) {
-	  default: Node->dump(); assert(0 && "Unknown value type for call");
+	  switch(N.getOperand(i+2).getValueType()) {
+	  default: 
+	    Node->dump(); 
+	    N.getOperand(i).Val->dump();
+	    std::cerr << "Type for " << i << " is: " << N.getOperand(i+2).getValueType() << "\n";
+	    assert(0 && "Unknown value type for call");
 	  case MVT::i1:
 	  case MVT::i8:
 	  case MVT::i16:
@@ -474,20 +481,17 @@
       if (GlobalAddressSDNode *GASD =
 	  dyn_cast<GlobalAddressSDNode>(N.getOperand(1))) 
 	{
-	  Select(N.getOperand(0));
 	  AlphaLowering.restoreGP(BB);
 	  BuildMI(BB, Alpha::CALL, 1).addGlobalAddress(GASD->getGlobal(),true);
 	} 
       else if (ExternalSymbolSDNode *ESSDN =
 	       dyn_cast<ExternalSymbolSDNode>(N.getOperand(1))) 
 	{
-	  Select(N.getOperand(0));
 	  AlphaLowering.restoreGP(BB);
 	  BuildMI(BB, Alpha::CALL, 0).addExternalSymbol(ESSDN->getSymbol(), true);
 	} 
       else 
 	{
-	  Select(N.getOperand(0));
 	  Tmp1 = SelectExpr(N.getOperand(1));
 	  BuildMI(BB, Alpha::CALL, 1).addReg(Tmp1);
 	  AlphaLowering.restoreGP(BB);






More information about the llvm-commits mailing list