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

Andrew Lenharth alenhar2 at cs.uiuc.edu
Thu Apr 14 10:34:36 PDT 2005



Changes in directory llvm/lib/Target/Alpha:

AlphaISelPattern.cpp updated: 1.98 -> 1.99
AlphaInstrInfo.td updated: 1.40 -> 1.41
---
Log message:

fix calls

---
Diffs of the changes:  (+2 -1)

 AlphaISelPattern.cpp |    1 +
 AlphaInstrInfo.td    |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.98 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.99
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.98	Thu Apr 14 11:24:00 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp	Thu Apr 14 12:34:20 2005
@@ -1418,6 +1418,7 @@
           BuildMI(BB, Alpha::CALL, 1).addGlobalAddress(GASD->getGlobal());
         } else {
           //use PC relative branch call
+          AlphaLowering.restoreGP(BB);
           BuildMI(BB, Alpha::BSR, 1, Alpha::R26).addGlobalAddress(GASD->getGlobal(),true);
         }
       } 


Index: llvm/lib/Target/Alpha/AlphaInstrInfo.td
diff -u llvm/lib/Target/Alpha/AlphaInstrInfo.td:1.40 llvm/lib/Target/Alpha/AlphaInstrInfo.td:1.41
--- llvm/lib/Target/Alpha/AlphaInstrInfo.td:1.40	Wed Apr 13 11:19:50 2005
+++ llvm/lib/Target/Alpha/AlphaInstrInfo.td	Thu Apr 14 12:34:20 2005
@@ -330,7 +330,7 @@
             R20, R21, R22, R23, R24, R25, R27, R28, R29,
             F0, F1,
             F10, F11, F12, F13, F14, F15, F16, F17, F18, F19,
-            F20, F21, F22, F23, F24, F25, F26, F27, F28, F29, F30] in {
+            F20, F21, F22, F23, F24, F25, F26, F27, F28, F29, F30], Uses = [R29] in {
     def JSR : MForm< 0x1A, (ops GPRC:$RD, GPRC:$RS, s14imm:$DISP), "jsr $RD,($RS),$DISP">; //Jump to subroutine
     def BSR : BForm<0x34, (ops GPRC:$RD, s21imm:$DISP), "bsr $RD,$DISP">; //Branch to subroutine
 }






More information about the llvm-commits mailing list