fix 101 regressions

llvm-svn: 21063
diff --git a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
index 6f093ba..6e74a79 100644
--- a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -1591,7 +1591,7 @@
 	//Int SetCC -> Select
 	//Dropping the CC is only useful if we are comparing to 0
 	if(SetCC->getOperand(1).getOpcode() == ISD::Constant &&
-	   cast<ConstantSDNode>(SetCC->getOperand(0))->getValue() == 0)
+	   cast<ConstantSDNode>(SetCC->getOperand(1))->getValue() == 0)
 	  {
 	    bool useI = (SetCC->getOperand(1).getOpcode() == ISD::Constant &&
 			 cast<ConstantSDNode>(SetCC->getOperand(1))->getValue() <= 255);
@@ -1617,8 +1617,8 @@
 		.addReg(SelectExpr(SetCC->getOperand(1)));
 	    return Result;
 	  }
-	if(SetCC->getOperand(1).getOpcode() == ISD::Constant &&
-	   cast<ConstantSDNode>(SetCC->getOperand(1))->getValue() == 0)
+	if(SetCC->getOperand(0).getOpcode() == ISD::Constant &&
+	   cast<ConstantSDNode>(SetCC->getOperand(0))->getValue() == 0)
 	  {
 	    bool useI = (SetCC->getOperand(0).getOpcode() == ISD::Constant &&
 			 cast<ConstantSDNode>(SetCC->getOperand(0))->getValue() <= 255);