summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2011-11-11 04:11:56 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2011-11-11 04:11:56 +0000
commit46ac4399b13d46baa9e6280d540c468d8feba8ad (patch)
tree2b9795aebadfa3d31b92eb88a6ad0592b0358e5e /lib
parentc742e4fc9016b4987dbd06af4670d7759392d08d (diff)
downloadllvm-46ac4399b13d46baa9e6280d540c468d8feba8ad.tar.gz
llvm-46ac4399b13d46baa9e6280d540c468d8feba8ad.tar.bz2
llvm-46ac4399b13d46baa9e6280d540c468d8feba8ad.tar.xz
Modify LowerFRAMEADDR. Use 64-bit register FP_64 when ABI is N64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144371 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/Mips/MipsISelLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp
index e32236724e..1a85d54e8b 100644
--- a/lib/Target/Mips/MipsISelLowering.cpp
+++ b/lib/Target/Mips/MipsISelLowering.cpp
@@ -1658,7 +1658,8 @@ LowerFRAMEADDR(SDValue Op, SelectionDAG &DAG) const {
MFI->setFrameAddressIsTaken(true);
EVT VT = Op.getValueType();
DebugLoc dl = Op.getDebugLoc();
- SDValue FrameAddr = DAG.getCopyFromReg(DAG.getEntryNode(), dl, Mips::FP, VT);
+ SDValue FrameAddr = DAG.getCopyFromReg(DAG.getEntryNode(), dl,
+ IsN64 ? Mips::FP_64 : Mips::FP, VT);
return FrameAddr;
}