summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitee92a6b33270ef5d85c4ea4caa585f2793813a61 (patch)
tree724a1af10a689e03dec82ad33258694196c6d3b8 /llvm/test/CodeGen/X86/fast-isel-x86-64.ll
parentaf12138d10920d5cdae9c0415901dcaab1351599 (diff)
downloadbcm5719-llvm-ee92a6b33270ef5d85c4ea4caa585f2793813a61.tar.gz
bcm5719-llvm-ee92a6b33270ef5d85c4ea4caa585f2793813a61.zip
Add support for FastISel'ing varargs calls.
llvm-svn: 129765
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel-x86-64.ll')
-rw-r--r--llvm/test/CodeGen/X86/fast-isel-x86-64.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-x86-64.ll b/llvm/test/CodeGen/X86/fast-isel-x86-64.ll
index 1770e732230..46659892983 100644
--- a/llvm/test/CodeGen/X86/fast-isel-x86-64.ll
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud