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)
commit9e159fd7a02e3744f17c792a49dc440c4159be0f
tree533cb39837e907139d7b618161bbac693a0b5063
parent53f7e129091643944d484017105fa906613e42c0
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.

llvm-svn: 168799
llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
llvm/test/MC/PowerPC/ppc64-initial-cfa.ll [new file with mode: 0644]