summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-05 22:03:12 +0000
committerChris Lattner <sabre@nondot.org>2007-05-05 22:03:12 +0000
commit60ef91a3ce42c100e3b0ce114a2d3f5e631a2ec9 (patch)
treee2de94146229239aa1e3e9415ac27c32bff403a2 /test
parent2d4a5abb75ea0a306ee06ef553851162a265c154 (diff)
downloadllvm-60ef91a3ce42c100e3b0ce114a2d3f5e631a2ec9.tar.gz
llvm-60ef91a3ce42c100e3b0ce114a2d3f5e631a2ec9.tar.bz2
llvm-60ef91a3ce42c100e3b0ce114a2d3f5e631a2ec9.tar.xz
We need support for tail calls, this is moved to PR1392
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36798 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/2005-12-03-IndirectTailCall.ll25
-rw-r--r--test/CodeGen/X86/fast-cc-tail-call.ll8
2 files changed, 0 insertions, 33 deletions
diff --git a/test/CodeGen/X86/2005-12-03-IndirectTailCall.ll b/test/CodeGen/X86/2005-12-03-IndirectTailCall.ll
deleted file mode 100644
index f5d5ec2e61..0000000000
--- a/test/CodeGen/X86/2005-12-03-IndirectTailCall.ll
+++ /dev/null
@@ -1,25 +0,0 @@
-; XFAIL: *
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep {jmp \\*ecx}
-declare int %putchar(int)
-
-int %main(){
- %f = cast int (int, int*, int)* %check_tail to int*
- %res = tail call fastcc int %check_tail( int 10, int* %f,int 10)
- ret int %res
-}
-
-fastcc int %check_tail(int %x, int* %f, int %g) {
- %tmp1 = setgt int %x, 0
- br bool %tmp1, label %if-then, label %if-else
-
-if-then:
- %fun_ptr = cast int* %f to int(int, int*, int)*
- %arg1 = add int %x, -1
- call int %putchar(int 90)
- %res = tail call fastcc int %fun_ptr( int %arg1, int * %f, int %g)
- ret int %res
-
-if-else:
- ret int %x
-}
-
diff --git a/test/CodeGen/X86/fast-cc-tail-call.ll b/test/CodeGen/X86/fast-cc-tail-call.ll
deleted file mode 100644
index 39a1c55a20..0000000000
--- a/test/CodeGen/X86/fast-cc-tail-call.ll
+++ /dev/null
@@ -1,8 +0,0 @@
-; XFAIL: *
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | not grep call
-
-fastcc int %bar(int %X, int(double, int) *%FP) {
- %Y = tail call fastcc int %FP(double 0.0, int %X)
- ret int %Y
-}
-