diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-11-27 08:18:23 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-11-27 08:18:23 +0000 |
commit | 1db3152ddee056c2433ec29e3286e625ff6ae6f5 (patch) | |
tree | 9aad057518bd93eabc07dc34757bea73880c2d77 /test/Transforms/SimplifyLibCalls/FPuts.ll | |
parent | f5cec289deee9ab19385e3d5ec96fc46b78f0333 (diff) |
llvm/test/Transforms/SimplifyLibCalls: FileCheck-ize 3 tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168691 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyLibCalls/FPuts.ll')
-rw-r--r-- | test/Transforms/SimplifyLibCalls/FPuts.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Transforms/SimplifyLibCalls/FPuts.ll b/test/Transforms/SimplifyLibCalls/FPuts.ll index c3ca4a5158..a6efc0fb96 100644 --- a/test/Transforms/SimplifyLibCalls/FPuts.ll +++ b/test/Transforms/SimplifyLibCalls/FPuts.ll @@ -1,6 +1,5 @@ ; Test that the FPutsOptimizer works correctly -; RUN: opt < %s -simplify-libcalls -S | \ -; RUN: not grep "call.*fputs" +; RUN: opt < %s -simplify-libcalls -S | FileCheck %s ; This transformation requires the pointer size, as it assumes that size_t is ; the size of a pointer. @@ -16,6 +15,7 @@ target datalayout = "p:64:64:64" declare i32 @fputs(i8*, %struct._IO_FILE*) define i32 @main() { +; CHECK: define i32 @main() { entry: %out = load %struct._IO_FILE** @stdout ; <%struct._IO_FILE*> [#uses=3] %s1 = getelementptr [1 x i8]* @empty, i32 0, i32 0 ; <i8*> [#uses=1] @@ -25,4 +25,6 @@ entry: %b = call i32 @fputs( i8* %s2, %struct._IO_FILE* %out ) ; <i32> [#uses=0] %c = call i32 @fputs( i8* %s3, %struct._IO_FILE* %out ) ; <i32> [#uses=0] ret i32 0 + +; CHECK-NOT: @fputs( } |