summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-04-04 18:22:53 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-04-04 18:22:53 +0000
commitaeff24e424e1b2fc7f6903c117c04440bb01c2cc (patch)
tree2e0e9a092f1155b7d386cec9c9d66c8cc383c427 /llvm/lib/Target
parent5a10f08b52eb8f6a9bedccd712026c9baae529df (diff)
downloadbcm5719-llvm-aeff24e424e1b2fc7f6903c117c04440bb01c2cc.tar.gz
bcm5719-llvm-aeff24e424e1b2fc7f6903c117c04440bb01c2cc.zip
Fix LowerBlockAddress to produce instructions with the correct relocation
types for N32 ABI and update test case. llvm-svn: 154031
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/Mips/MipsISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp
index 9cba6884458..2604f7fb728 100644
--- a/llvm/lib/Target/Mips/MipsISelLowering.cpp
+++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp
@@ -1577,8 +1577,8 @@ SDValue MipsTargetLowering::LowerBlockAddress(SDValue Op,
}
EVT ValTy = Op.getValueType();
- unsigned GOTFlag = IsN64 ? MipsII::MO_GOT_PAGE : MipsII::MO_GOT;
- unsigned OFSTFlag = IsN64 ? MipsII::MO_GOT_OFST : MipsII::MO_ABS_LO;
+ unsigned GOTFlag = HasMips64 ? MipsII::MO_GOT_PAGE : MipsII::MO_GOT;
+ unsigned OFSTFlag = HasMips64 ? MipsII::MO_GOT_OFST : MipsII::MO_ABS_LO;
SDValue BAGOTOffset = DAG.getBlockAddress(BA, ValTy, true, GOTFlag);
BAGOTOffset = DAG.getNode(MipsISD::Wrapper, dl, ValTy,
GetGlobalReg(DAG, ValTy), BAGOTOffset);
OpenPOWER on IntegriCloud