diff options
author | Nico Rieck <nico.rieck@gmail.com> | 2013-07-08 11:19:44 +0000 |
---|---|---|
committer | Nico Rieck <nico.rieck@gmail.com> | 2013-07-08 11:19:44 +0000 |
commit | 63e7778b53a1c8c190d5c67a9e8871c2acb00b26 (patch) | |
tree | a2f017fda1d896f459db309e655772226027a07f /test/CodeGen/X86/win64_vararg.ll | |
parent | ce1c30ce39f6b1e3008376578d3cf593a4e90d87 (diff) | |
download | external_llvm-63e7778b53a1c8c190d5c67a9e8871c2acb00b26.zip external_llvm-63e7778b53a1c8c190d5c67a9e8871c2acb00b26.tar.gz external_llvm-63e7778b53a1c8c190d5c67a9e8871c2acb00b26.tar.bz2 |
Revert "Proper va_arg/va_copy lowering on win64"
This reverts commit 2b52880592a525cfe04d8f9008a35da8c2ea94c3.
Needs review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/win64_vararg.ll')
-rw-r--r-- | test/CodeGen/X86/win64_vararg.ll | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/test/CodeGen/X86/win64_vararg.ll b/test/CodeGen/X86/win64_vararg.ll index 07b7826..52bc509 100644 --- a/test/CodeGen/X86/win64_vararg.ll +++ b/test/CodeGen/X86/win64_vararg.ll @@ -18,7 +18,6 @@ entry: } declare void @llvm.va_start(i8*) nounwind -declare void @llvm.va_copy(i8*, i8*) nounwind ; CHECK: f5: ; CHECK: pushq @@ -52,61 +51,3 @@ entry: call void @llvm.va_start(i8* %ap1) ret i8* %ap1 } - -; WinX86_64 uses char* for va_list. Verify that the correct amount of bytes -; are copied using va_copy. -; CHECK: copy4: -; CHECK: subq $16 -; CHECK: leaq 56(%rsp), [[REGISTER:%[a-z]+]] -; CHECK: movq [[REGISTER]], 8(%rsp) -; CHECK: movq [[REGISTER]], (%rsp) -; CHECK: addq $16 -; CHECK: ret -define void @copy4(i64 %a0, i64 %a1, i64 %a2, i64 %a3, ...) nounwind { -entry: - %ap = alloca i8*, align 8 - %cp = alloca i8*, align 8 - %ap1 = bitcast i8** %ap to i8* - %cp1 = bitcast i8** %cp to i8* - call void @llvm.va_start(i8* %ap1) - call void @llvm.va_copy(i8* %cp1, i8* %ap1) - ret void -} - -; CHECK: copy1: -; CHECK: subq $16 -; CHECK: leaq 32(%rsp), [[REGISTER:%[a-z]+]] -; CHECK: movq [[REGISTER]], 8(%rsp) -; CHECK: movq [[REGISTER]], (%rsp) -; CHECK: addq $16 -; CHECK: ret -define void @copy1(i64 %a0, ...) nounwind { -entry: - %ap = alloca i8*, align 8 - %cp = alloca i8*, align 8 - %ap1 = bitcast i8** %ap to i8* - %cp1 = bitcast i8** %cp to i8* - call void @llvm.va_start(i8* %ap1) - call void @llvm.va_copy(i8* %cp1, i8* %ap1) - ret void -} - -; CHECK: arg4: -; CHECK: pushq -; va_start: -; CHECK: leaq 48(%rsp), [[REG1:%[a-z]+]] -; CHECK: movq [[REG1]], (%rsp) -; va_arg: -; CHECK: leaq 52(%rsp), [[REG2:%[a-z]+]] -; CHECK: movq [[REG2]], (%rsp) -; CHECK: movl 48(%rsp), %eax -; CHECK: popq -; CHECK: ret -define i32 @arg4(i64 %a0, i64 %a1, i64 %a2, i64 %a3, ...) nounwind { -entry: - %ap = alloca i8*, align 8 - %ap1 = bitcast i8** %ap to i8* - call void @llvm.va_start(i8* %ap1) - %tmp = va_arg i8** %ap, i32 - ret i32 %tmp -} |