diff options
author | Andrew Trick <atrick@apple.com> | 2013-02-14 03:45:08 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-02-14 03:45:08 +0000 |
commit | 05fdb825358176def129e18abd37f4791c14c780 (patch) | |
tree | f2342959faa2c68b996c3fbe1410a29beafc7adb /test/CodeGen/X86/tailcallbyval.ll | |
parent | bf7ac42663e087b2effc6b9428eddab3b2475073 (diff) | |
download | llvm-05fdb825358176def129e18abd37f4791c14c780.tar.gz llvm-05fdb825358176def129e18abd37f4791c14c780.tar.bz2 llvm-05fdb825358176def129e18abd37f4791c14c780.tar.xz |
Reapply "s/grep/FileCheck/ in some tests"
This reverts commit fd1335e982bbf93c5f450ed4fd29f9f787435c85.
Use a triple this time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175134 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/tailcallbyval.ll')
-rw-r--r-- | test/CodeGen/X86/tailcallbyval.ll | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/CodeGen/X86/tailcallbyval.ll b/test/CodeGen/X86/tailcallbyval.ll index 118eee6ba6..9a0b57c138 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 -mtriple=i686-unknown-linux -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,14 @@ 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 } |