aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaISelPattern.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r--lib/Target/Alpha/AlphaISelPattern.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp
index 6d2cfc63f1..deb367887d 100644
--- a/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -1607,8 +1607,9 @@ unsigned AlphaISel::SelectExpr(SDOperand N) {
case ISD::GlobalAddress:
AlphaLowering.restoreGP(BB);
has_sym = true;
- BuildMI(BB, Alpha::LOAD_ADDR, 1, Result)
- .addGlobalAddress(cast<GlobalAddressSDNode>(N)->getGlobal());
+ BuildMI(BB, Alpha::LDQrl, 2, Result)
+ .addGlobalAddress(cast<GlobalAddressSDNode>(N)->getGlobal())
+ .addReg(Alpha::R29);
return Result;
case ISD::TAILCALL: