This patch adds alignment information for long double to the 64-bit PowerPC
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 29 Oct 2012 14:59:36 +0000 (14:59 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 29 Oct 2012 14:59:36 +0000 (14:59 +0000)
commitbbc661e572fdcd4fd8b3829308e0328ad69cedd4
tree1a13f44fa00dde1ecd811c75c529eccfb7c16e5e
parentcec4cb151a07cb32785cee5b170176465b090a6a
This patch adds alignment information for long double to the 64-bit PowerPC
ELF subtarget.

The existing logic is used as a fallback to avoid any changes to the Darwin
ABI.  PPC64 ELF now has two possible data layout strings: one for FreeBSD,
which requires 8-byte alignment, and a default string that requires
16-byte alignment.

I've added a test for PPC64 Linux to verify the 16-byte alignment.  If
somebody wants to add a separate test for FreeBSD, that would be great.

Note that there is a companion patch to update the alignment information
in Clang, which I am committing now as well.

llvm-svn: 166928
llvm/lib/Target/PowerPC/PPCSubtarget.h
llvm/test/CodeGen/PowerPC/ppc64-align-long-double.ll [new file with mode: 0644]