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
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -disable-output
; RUN: opt < %s -inline -disable-output
declare i32 @External()
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -disable-output
; RUN: opt < %s -inline -disable-output
define i32 @main() {
entry:
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -disable-output
; RUN: opt < %s -inline -disable-output
define i32 @main() {
entry:
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -disable-output
; RUN: opt < %s -inline -disable-output
define i32 @main() {
entry:
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -disable-output
; RUN: opt < %s -inline -disable-output
define i32 @reload() {
reloadentry:
@@ -2,7 +2,7 @@
; node in the exception destination, and the inlined function contains an
; unwind instruction.
; RUN: opt %s -inline -disable-output
; RUN: opt < %s -inline -disable-output
define linkonce void @foo() {
unwind
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -disable-output
; RUN: opt < %s -inline -disable-output
; Inlining the first call caused the inliner function to delete the second
; call. Then the inliner tries to inline the second call, which no longer
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -prune-eh -disable-output
; RUN: opt < %s -inline -prune-eh -disable-output
define linkonce void @caller() {
call void @callee( )
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -disable-output
; RUN: opt < %s -inline -disable-output
define i32 @test() {
unwind
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -prune-eh -disable-output
; RUN: opt < %s -inline -prune-eh -disable-output
%"struct.std::__codecvt_abstract_base<char,char,__mbstate_t>" = type { %"struct.std::locale::facet" }
%"struct.std::basic_streambuf<wchar_t,std::char_traits<wchar_t> >" = type { i32 (...)**, i32*, i32*, i32*, i32*, i32*, i32*, %"struct.std::locale" }
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -prune-eh -disable-output
; RUN: opt < %s -inline -prune-eh -disable-output
; PR827
@_ZTV8CRjii = internal global [1 x i32 (...)*] [ i32 (...)* @_ZN8CRjii12NlFeeEPN5Jr7sE ] ; <[1 x i32 (...)*]*> [#uses=0]
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -prune-eh -disable-output
; RUN: opt < %s -inline -prune-eh -disable-output
; PR993
target datalayout = "e-p:32:32"
target triple = "i386-unknown-openbsd3.9"
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -prune-eh -disable-output
; RUN: opt < %s -inline -prune-eh -disable-output
; PR992
target datalayout = "e-p:32:32"
target triple = "i686-pc-linux-gnu"
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | not grep {invoke void asm}
; RUN: opt < %s -inline -S | not grep {invoke void asm}
; PR1335
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"
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | grep "define internal i32 @bar"
; RUN: opt < %s -inline -S | grep "define internal i32 @bar"
@llvm.noinline = appending global [1 x i8*] [ i8* bitcast (i32 (i32, i32)* @bar to i8*) ], section "llvm.metadata" ; <[1 x i8*]*> [#uses=0]
define internal i32 @bar(i32 %x, i32 %y) {
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | grep call
; RUN: opt < %s -inline -S | grep call
; 'bar' can be overridden at link-time, don't inline it.
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -disable-output
; RUN: opt < %s -inline -disable-output
%struct.Benchmark = type { i32 (...)** }
%struct.Complex = type { double, double }
%struct.ComplexBenchmark = type { %struct.Benchmark }
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -disable-output
; RUN: opt < %s -inline -disable-output
%struct.Demand = type { double, double }
%struct.branch = type { %struct.Demand, double, double, double, double, %struct.branch*, [12 x %struct.leaf*] }
%struct.leaf = type { %struct.Demand, double, double }
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -disable-output
; RUN: opt < %s -inline -disable-output
%struct.Demand = type { double, double }
%struct.branch = type { %struct.Demand, double, double, double, double, %struct.branch*, [12 x %struct.leaf*] }
%struct.leaf = type { %struct.Demand, double, double }
@@ -1,4 +1,4 @@
; RUN: opt %s -inline-threshold=0 -inline -S | not grep call
; RUN: opt < %s -inline-threshold=0 -inline -S | not grep call
define i32 @fn2() alwaysinline {
ret i32 1
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | grep call | count 1
; RUN: opt < %s -inline -S | grep call | count 1
define i32 @fn2() noinline {
ret i32 1
@@ -1,7 +1,7 @@
; RUN: opt %s -always-inline -S | not grep call
; RUN: opt < %s -always-inline -S | not grep call
; Ensure that threshold doesn't disrupt always inline.
; RUN: opt %s -inline-threshold=-2000000001 -always-inline -S | not grep call
; RUN: opt < %s -inline-threshold=-2000000001 -always-inline -S | not grep call
define internal i32 @if0() alwaysinline {
@@ -1,4 +1,4 @@
; RUN: opt %s -always-inline -S | grep {@foo}
; RUN: opt < %s -always-inline -S | grep {@foo}
; Ensure that foo is not removed by always inliner
; PR 2945
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | grep call
; RUN: opt < %s -inline -S | grep call
; Do not inline calls to variable-sized alloca.
@q = common global i8* null ; <i8**> [#uses=1]
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | grep {call.*fib} | count 4
; RUN: opt < %s -inline -S | grep {call.*fib} | count 4
; First call to fib from fib is inlined, producing 2 instead of 1, total 3.
; Second call to fib from fib is not inlined because new body of fib exceeds
; inlining limit of 200. Plus call in main = 4 total.
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -argpromotion -disable-output
; RUN: opt < %s -inline -argpromotion -disable-output
; ModuleID = '<stdin>'
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"
target triple = "i386-apple-darwin9.6"
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -disable-output
; RUN: opt < %s -inline -disable-output
; PR4123
%struct.S0 = type <{ i32 }>
%struct.S1 = type <{ i8, i8, i8, i8, %struct.S0 }>
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: opt %s -inline | llvm-dis
; RUN: opt < %s -inline | llvm-dis
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"
target triple = "i386-apple-darwin10.0"
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | not grep callee
; RUN: opt < %s -inline -S | not grep callee
; rdar://6655932
; If callee is marked alwaysinline, inline it! Even if callee has dynamic
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | FileCheck %s
; RUN: opt < %s -inline -S | FileCheck %s
; rdar://7173846
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"
target triple = "i386-apple-darwin10.0"
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -disable-output -print-function 2> /dev/null
; RUN: opt < %s -inline -disable-output -print-function 2> /dev/null
define i32 @func(i32 %i) {
ret i32 %i
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | grep {llvm.memcpy}
; RUN: opt < %s -inline -S | grep {llvm.memcpy}
; Inlining a byval struct should cause an explicit copy into an alloca.
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | not grep {llvm.memcpy}
; RUN: opt < %s -inline -S | not grep {llvm.memcpy}
; Inlining a byval struct should NOT cause an explicit copy
; into an alloca if the function is readonly
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -loop-rotate | llvm-dis
; RUN: opt < %s -inline -loop-rotate | llvm-dis
; PR3601
declare void @solve()
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | grep {ret i32 1}
; RUN: opt < %s -inline -S | grep {ret i32 1}
; ModuleID = 'short.opt.bc'
define i32 @testBool(i1 %X) {
+1 -1
View File
@@ -1,6 +1,6 @@
; This test ensures that inlining an "empty" function does not destroy the CFG
;
; RUN: opt %s -inline -S | not grep br
; RUN: opt < %s -inline -S | not grep br
define i32 @func(i32 %i) {
ret i32 %i
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -argpromotion -instcombine -disable-output
; RUN: opt < %s -inline -argpromotion -instcombine -disable-output
; This test was failing because the inliner would inline @list_DeleteElement
; into @list_DeleteDuplicates and then into @inf_GetBackwardPartnerLits,
@@ -3,9 +3,9 @@
; Functions with dynamic allocas can only be inlined into functions that
; already have dynamic allocas.
; RUN: opt %s -inline -S | \
; RUN: opt < %s -inline -S | \
; RUN: grep llvm.stacksave
; RUN: opt %s -inline -S | not grep callee
; RUN: opt < %s -inline -S | not grep callee
declare void @ext(i32*)
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -constprop -S > %t
; RUN: opt < %s -inline -constprop -S > %t
; RUN: not grep test_function %t
; RUN: grep {ret i32 5} %t
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: opt %s -inline | llvm-dis
; RUN: opt < %s -inline | llvm-dis
; PR4834
define i32 @main() {
+1 -1
View File
@@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | not grep {tail call void @llvm.memcpy.i32}
; RUN: opt < %s -inline -S | not grep {tail call void @llvm.memcpy.i32}
; PR3550
define internal void @foo(i32* %p, i32* %q) {
+2 -2
View File
@@ -1,9 +1,9 @@
; Test that the inliner doesn't leave around dead allocas, and that it folds
; uncond branches away after it is done specializing.
; RUN: opt %s -inline -S | \
; RUN: opt < %s -inline -S | \
; RUN: not grep {alloca.*uses=0}
; RUN: opt %s -inline -S | \
; RUN: opt < %s -inline -S | \
; RUN: not grep {br label}
@A = weak global i32 0 ; <i32*> [#uses=1]
@B = weak global i32 0 ; <i32*> [#uses=1]
+2 -2
View File
@@ -1,5 +1,5 @@
; RUN: opt %s -inline -S | not grep callee
; RUN: opt %s -inline -S | not grep div
; RUN: opt < %s -inline -S | not grep callee
; RUN: opt < %s -inline -S | not grep div
define internal i32 @callee(i32 %A, i32 %B) {
+1 -1
View File
@@ -1,7 +1,7 @@
; This checks to ensure that the inline pass deletes functions if they get
; inlined into all of their callers.
; RUN: opt %s -inline -S | \
; RUN: opt < %s -inline -S | \
; RUN: not grep @reallysmall
define internal i32 @reallysmall(i32 %A) {
+2 -2
View File
@@ -1,6 +1,6 @@
; RUN: opt %s -inline -S | \
; RUN: opt < %s -inline -S | \
; RUN: not grep {callee\[12\](}
; RUN: opt %s -inline -S | not grep mul
; RUN: opt < %s -inline -S | not grep mul
define internal i32 @callee1(i32 %A, i32 %B) {
%cond = icmp eq i32 %A, 123 ; <i1> [#uses=1]
+1 -1
View File
@@ -1,7 +1,7 @@
; Test that we can inline a simple function, turning the calls in it into invoke
; instructions
; RUN: opt %s -inline -S | \
; RUN: opt < %s -inline -S | \
; RUN: not grep {call\[^e\]}
declare void @might_throw()
+1 -1
View File
@@ -1,7 +1,7 @@
; Test that if an invoked function is inlined, and if that function cannot
; throw, that the dead handler is now unreachable.
; RUN: opt %s -inline -simplifycfg -S | \
; RUN: opt < %s -inline -simplifycfg -S | \
; RUN: not grep UnreachableExceptionHandler
declare void @might_throw()
+1 -1
View File
@@ -1,7 +1,7 @@
; Test that any rethrown exceptions in an inlined function are automatically
; turned into branches to the invoke destination.
; RUN: opt %s -inline -S | not grep unwind$
; RUN: opt < %s -inline -S | not grep unwind$
declare void @might_throw()