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

Andrew Lenharth alenhar2 at cs.uiuc.edu
Thu Apr 14 09:24:13 PDT 2005



Changes in directory llvm/lib/Target/Alpha:

AlphaAsmPrinter.cpp updated: 1.11 -> 1.12
AlphaISelPattern.cpp updated: 1.97 -> 1.98
---
Log message:

a 21264 fix, and fix the operator precidence on an and -> zap check (should fix hundreds of test cases

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

 AlphaAsmPrinter.cpp  |   10 +++++++++-
 AlphaISelPattern.cpp |    4 ++--
 2 files changed, 11 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff -u llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.11 llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.12
--- llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.11	Wed Apr 13 12:17:28 2005
+++ llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp	Thu Apr 14 11:24:00 2005
@@ -25,9 +25,14 @@
 
 #include "llvm/Support/Mangler.h"
 #include "llvm/ADT/Statistic.h"
+#include "llvm/Support/CommandLine.h"
 
 using namespace llvm;
 
+namespace llvm {
+  extern cl::opt<bool> EnableAlphaFTOI;
+}
+
 namespace {
   Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
 
@@ -229,7 +234,10 @@
 bool AlphaAsmPrinter::doInitialization(Module &M)
 {
   AsmPrinter::doInitialization(M);
-  O << "\t.arch ev56\n";
+  if(EnableAlphaFTOI)
+    O << "\t.arch ev6\n";
+  else
+    O << "\t.arch ev56\n";
   return false;
 }
     


Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.97 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.98
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.97	Wed Apr 13 12:17:28 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp	Thu Apr 14 11:24:00 2005
@@ -1695,9 +1695,9 @@
       unsigned int build = 0;
       for(int i = 0; i < 8; ++i)
       {
-        if (k & 0xFF == 0xFF)
+        if ((k & 0x00FF) == 0x00FF)
           build |= 1 << i;
-        else if (k & 0xFF != 0)
+        else if ((k & 0x00FF) != 0)
         { build = 0; break; }
         k >>= 8;
       }






More information about the llvm-commits mailing list