fix loading address of fp symbols
llvm-svn: 22331
diff --git a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
index c7a7f5b..ed285a3 100644
--- a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -1319,6 +1319,8 @@
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 @@
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());