diff options
| author | Chris Lattner <sabre@nondot.org> | 2012-06-01 05:00:54 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2012-06-01 05:00:54 +0000 |
| commit | 21b1e6bbdc7523187eee79ef4b98b3b24120b775 (patch) | |
| tree | 3ded151b8b2397e23d9f48737acd7d53b8bb2ab7 | |
| parent | d82ae12d8cf2eec1c7da4c51d9174116ffe2eb1d (diff) | |
| download | bcm5719-llvm-21b1e6bbdc7523187eee79ef4b98b3b24120b775.tar.gz bcm5719-llvm-21b1e6bbdc7523187eee79ef4b98b3b24120b775.zip | |
merge some tests.
llvm-svn: 157795
| -rw-r--r-- | llvm/test/CodeGen/X86/tailcall-i1.ll | 6 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/tailcall-void.ll | 6 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/tailcall.ll | 14 |
3 files changed, 13 insertions, 13 deletions
diff --git a/llvm/test/CodeGen/X86/tailcall-i1.ll b/llvm/test/CodeGen/X86/tailcall-i1.ll deleted file mode 100644 index 8ef1f11383b..00000000000 --- a/llvm/test/CodeGen/X86/tailcall-i1.ll +++ /dev/null @@ -1,6 +0,0 @@ -; RUN: llc < %s -march=x86 -tailcallopt | grep TAILCALL -define fastcc i1 @i1test(i32, i32, i32, i32) { - entry: - %4 = tail call fastcc i1 @i1test( i32 %0, i32 %1, i32 %2, i32 %3) - ret i1 %4 -} diff --git a/llvm/test/CodeGen/X86/tailcall-void.ll b/llvm/test/CodeGen/X86/tailcall-void.ll deleted file mode 100644 index 4e578d1b641..00000000000 --- a/llvm/test/CodeGen/X86/tailcall-void.ll +++ /dev/null @@ -1,6 +0,0 @@ -; RUN: llc < %s -march=x86 -tailcallopt | grep TAILCALL -define fastcc void @i1test(i32, i32, i32, i32) { - entry: - tail call fastcc void @i1test( i32 %0, i32 %1, i32 %2, i32 %3) - ret void -} diff --git a/llvm/test/CodeGen/X86/tailcall.ll b/llvm/test/CodeGen/X86/tailcall.ll index f7ff5d5308d..36a38e0b69d 100644 --- a/llvm/test/CodeGen/X86/tailcall.ll +++ b/llvm/test/CodeGen/X86/tailcall.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=x86 -tailcallopt | grep TAILCALL | count 5 +; RUN: llc < %s -march=x86 -tailcallopt | grep TAILCALL | count 7 ; With -tailcallopt, CodeGen guarantees a tail call optimization ; for all of these. @@ -38,3 +38,15 @@ define fastcc i32 @noret() nounwind { tail call fastcc void @does_not_return() unreachable } + +define fastcc void @void_test(i32, i32, i32, i32) { + entry: + tail call fastcc void @void_test( i32 %0, i32 %1, i32 %2, i32 %3) + ret void +} + +define fastcc i1 @i1test(i32, i32, i32, i32) { + entry: + %4 = tail call fastcc i1 @i1test( i32 %0, i32 %1, i32 %2, i32 %3) + ret i1 %4 +} |

