]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commitdiff
Modify LowerFRAMEADDR. Use 64-bit register FP_64 when ABI is N64.
authorAkira Hatanaka <ahatanaka@mips.com>
Fri, 11 Nov 2011 04:11:56 +0000 (04:11 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Fri, 11 Nov 2011 04:11:56 +0000 (04:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144371 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsISelLowering.cpp

index e32236724e2384d9825affef2ec7f18ad842b5af..1a85d54e8b542d8ddeecd1b071f7da2cc5acc9c9 100644 (file)
@@ -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;
 }