diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-07-03 20:06:13 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-07-03 20:06:13 +0000 |
commit | da852d51dff51f170dbd0088b2500a40126d7b57 (patch) | |
tree | 9a079dd64c0cbeffdd03452b4687020b1b8ccb40 /llvm/lib/Target/Alpha/AlphaISelPattern.cpp | |
parent | 9f6ce0ebb355c5c6cde2679ce2bd09e204d02448 (diff) | |
download | bcm5719-llvm-da852d51dff51f170dbd0088b2500a40126d7b57.tar.gz bcm5719-llvm-da852d51dff51f170dbd0088b2500a40126d7b57.zip |
fix loading address of fp symbols
llvm-svn: 22331
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelPattern.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp index c7a7f5b0fc1..ed285a3d9ff 100644 --- a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp @@ -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()); |