diff options
author | Chris Lattner <sabre@nondot.org> | 2010-12-20 07:38:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-12-20 07:38:24 +0000 |
commit | b0af8ce1d9ac8489daa12e14ccd3a2eef464ed79 (patch) | |
tree | 17059c376b47260fa0f3d466d8e9a77ba7b791fb | |
parent | 2100d21f39a9471254564e359ab8c5901c7aecff (diff) |
filecheckize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122232 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/Inline/byval.ll | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Transforms/Inline/byval.ll b/test/Transforms/Inline/byval.ll index c3552f6964..90de18e6ec 100644 --- a/test/Transforms/Inline/byval.ll +++ b/test/Transforms/Inline/byval.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -inline -S | grep {llvm.memcpy} +; RUN: opt < %s -inline -S | FileCheck %s ; Inlining a byval struct should cause an explicit copy into an alloca. @@ -16,7 +16,7 @@ entry: declare i32 @printf(i8*, ...) nounwind -define i32 @main() nounwind { +define i32 @caller() nounwind { entry: %S = alloca %struct.ss ; <%struct.ss*> [#uses=4] %tmp1 = getelementptr %struct.ss* %S, i32 0, i32 0 ; <i32*> [#uses=1] @@ -25,4 +25,7 @@ entry: store i64 2, i64* %tmp4, align 4 call void @f( %struct.ss* byval %S ) nounwind ret i32 0 +; CHECK: @caller() +; CHECK: %b = alloca %struct.ss +; CHECK: call void @llvm.memcpy } |