[llvm-commits] [llvm] r122232 - /llvm/trunk/test/Transforms/Inline/byval.ll

Chris Lattner sabre at nondot.org
Sun Dec 19 23:38:24 PST 2010


Author: lattner
Date: Mon Dec 20 01:38:24 2010
New Revision: 122232

URL: http://llvm.org/viewvc/llvm-project?rev=122232&view=rev
Log:
filecheckize

Modified:
    llvm/trunk/test/Transforms/Inline/byval.ll

Modified: llvm/trunk/test/Transforms/Inline/byval.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/byval.ll?rev=122232&r1=122231&r2=122232&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/byval.ll (original)
+++ llvm/trunk/test/Transforms/Inline/byval.ll Mon Dec 20 01:38:24 2010
@@ -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 @@
 
 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 @@
 	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
 }





More information about the llvm-commits mailing list