fix loading address of fp symbols
authorAndrew Lenharth <andrewl@lenharth.org>
Sun, 3 Jul 2005 20:06:13 +0000 (20:06 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Sun, 3 Jul 2005 20:06:13 +0000 (20:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22331 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaISelPattern.cpp

index c7a7f5b0fc1121167fefa5a66970ed3eab2a6038..ed285a3d9ff5507a6cfd375ae85fb18d19054c1b 100644 (file)
@@ -1319,6 +1319,8 @@ unsigned AlphaISel::SelectExpr(SDOperand N) {
   case ISD::GlobalAddress:
     AlphaLowering.restoreGP(BB);
     has_sym = true;
+    Reg = Result = MakeReg(MVT::i64);
 
     if (EnableAlphaLSMark)
       BuildMI(BB, Alpha::MEMLABEL, 4).addImm(5).addImm(0).addImm(0)
@@ -1333,6 +1335,8 @@ unsigned AlphaISel::SelectExpr(SDOperand N) {
     AlphaLowering.restoreGP(BB);
     has_sym = true;
 
+    Reg = Result = MakeReg(MVT::i64);
+
     if (EnableAlphaLSMark)
       BuildMI(BB, Alpha::MEMLABEL, 4).addImm(5).addImm(0).addImm(0)
         .addImm(getUID());