From 96c39f733fcb29d3b18bade0a63fc0e18943b4c2 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 27 Nov 2012 08:18:23 +0000 Subject: llvm/test/Transforms/SimplifyLibCalls: FileCheck-ize 3 tests. llvm-svn: 168691 --- llvm/test/Transforms/SimplifyLibCalls/FPrintF.ll | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'llvm/test/Transforms/SimplifyLibCalls/FPrintF.ll') 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 ) ; [#uses=0] ret i32 0 + +; CHECK-NOT: @fprintf( } -- cgit v1.2.3