Change tests from "opt %s" to "opt < %s" so that opt doesn't see the

input filename so that opt doesn't print the input filename in the
output so that grep lines in the tests don't unintentionally match
strings in the input filename.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2009-09-11 18:01:28 +00:00
parent 597f9797fd
commit f2f6ce65b7
1273 changed files with 1366 additions and 1366 deletions

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -disable-output
; RUN: opt < %s -simplify-libcalls -disable-output
@G = constant [3 x i8] c"%s\00" ; <[3 x i8]*> [#uses=1]

View File

@ -1,5 +1,5 @@
; PR1307
; RUN: opt %s -simplify-libcalls -instcombine -S > %t
; RUN: opt < %s -simplify-libcalls -instcombine -S > %t
; RUN: grep {@str,.*i64 3} %t
; RUN: grep {@str1,.*i64 7} %t
; RUN: grep {ret i8.*null} %t

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -S | grep i32
; RUN: opt < %s -simplify-libcalls -S | grep i32
; PR2341
@_2E_str = external constant [5 x i8] ; <[5 x i8]*> [#uses=1]

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -S > %t
; RUN: opt < %s -simplify-libcalls -S > %t
; RUN: grep noalias %t | count 2
; RUN: grep nocapture %t | count 3
; RUN: grep nounwind %t | count 3

View File

@ -1,4 +1,4 @@
; RUN: opt %s -inline -simplify-libcalls -functionattrs | \
; RUN: opt < %s -inline -simplify-libcalls -functionattrs | \
; RUN: llvm-dis | grep nocapture | count 2
; Check that nocapture attributes are added when run after an SCC pass.
; PR3520

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -S > %t
; RUN: opt < %s -simplify-libcalls -S > %t
; RUN: grep nocapture %t | count 2
; RUN: grep null %t | grep nocapture | count 1
; RUN: grep null %t | grep call | grep readonly | count 1

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -instcombine -S | grep {ret i32 -65}
; RUN: opt < %s -simplify-libcalls -instcombine -S | grep {ret i32 -65}
; PR4284
define i32 @test() nounwind {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -disable-output
; RUN: opt < %s -simplify-libcalls -disable-output
; PR4641
%struct.__sFILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct.__sbuf, i8*, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64, %struct.pthread_mutex*, %struct.pthread*, i32, i32, %union.anon }

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -disable-output
; RUN: opt < %s -simplify-libcalls -disable-output
; PR4645
define i32 @main() {

View File

@ -1,5 +1,5 @@
; Test that the ToAsciiOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*@ffs}
@non_const = external global i32 ; <i32*> [#uses=1]

View File

@ -1,5 +1,5 @@
; Test that the FPrintFOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*fprintf}
; This transformation requires the pointer size, as it assumes that size_t is

View File

@ -1,5 +1,5 @@
; Test that the IsDigitOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep call
declare i32 @isdigit(i32)

View File

@ -1,4 +1,4 @@
; RUN: opt %s -constprop -instcombine -S | not grep {call.*llvm.memcpy.i32}
; RUN: opt < %s -constprop -instcombine -S | not grep {call.*llvm.memcpy.i32}
@h = constant [2 x i8] c"h\00" ; <[2 x i8]*> [#uses=1]
@hel = constant [4 x i8] c"hel\00" ; <[4 x i8]*> [#uses=1]

View File

@ -1,5 +1,5 @@
; RUN: opt %s -simplify-libcalls -S | grep putchar
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | grep putchar
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*printf}
@str = internal constant [13 x i8] c"hello world\0A\00" ; <[13 x i8]*> [#uses=1]

View File

@ -1,5 +1,5 @@
; Test that the PutsCatOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*fputs}
; This transformation requires the pointer size, as it assumes that size_t is

View File

@ -1,5 +1,5 @@
; Test that the SPrintFOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*sprintf}
; This transformation requires the pointer size, as it assumes that size_t is

View File

@ -1,8 +1,8 @@
; Test that the StrCatOptimizer works correctly
; PR3661
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*strcat}
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: grep {puts.*%arg1}
; This transformation requires the pointer size, as it assumes that size_t is

View File

@ -1,5 +1,5 @@
; Test that the StrChrOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*@strchr}
; This transformation requires the pointer size, as it assumes that size_t is

View File

@ -1,5 +1,5 @@
; Test that the StrCmpOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*strcmp}
@hello = constant [6 x i8] c"hello\00" ; <[6 x i8]*> [#uses=1]

View File

@ -1,5 +1,5 @@
; Test that the StrCpyOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*strcpy}
; This transformation requires the pointer size, as it assumes that size_t is

View File

@ -1,5 +1,5 @@
; Test that the StrCatOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*strlen}
target datalayout = "e-p:32:32"

View File

@ -1,7 +1,7 @@
; Test that the StrNCatOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*strncat}
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: grep {puts.*%arg1}
; This transformation requires the pointer size, as it assumes that size_t is

View File

@ -1,5 +1,5 @@
; Test that the StrNCmpOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*strncmp}
@hello = constant [6 x i8] c"hello\00" ; <[6 x i8]*> [#uses=1]

View File

@ -1,5 +1,5 @@
; Test that the StrNCpyOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*strncpy}
; This transformation requires the pointer size, as it assumes that size_t is

View File

@ -1,5 +1,5 @@
; Test that the ToAsciiOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | \
; RUN: opt < %s -simplify-libcalls -S | \
; RUN: not grep {call.*toascii}
declare i32 @toascii(i32)

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -S | grep {select i1 %ispos}
; RUN: opt < %s -simplify-libcalls -S | grep {select i1 %ispos}
; PR2337
define i32 @test(i32 %x) {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -S | grep {call.*ldexp} | count 4
; RUN: opt < %s -simplify-libcalls -S | grep {call.*ldexp} | count 4
; rdar://5852514
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -S > %t
; RUN: opt < %s -simplify-libcalls -S > %t
; RUN: not grep {call.*floor(} %t
; RUN: grep {call.*floorf(} %t
; RUN: not grep {call.*ceil(} %t

View File

@ -1,5 +1,5 @@
; Test that the memcmpOptimizer works correctly
; RUN: opt %s -simplify-libcalls -S | not grep {call.*memcmp}
; RUN: opt < %s -simplify-libcalls -S | not grep {call.*memcmp}
@h = constant [2 x i8] c"h\00" ; <[2 x i8]*> [#uses=0]
@hel = constant [4 x i8] c"hel\00" ; <[4 x i8]*> [#uses=0]

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -S | grep {llvm.memmove}
; RUN: opt < %s -simplify-libcalls -S | grep {llvm.memmove}
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i686-pc-linux-gnu"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -S | grep {llvm.memset}
; RUN: opt < %s -simplify-libcalls -S | grep {llvm.memset}
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
target triple = "x86_64-pc-linux-gnu"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -S | grep {llvm.memset}
; RUN: opt < %s -simplify-libcalls -S | grep {llvm.memset}
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i686-pc-linux-gnu"

View File

@ -1,6 +1,6 @@
; Testcase for calls to the standard C "pow" function
;
; RUN: opt %s -simplify-libcalls -S | not grep {call .pow}
; RUN: opt < %s -simplify-libcalls -S | not grep {call .pow}
declare double @pow(double, double)

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplify-libcalls -S | FileCheck %s
; RUN: opt < %s -simplify-libcalls -S | FileCheck %s
; PR4738
; SimplifyLibcalls shouldn't assume anything about weak symbols.