x32. Fixes a bug in how struct va_list is initialized in x32
authorDerek Schuff <dschuff@google.com>
Tue, 8 Sep 2015 20:51:31 +0000 (20:51 +0000)
committerDerek Schuff <dschuff@google.com>
Tue, 8 Sep 2015 20:51:31 +0000 (20:51 +0000)
commit0d89d696f4b826a130b677079d45f49ef0430c2d
treeff3764930740da50781723861a2bc5048949fd5d
parent88d071c62640cd971b0eb750621b5353be54ee24
x32. Fixes a bug in how struct va_list is initialized in x32

Summary: This patch modifies X86TargetLowering::LowerVASTART so that
struct va_list is initialized with 32 bit pointers in x32. It also
includes tests that call @llvm.va_start() for x32.

Patch by João Porto

Subscribers: llvm-commits, hjl.tools
Differential Revision: http://reviews.llvm.org/D12346

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247069 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/musttail-varargs.ll
test/CodeGen/X86/soft-fp.ll
test/CodeGen/X86/stdarg.ll
test/CodeGen/X86/x32-va_start.ll [new file with mode: 0644]