summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fast-isel-x86-64.ll
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-04-19 17:22:22 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-04-19 17:22:22 +0000
commit3762046dbfbf17b0c21804cce39f02b2dce05ff9 (patch)
tree591b4420ccdce786d33ab2129b851fe92c245cad /test/CodeGen/X86/fast-isel-x86-64.ll
parent430721cff8bc3b5baceab7700bcb9b6a51d70327 (diff)
downloadllvm-3762046dbfbf17b0c21804cce39f02b2dce05ff9.tar.gz
llvm-3762046dbfbf17b0c21804cce39f02b2dce05ff9.tar.bz2
llvm-3762046dbfbf17b0c21804cce39f02b2dce05ff9.tar.xz
Add support for FastISel'ing varargs calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fast-isel-x86-64.ll')
-rw-r--r--test/CodeGen/X86/fast-isel-x86-64.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fast-isel-x86-64.ll b/test/CodeGen/X86/fast-isel-x86-64.ll
index 1770e73223..4665989298 100644
--- a/test/CodeGen/X86/fast-isel-x86-64.ll
+++ b/test/CodeGen/X86/fast-isel-x86-64.ll
@@ -181,3 +181,22 @@ define void @test15(i8* %a, i8* %b) nounwind {
; CHECK-NEXT: movl %eax, (%rdi)
; CHECK-NEXT: ret
}
+
+; Handling for varargs calls
+declare void @test16callee(...) nounwind
+define void @test16() nounwind {
+; CHECK: test16:
+; CHECK: movl $1, %edi
+; CHECK: movb $0, %al
+; CHECK: callq _test16callee
+ call void (...)* @test16callee(i32 1)
+ br label %block2
+
+block2:
+; CHECK: movabsq $1
+; CHECK: cvtsi2sdq {{.*}} %xmm0
+; CHECK: movb $1, %al
+; CHECK: callq _test16callee
+ call void (...)* @test16callee(double 1.000000e+00)
+ ret void
+}