[llvm-commits] [llvm] r157795 - in /llvm/trunk/test/CodeGen/X86: tailcall-i1.ll tailcall-void.ll tailcall.ll

Chris Lattner sabre at nondot.org
Thu May 31 22:00:54 PDT 2012


Author: lattner
Date: Fri Jun  1 00:00:54 2012
New Revision: 157795

URL: http://llvm.org/viewvc/llvm-project?rev=157795&view=rev
Log:
merge some tests.

Removed:
    llvm/trunk/test/CodeGen/X86/tailcall-i1.ll
    llvm/trunk/test/CodeGen/X86/tailcall-void.ll
Modified:
    llvm/trunk/test/CodeGen/X86/tailcall.ll

Removed: llvm/trunk/test/CodeGen/X86/tailcall-i1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/tailcall-i1.ll?rev=157794&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/tailcall-i1.ll (original)
+++ llvm/trunk/test/CodeGen/X86/tailcall-i1.ll (removed)
@@ -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
-}

Removed: llvm/trunk/test/CodeGen/X86/tailcall-void.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/tailcall-void.ll?rev=157794&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/tailcall-void.ll (original)
+++ llvm/trunk/test/CodeGen/X86/tailcall-void.ll (removed)
@@ -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 
-}

Modified: llvm/trunk/test/CodeGen/X86/tailcall.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/tailcall.ll?rev=157795&r1=157794&r2=157795&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/tailcall.ll (original)
+++ llvm/trunk/test/CodeGen/X86/tailcall.ll Fri Jun  1 00:00:54 2012
@@ -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 @@
   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
+}





More information about the llvm-commits mailing list