Fix initial frame state on powerpc64.
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 28 Nov 2012 18:21:03 +0000 (18:21 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 28 Nov 2012 18:21:03 +0000 (18:21 +0000)
commit781dfbd482c5177215ae7a43c9483e641eeb0d47
tree4f3f530867c8cc2adb7e53011b51f4a034252b94
parentdacb9a51bddbad9535c1b9339532827e73013388
Fix initial frame state on powerpc64.

The createPPCMCAsmInfo routine used PPC::R1 as the initial frame
pointer register, but on PPC64 the 32-bit R1 register does not
have a corresponding DWARF number, causing invalid CIE initial
frame state to be emitted.  Fix by using PPC::X1 instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168799 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
test/MC/PowerPC/ppc64-initial-cfa.ll [new file with mode: 0644]