Fix bug involving bool arguments to binary operators.
authorBrian Gaeke <gaeke@uiuc.edu>
Thu, 8 Jul 2004 08:08:10 +0000 (08:08 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Thu, 8 Jul 2004 08:08:10 +0000 (08:08 +0000)
Fix typo in comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14684 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/InstSelectSimple.cpp
lib/Target/Sparc/SparcV8ISelSimple.cpp
lib/Target/SparcV8/InstSelectSimple.cpp
lib/Target/SparcV8/SparcV8ISelSimple.cpp

index 43f2646d1e879809229c52bce7598ccdac18a0b3..527b0bb47a85c0fecfa18d25d9295ef1d042d654 100644 (file)
@@ -904,7 +904,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
     BuildMI (BB, Opcodes[OpCase], 2, ResultReg).addReg (Op0Reg).addReg (Op1Reg);
   }
 
-  switch (getClass (I.getType ())) {
+  switch (getClassB (I.getType ())) {
     case cByte: 
       if (I.getType ()->isSigned ()) { // add byte
         BuildMI (BB, V8::ANDri, 2, DestReg).addReg (ResultReg).addZImm (0xff);
@@ -926,7 +926,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
       }
       break;
     case cInt:
-      // Nothing todo here.
+      // Nothing to do here.
       break;
     case cLong:
       // Only support and, or, xor.
index 43f2646d1e879809229c52bce7598ccdac18a0b3..527b0bb47a85c0fecfa18d25d9295ef1d042d654 100644 (file)
@@ -904,7 +904,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
     BuildMI (BB, Opcodes[OpCase], 2, ResultReg).addReg (Op0Reg).addReg (Op1Reg);
   }
 
-  switch (getClass (I.getType ())) {
+  switch (getClassB (I.getType ())) {
     case cByte: 
       if (I.getType ()->isSigned ()) { // add byte
         BuildMI (BB, V8::ANDri, 2, DestReg).addReg (ResultReg).addZImm (0xff);
@@ -926,7 +926,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
       }
       break;
     case cInt:
-      // Nothing todo here.
+      // Nothing to do here.
       break;
     case cLong:
       // Only support and, or, xor.
index 43f2646d1e879809229c52bce7598ccdac18a0b3..527b0bb47a85c0fecfa18d25d9295ef1d042d654 100644 (file)
@@ -904,7 +904,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
     BuildMI (BB, Opcodes[OpCase], 2, ResultReg).addReg (Op0Reg).addReg (Op1Reg);
   }
 
-  switch (getClass (I.getType ())) {
+  switch (getClassB (I.getType ())) {
     case cByte: 
       if (I.getType ()->isSigned ()) { // add byte
         BuildMI (BB, V8::ANDri, 2, DestReg).addReg (ResultReg).addZImm (0xff);
@@ -926,7 +926,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
       }
       break;
     case cInt:
-      // Nothing todo here.
+      // Nothing to do here.
       break;
     case cLong:
       // Only support and, or, xor.
index 43f2646d1e879809229c52bce7598ccdac18a0b3..527b0bb47a85c0fecfa18d25d9295ef1d042d654 100644 (file)
@@ -904,7 +904,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
     BuildMI (BB, Opcodes[OpCase], 2, ResultReg).addReg (Op0Reg).addReg (Op1Reg);
   }
 
-  switch (getClass (I.getType ())) {
+  switch (getClassB (I.getType ())) {
     case cByte: 
       if (I.getType ()->isSigned ()) { // add byte
         BuildMI (BB, V8::ANDri, 2, DestReg).addReg (ResultReg).addZImm (0xff);
@@ -926,7 +926,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
       }
       break;
     case cInt:
-      // Nothing todo here.
+      // Nothing to do here.
       break;
     case cLong:
       // Only support and, or, xor.