[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcInternals.h

Misha Brukman brukman at cs.uiuc.edu
Tue May 27 17:45:01 PDT 2003


Changes in directory llvm/lib/Target/Sparc:

SparcInternals.h updated: 1.86 -> 1.87

---
Log message:

Added the 'r' and 'i' annotations to instructions as their opcode names have
changed.


---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/SparcInternals.h
diff -u llvm/lib/Target/Sparc/SparcInternals.h:1.86 llvm/lib/Target/Sparc/SparcInternals.h:1.87
--- llvm/lib/Target/Sparc/SparcInternals.h:1.86	Tue May 27 17:01:10 2003
+++ llvm/lib/Target/Sparc/SparcInternals.h	Tue May 27 17:44:44 2003
@@ -90,14 +90,14 @@
     bool ignore;
     if (this->maxImmedConstant(opCode, ignore) != 0) {
       // 1st store opcode
-      assert(! this->isStore((MachineOpCode) V9::STB - 1)); //r
+      assert(! this->isStore((MachineOpCode) V9::STBr - 1));
       // last store opcode
-      assert(! this->isStore((MachineOpCode) V9::STXFSR + 1)); //i
+      assert(! this->isStore((MachineOpCode) V9::STXFSRi + 1));
 
       if (opCode == V9::SETSW || opCode == V9::SETUW ||
           opCode == V9::SETX  || opCode == V9::SETHI)
         return 0;
-      if (opCode >= V9::STB && opCode <= V9::STXFSR) //r, i
+      if (opCode >= V9::STBr && opCode <= V9::STXFSRi)
         return 2;
       return 1;
     }





More information about the llvm-commits mailing list