[llvm-commits] [llvm] r85205 - /llvm/trunk/test/Transforms/Inline/basictest.ll
Chris Lattner
sabre at nondot.org
Mon Oct 26 22:35:35 PDT 2009
Author: lattner
Date: Tue Oct 27 00:35:35 2009
New Revision: 85205
URL: http://llvm.org/viewvc/llvm-project?rev=85205&view=rev
Log:
convert to filecheck.
Modified:
llvm/trunk/test/Transforms/Inline/basictest.ll
Modified: llvm/trunk/test/Transforms/Inline/basictest.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/basictest.ll?rev=85205&r1=85204&r2=85205&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/basictest.ll (original)
+++ llvm/trunk/test/Transforms/Inline/basictest.ll Tue Oct 27 00:35:35 2009
@@ -1,12 +1,15 @@
-; RUN: opt < %s -inline -disable-output -print-function 2> /dev/null
+; RUN: opt < %s -inline -S | FileCheck %s
-define i32 @func(i32 %i) {
+define i32 @test1f(i32 %i) {
ret i32 %i
}
-define i32 @main(i32 %argc) {
- %X = call i32 @func( i32 7 ) ; <i32> [#uses=1]
- %Y = add i32 %X, %argc ; <i32> [#uses=1]
+define i32 @test1(i32 %W) {
+ %X = call i32 @test1f(i32 7)
+ %Y = add i32 %X, %W
ret i32 %Y
+; CHECK: @test1(
+; CHECK-NEXT: %Y = add i32 7, %W
+; CHECK-NEXT: ret i32 %Y
}
More information about the llvm-commits
mailing list