fix the expansion of va_arg instruction on PPC to know the arg
authorChris Lattner <sabre@nondot.org>
Sun, 10 Oct 2010 18:34:00 +0000 (18:34 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 10 Oct 2010 18:34:00 +0000 (18:34 +0000)
commit749dc72bdcf214b1a3e2b4eee37e836a39e6bdea
tree840171b60f96922294b5a6aac81af61dfca7067d
parent7d2e7bef90785b174a350f3bc4b240256be9831c
fix the expansion of va_arg instruction on PPC to know the arg
alignment for PPC32/64, avoiding some masking operations.

llvm-gcc expands vaarg inline instead of using the instruction
so it has never hit this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116168 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/varargs.ll [new file with mode: 0644]