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 | 96c39f733fcb29d3b18bade0a63fc0e18943b4c2 (patch) | |
tree | 771bcc0d64aedd006b875e6bf7c61b2552b176a8 /llvm/test/Transforms/SimplifyLibCalls/FPrintF.ll | |
parent | 62be55783d4163a6eeddcbece85785db9610f066 (diff) | |
download | bcm5719-llvm-96c39f733fcb29d3b18bade0a63fc0e18943b4c2.tar.gz bcm5719-llvm-96c39f733fcb29d3b18bade0a63fc0e18943b4c2.zip |
llvm/test/Transforms/SimplifyLibCalls: FileCheck-ize 3 tests.
llvm-svn: 168691
Diffstat (limited to 'llvm/test/Transforms/SimplifyLibCalls/FPrintF.ll')
-rw-r--r-- | llvm/test/Transforms/SimplifyLibCalls/FPrintF.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/Transforms/SimplifyLibCalls/FPrintF.ll b/llvm/test/Transforms/SimplifyLibCalls/FPrintF.ll index 100f31e54e7..d1410a94686 100644 --- a/llvm/test/Transforms/SimplifyLibCalls/FPrintF.ll +++ b/llvm/test/Transforms/SimplifyLibCalls/FPrintF.ll @@ -1,6 +1,5 @@ ; Test that the FPrintFOptimizer works correctly -; RUN: opt < %s -simplify-libcalls -S | \ -; RUN: not grep "call.*fprintf" +; 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. @@ -15,6 +14,7 @@ target datalayout = "p:64:64:64" declare i32 @fprintf(%struct._IO_FILE*, i8*, ...) +; CHECK: define i32 @foo() { define i32 @foo() { entry: %tmp.1 = load %struct._IO_FILE** @stdout ; <%struct._IO_FILE*> [#uses=1] @@ -24,4 +24,6 @@ entry: %tmp.8 = load %struct._IO_FILE** @stdout ; <%struct._IO_FILE*> [#uses=1] %tmp.7 = call i32 (%struct._IO_FILE*, i8*, ...)* @fprintf( %struct._IO_FILE* %tmp.8, i8* getelementptr ([3 x i8]* @chr, i32 0, i32 0), i32 33 ) ; <i32> [#uses=0] ret i32 0 + +; CHECK-NOT: @fprintf( } |