summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/tailcallbyval.ll
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2013-02-13 21:46:38 +0000
committerEli Bendersky <eliben@google.com>2013-02-13 21:46:38 +0000
commit8b75e6bc35fb3f9c1e788dbd05084c0f4a60a0f3 (patch)
tree645512a9bcb290e999d493083b9929a8123571fb /test/CodeGen/X86/tailcallbyval.ll
parent3019fbbe6ab4c23a5a580f0cc6ba1ba1b124e1da (diff)
downloadllvm-8b75e6bc35fb3f9c1e788dbd05084c0f4a60a0f3.tar.gz
llvm-8b75e6bc35fb3f9c1e788dbd05084c0f4a60a0f3.tar.bz2
llvm-8b75e6bc35fb3f9c1e788dbd05084c0f4a60a0f3.tar.xz
s/grep/FileCheck/ in some tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/tailcallbyval.ll')
-rw-r--r--test/CodeGen/X86/tailcallbyval.ll8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/CodeGen/X86/tailcallbyval.ll b/test/CodeGen/X86/tailcallbyval.ll
index 118eee6ba6..f0ccaaa16d 100644
--- a/test/CodeGen/X86/tailcallbyval.ll
+++ b/test/CodeGen/X86/tailcallbyval.ll
@@ -1,5 +1,4 @@
-; RUN: llc < %s -march=x86 -tailcallopt | grep TAILCALL
-; RUN: llc < %s -march=x86 -tailcallopt | grep "movl[[:space:]]*4(%esp), %eax" | count 1
+; RUN: llc < %s -march=x86 -tailcallopt | FileCheck %s
%struct.s = type {i32, i32, i32, i32, i32, i32, i32, i32,
i32, i32, i32, i32, i32, i32, i32, i32,
i32, i32, i32, i32, i32, i32, i32, i32 }
@@ -9,10 +8,15 @@ entry:
%tmp2 = getelementptr %struct.s* %a, i32 0, i32 0
%tmp3 = load i32* %tmp2
ret i32 %tmp3
+; CHECK: tailcallee
+; CHECK: movl 4(%esp), %eax
}
define fastcc i32 @tailcaller(%struct.s* byval %a) nounwind {
entry:
%tmp4 = tail call fastcc i32 @tailcallee(%struct.s* byval %a )
ret i32 %tmp4
+; CHECK: tailcaller
+; CHECK: jmp tailcallee
}
+