OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56a752e
)
set the ppc64 stack pointer right, dynamic alloca now works for ppc64
author
Chris Lattner
<sabre@nondot.org>
Wed, 18 Oct 2006 01:20:43 +0000
(
01:20
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 18 Oct 2006 01:20:43 +0000
(
01:20
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31028
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCISelLowering.cpp
b/lib/Target/PowerPC/PPCISelLowering.cpp
index
09569a8
..
4285b68
100644
(file)
--- a/
lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/
lib/Target/PowerPC/PPCISelLowering.cpp
@@
-261,7
+261,11
@@
PPCTargetLowering::PPCTargetLowering(TargetMachine &TM)
setSetCCResultType(MVT::i32);
setShiftAmountType(MVT::i32);
setSetCCResultContents(ZeroOrOneSetCCResult);
- setStackPointerRegisterToSaveRestore(PPC::R1);
+
+ if (TM.getSubtarget<PPCSubtarget>().isPPC64())
+ setStackPointerRegisterToSaveRestore(PPC::X1);
+ else
+ setStackPointerRegisterToSaveRestore(PPC::R1);
// We have target-specific dag combine patterns for the following nodes:
setTargetDAGCombine(ISD::SINT_TO_FP);