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 -anders-aa -disable-output
; RUN: opt < %s -anders-aa -disable-output
define void @x(i16 %Y) {
entry:

View File

@ -1,4 +1,4 @@
; RUN: opt %s -anders-aa -gvn -S | not grep undef
; RUN: opt < %s -anders-aa -gvn -S | not grep undef
; PR2160
declare void @f(i32*)

View File

@ -1,4 +1,4 @@
; RUN: opt %s -anders-aa -gvn -S | not grep undef
; RUN: opt < %s -anders-aa -gvn -S | not grep undef
; PR2169
declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) nounwind

View File

@ -1,4 +1,4 @@
; RUN: opt %s -anders-aa
; RUN: opt < %s -anders-aa
; PR3262
@.str15 = external global [3 x i8] ; <[3 x i8]*> [#uses=1]

View File

@ -1,4 +1,4 @@
; RUN: opt %s -anders-aa -aa-eval 2>/dev/null
; RUN: opt < %s -anders-aa -aa-eval 2>/dev/null
define void @test1() {
%X = malloc i32*

View File

@ -1,4 +1,4 @@
; RUN: opt %s -anders-aa -gvn -deadargelim -S | grep store | not grep null
; RUN: opt < %s -anders-aa -gvn -deadargelim -S | grep store | not grep null
; Because the 'internal' function is passed to an external function, we don't
; know what the incoming values will alias. As such, we cannot do the

View File

@ -1,4 +1,4 @@
; RUN: opt %s -anders-aa -gvn -instcombine -S \
; RUN: opt < %s -anders-aa -gvn -instcombine -S \
; RUN: | grep {ret i1 true}
@G = internal global i32* null

View File

@ -1,4 +1,4 @@
; RUN: opt %s -anders-aa -gvn -S \
; RUN: opt < %s -anders-aa -gvn -S \
; RUN: | not grep {ret i32 undef}
;; From PR 2160

View File

@ -1,3 +1,3 @@
; RUN: opt %s -anders-aa -disable-output
; RUN: opt < %s -anders-aa -disable-output
define void @foo() { ret void }

View File

@ -2,7 +2,7 @@
; is performed. It is not legal to delete the second load instruction because
; the value computed by the first load instruction is changed by the store.
; RUN: opt %s -gvn -instcombine -S | grep DONOTREMOVE
; RUN: opt < %s -gvn -instcombine -S | grep DONOTREMOVE
define i32 @test() {
%A = alloca i32

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -aa-eval -disable-output 2>/dev/null
; RUN: opt < %s -basicaa -aa-eval -disable-output 2>/dev/null
; Test for a bug in BasicAA which caused a crash when querying equality of P1&P2
define void @test({[2 x i32],[2 x i32]}* %A, i64 %X, i64 %Y) {
%P1 = getelementptr {[2 x i32],[2 x i32]}* %A, i64 0, i32 0, i64 %X

View File

@ -1,4 +1,4 @@
; RUN: opt %s -gvn -instcombine -S | grep sub
; RUN: opt < %s -gvn -instcombine -S | grep sub
; BasicAA was incorrectly concluding that P1 and P2 didn't conflict!

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -aa-eval -disable-output 2>/dev/null
; RUN: opt < %s -basicaa -aa-eval -disable-output 2>/dev/null
; Test for a bug in BasicAA which caused a crash when querying equality of P1&P2
define void @test([17 x i16]* %mask_bits) {
%P1 = getelementptr [17 x i16]* %mask_bits, i64 0, i64 0

View File

@ -1,4 +1,4 @@
; RUN: opt %s -licm -disable-output
; RUN: opt < %s -licm -disable-output
%struct..apr_array_header_t = type { i32*, i32, i32, i32, i8* }
%struct..apr_table_t = type { %struct..apr_array_header_t, i32, [32 x i32], [32 x i32] }

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -aa-eval -disable-output 2>/dev/null
; RUN: opt < %s -basicaa -aa-eval -disable-output 2>/dev/null
define i32 @MTConcat([3 x i32]* %a.1) {
%tmp.961 = getelementptr [3 x i32]* %a.1, i64 0, i64 4

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -aa-eval -disable-output 2>/dev/null
; RUN: opt < %s -basicaa -aa-eval -disable-output 2>/dev/null
%struct..RefPoint = type { i32, { i32, i8, i8 } }
%struct..RefRect = type { %struct..RefPoint, %struct..RefPoint }

View File

@ -1,6 +1,6 @@
; In this test, a local alloca cannot alias an incoming argument.
; RUN: opt %s -gvn -instcombine -S | not grep sub
; RUN: opt < %s -gvn -instcombine -S | not grep sub
define i32 @test(i32* %P) {
%X = alloca i32

View File

@ -1,7 +1,7 @@
; This testcase consists of alias relations which should be completely
; resolvable by basicaa.
; RUN: opt %s -aa-eval -print-may-aliases -disable-output \
; RUN: opt < %s -aa-eval -print-may-aliases -disable-output \
; RUN: |& not grep May:
%T = type { i32, [10 x i8] }

View File

@ -1,7 +1,7 @@
; This testcase consists of alias relations which should be completely
; resolvable by basicaa, but require analysis of getelementptr constant exprs.
; RUN: opt %s -aa-eval -print-may-aliases -disable-output \
; RUN: opt < %s -aa-eval -print-may-aliases -disable-output \
; RUN: |& not grep May:
%T = type { i32, [10 x i8] }

View File

@ -1,4 +1,4 @@
; RUN: opt %s -dse -S | grep {store i32 0}
; RUN: opt < %s -dse -S | grep {store i32 0}
define void @test({i32,i32 }* %P) {
%Q = getelementptr {i32,i32}* %P, i32 1

View File

@ -1,4 +1,4 @@
; RUN: opt %s -licm
; RUN: opt < %s -licm
%"java/lang/Object" = type { %struct.llvm_java_object_base }
%"java/lang/StringBuffer" = type { "java/lang/Object", i32, { "java/lang/Object", i32, [0 x i8] }*, i1 }

View File

@ -1,4 +1,4 @@
; RUN: opt %s -dse
; RUN: opt < %s -dse
%"java/lang/Object" = type { %struct.llvm_java_object_base }
%"java/lang/StringBuffer" = type { "java/lang/Object", i32, { "java/lang/Object", i32, [0 x i8] }*, i1 }

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -gvn -instcombine |\
; RUN: opt < %s -basicaa -gvn -instcombine |\
; RUN: llvm-dis | grep {load i32\\* %A}
declare double* @useit(i32*)

View File

@ -1,4 +1,4 @@
; RUN: opt %s -aa-eval -disable-output |& grep {2 no alias respon}
; RUN: opt < %s -aa-eval -disable-output |& grep {2 no alias respon}
; TEST that A[1][0] may alias A[0][i].
define void @test(i32 %N) {

View File

@ -1,7 +1,7 @@
; PR1109
; RUN: opt %s -basicaa -gvn -instcombine -S | \
; RUN: opt < %s -basicaa -gvn -instcombine -S | \
; RUN: grep {sub i32}
; RUN: opt %s -basicaa -gvn -instcombine -S | \
; RUN: opt < %s -basicaa -gvn -instcombine -S | \
; RUN: not grep {ret i32 0}
; END.

View File

@ -1,5 +1,5 @@
; PR1600
; RUN: opt %s -basicaa -gvn -instcombine -S | \
; RUN: opt < %s -basicaa -gvn -instcombine -S | \
; RUN: grep {ret i32 0}
; END.

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -gvn -dce -S | grep tmp7
; RUN: opt < %s -basicaa -gvn -dce -S | grep tmp7
%struct.A = type { i32 }
%struct.B = type { %struct.A }

View File

@ -1,4 +1,4 @@
; RUN: opt %s -gvn -disable-output
; RUN: opt < %s -gvn -disable-output
; PR1774
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"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -gvn -disable-output
; RUN: opt < %s -gvn -disable-output
; PR1782
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"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -std-compile-opts -S | grep store
; RUN: opt < %s -std-compile-opts -S | grep store
; ModuleID = 'small2.c'
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-darwin8"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -gvn -disable-output
; RUN: opt < %s -gvn -disable-output
; PR2395
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"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -aa-eval |& grep {1 no alias response}
; RUN: opt < %s -aa-eval |& grep {1 no alias response}
declare noalias i32* @_Znwj(i32 %x) nounwind

View File

@ -1,4 +1,4 @@
; RUN: opt %s -aa-eval -print-all-alias-modref-info -disable-output |& grep {MustAlias:.*%R,.*%r}
; RUN: opt < %s -aa-eval -print-all-alias-modref-info -disable-output |& grep {MustAlias:.*%R,.*%r}
; Make sure that basicaa thinks R and r are must aliases.
define i32 @test(i8 * %P) {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -gvn -S | grep load
; RUN: opt < %s -basicaa -gvn -S | grep load
declare noalias i32* @noalias()

View File

@ -1,4 +1,4 @@
; RUN: opt %s -gvn -S | grep {ret i32 1}
; RUN: opt < %s -gvn -S | grep {ret i32 1}
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 = "i686-apple-darwin8"
%struct.x = type { i32, i32, i32, i32 }

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -gvn -S | grep load | count 1
; RUN: opt < %s -basicaa -gvn -S | grep load | count 1
@flag0 = internal global i32 zeroinitializer
@turn = internal global i32 zeroinitializer

View File

@ -1,4 +1,4 @@
; RUN: opt %s -aa-eval -print-all-alias-modref-info \
; RUN: opt < %s -aa-eval -print-all-alias-modref-info \
; RUN: |& grep {MayAlias: double\\* \[%\]p.0.i.0, double\\* \[%\]p3\$}
; PR4267

View File

@ -1,7 +1,7 @@
; This testcase tests for various features the basicaa test should be able to
; determine, as noted in the comments.
; RUN: opt %s -basicaa -gvn -instcombine -dce -S | not grep REMOVE
; RUN: opt < %s -basicaa -gvn -instcombine -dce -S | not grep REMOVE
@Global = external global { i32 }

View File

@ -2,7 +2,7 @@
; disambiguating some obvious cases. All loads should be removable in
; this testcase.
; RUN: opt %s -basicaa -gvn -instcombine -dce -S \
; RUN: opt < %s -basicaa -gvn -instcombine -dce -S \
; RUN: | not grep load
@A = global i32 7

View File

@ -1,7 +1,7 @@
; A store or load cannot alias a global if the accessed amount is larger then
; the global.
; RUN: opt %s -basicaa -gvn -instcombine -S | not grep load
; RUN: opt < %s -basicaa -gvn -instcombine -S | not grep load
@B = global i16 8 ; <i16*> [#uses=2]

View File

@ -1,5 +1,5 @@
; A very rudimentary test on AliasAnalysis::getModRefInfo.
; RUN: opt %s -print-all-alias-modref-info -aa-eval -disable-output |& \
; RUN: opt < %s -print-all-alias-modref-info -aa-eval -disable-output |& \
; RUN: not grep NoModRef
define i32 @callee() {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -gvn -instcombine -S | grep {ret i1 true}
; RUN: opt < %s -basicaa -gvn -instcombine -S | grep {ret i1 true}
; PR2436
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-darwin8"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -gvn -instcombine -S | grep {ret i32 0}
; RUN: opt < %s -basicaa -gvn -instcombine -S | grep {ret i32 0}
declare i32* @test(i32* nocapture)

View File

@ -1,6 +1,6 @@
; RUN: opt %s -basicaa -gvn -S | grep TestConst | count 2
; RUN: opt %s -basicaa -gvn -S | grep TestPure | count 3
; RUN: opt %s -basicaa -gvn -S | grep TestNone | count 4
; RUN: opt < %s -basicaa -gvn -S | grep TestConst | count 2
; RUN: opt < %s -basicaa -gvn -S | grep TestPure | count 3
; RUN: opt < %s -basicaa -gvn -S | grep TestNone | count 4
@g = global i32 0 ; <i32*> [#uses=1]
define i32 @test() {

View File

@ -2,7 +2,7 @@
; disambiguating some obvious cases. If LICM is able to disambiguate the
; two pointers, then the load should be hoisted, and the store sunk.
; RUN: opt %s -basicaa -licm -S | FileCheck %s
; RUN: opt < %s -basicaa -licm -S | FileCheck %s
@A = global i32 7 ; <i32*> [#uses=3]
@B = global i32 8 ; <i32*> [#uses=2]

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -gvn -instcombine |\
; RUN: opt < %s -basicaa -gvn -instcombine |\
; RUN: llvm-dis | grep {ret i32 0}
declare void @foo(i32*)

View File

@ -1,4 +1,4 @@
; RUN: opt %s -print-callgraph -disable-output |& \
; RUN: opt < %s -print-callgraph -disable-output |& \
; RUN: grep {Calls function 'callee'} | count 2
define internal void @callee(...) {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -print-callgraph -disable-output |& \
; RUN: opt < %s -print-callgraph -disable-output |& \
; RUN: grep {Calls function}
@a = global void ()* @f ; <void ()**> [#uses=0]

View File

@ -1,4 +1,4 @@
; RUN: opt %s -domtree -break-crit-edges -analyze \
; RUN: opt < %s -domtree -break-crit-edges -analyze \
; RUN: -domtree | grep {3.*%brtrue }
; PR932

View File

@ -1,4 +1,4 @@
; RUN: opt %s -domtree -break-crit-edges -domtree -disable-output
; RUN: opt < %s -domtree -break-crit-edges -domtree -disable-output
; PR1110
%struct.OggVorbis_File = type { i8*, i32, i64, i64, %struct.ogg_sync_state, i32, i64*, i64*, i32*, i64*, %struct.vorbis_info*, %struct.vorbis_comment*, i64, i32, i32, i32, double, double, %struct.ogg_stream_state, %struct.vorbis_dsp_state, %struct.vorbis_block, %struct.ov_callbacks }

View File

@ -1,4 +1,4 @@
; RUN: opt %s -globalsmodref-aa -gvn -S | grep call | count 2
; RUN: opt < %s -globalsmodref-aa -gvn -S | grep call | count 2
@g = internal global i32 0 ; <i32*> [#uses=2]

View File

@ -1,4 +1,4 @@
; RUN: opt %s -globalsmodref-aa -gvn -S | not grep load
; RUN: opt < %s -globalsmodref-aa -gvn -S | not grep load
@X = internal global i32 4 ; <i32*> [#uses=1]
define i32 @test(i32* %P) {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -globalsmodref-aa -gvn -S | not grep load
; RUN: opt < %s -globalsmodref-aa -gvn -S | not grep load
; This test requires the use of previous analyses to determine that
; doesnotmodX does not modify X (because 'sin' doesn't).

View File

@ -1,4 +1,4 @@
; RUN: opt %s -globalsmodref-aa -gvn -instcombine -S | \
; RUN: opt < %s -globalsmodref-aa -gvn -instcombine -S | \
; RUN: grep {ret i32 0}
@G = internal global i32* null ; <i32**> [#uses=3]

View File

@ -1,4 +1,4 @@
; RUN: opt %s -globalsmodref-aa -gvn -S | not grep load
; RUN: opt < %s -globalsmodref-aa -gvn -S | not grep load
@X = internal global i32 4 ; <i32*> [#uses=2]
define i32 @test(i32* %P) {

View File

@ -1,5 +1,5 @@
; Test that pure functions are cse'd away
; RUN: opt %s -globalsmodref-aa -gvn -instcombine | \
; RUN: opt < %s -globalsmodref-aa -gvn -instcombine | \
; RUN: llvm-dis | not grep sub
define i32 @pure(i32 %X) {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -disable-output -analyze -lda | FileCheck %s
; RUN: opt < %s -disable-output -analyze -lda | FileCheck %s
;; x[5] = x[6] // with x being a pointer passed as argument

View File

@ -1,4 +1,4 @@
; RUN: opt %s -disable-output -analyze -lda | FileCheck %s
; RUN: opt < %s -disable-output -analyze -lda | FileCheck %s
@x = common global [256 x i32] zeroinitializer, align 4
@y = common global [256 x i32] zeroinitializer, align 4

View File

@ -1,4 +1,4 @@
; RUN: opt %s -disable-output -analyze -lda | FileCheck %s
; RUN: opt < %s -disable-output -analyze -lda | FileCheck %s
@x = common global [256 x i32] zeroinitializer, align 4
@y = common global [256 x i32] zeroinitializer, align 4

View File

@ -1,4 +1,4 @@
; RUN: opt %s -disable-output -analyze -lda | FileCheck %s
; RUN: opt < %s -disable-output -analyze -lda | FileCheck %s
@x = common global [256 x i32] zeroinitializer, align 4
@y = common global [256 x i32] zeroinitializer, align 4

View File

@ -1,4 +1,4 @@
; RUN: opt %s -disable-output -analyze -lda | FileCheck %s
; RUN: opt < %s -disable-output -analyze -lda | FileCheck %s
@x = common global [256 x i32] zeroinitializer, align 4

View File

@ -1,7 +1,7 @@
; This testcase was incorrectly computing that the loopentry.7 loop was
; not a child of the loopentry.6 loop.
;
; RUN: opt %s -analyze -loops | \
; RUN: opt < %s -analyze -loops | \
; RUN: grep {^ Loop at depth 4 containing: %loopentry.7<header><latch><exit>}
define void @getAndMoveToFrontDecode() {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -pointertracking -analyze | FileCheck %s
; RUN: opt < %s -pointertracking -analyze | FileCheck %s
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-unknown-linux-gnu"
@.str = internal constant [5 x i8] c"1234\00" ; <[5 x i8]*> [#uses=1]

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -postdomfrontier \
; RUN: opt < %s -analyze -postdomfrontier \
; RUN: -disable-verify
; ModuleID = '2006-09-26-PostDominanceFrontier.bc'
target datalayout = "e-p:64:64"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -postdomfrontier -disable-output
; RUN: opt < %s -postdomfrontier -disable-output
define void @SManager() {
entry:

View File

@ -1,4 +1,4 @@
; RUN: opt %s -postdomfrontier -disable-output
; RUN: opt < %s -postdomfrontier -disable-output
define void @args_out_of_range() {
entry:

View File

@ -1,4 +1,4 @@
; RUN: opt %s -postdomtree -analyze | grep entry
; RUN: opt < %s -postdomtree -analyze | grep entry
; PR932
define void @foo(i1 %x) {

View File

@ -1,5 +1,5 @@
; Test the edge profiling instrumentation.
; RUN: opt %s -insert-edge-profiling -S | FileCheck %s
; RUN: opt < %s -insert-edge-profiling -S | FileCheck %s
; ModuleID = '<stdin>'

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output \
; RUN: opt < %s -analyze -scalar-evolution -disable-output \
; RUN: -scalar-evolution-max-iterations=0 | grep {Loop bb: backedge-taken count is 100}
; PR1533

View File

@ -1,4 +1,4 @@
; RUN: opt %s -indvars -adce -simplifycfg -S | grep "icmp s"
; RUN: opt < %s -indvars -adce -simplifycfg -S | grep "icmp s"
; PR1598
define i32 @f(i32 %a, i32 %b, i32 %x, i32 %y) {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -scalar-evolution -analyze -disable-output | grep {Loop bb: backedge-taken count is (-1 + (-1 \\* %x) + %y)}
; RUN: opt < %s -scalar-evolution -analyze -disable-output | grep {Loop bb: backedge-taken count is (-1 + (-1 \\* %x) + %y)}
; PR1597
define i32 @f(i32 %x, i32 %y) {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output \
; RUN: opt < %s -analyze -scalar-evolution -disable-output \
; RUN: -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 13}
; PR1706

View File

@ -1,4 +1,4 @@
; RUN: opt %s -indvars -S | grep printd | grep 1206807378
; RUN: opt < %s -indvars -S | grep printd | grep 1206807378
; PR1798
declare void @printd(i32)

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output | grep -e {--> %b}
; RUN: opt < %s -analyze -scalar-evolution -disable-output | grep -e {--> %b}
; PR1810
define void @fun() {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -scalar-evolution -analyze -disable-output | grep {Loop header: backedge-taken count is (0 smax %n)}
; RUN: opt < %s -scalar-evolution -analyze -disable-output | grep {Loop header: backedge-taken count is (0 smax %n)}
define void @foo(i32 %n) {
entry:

View File

@ -1,4 +1,4 @@
; RUN: opt %s -scalar-evolution -analyze -disable-output | grep {Loop loop: backedge-taken count is (100 + (-100 smax %n))}
; RUN: opt < %s -scalar-evolution -analyze -disable-output | grep {Loop loop: backedge-taken count is (100 + (-100 smax %n))}
; PR2002
define void @foo(i8 %n) {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output | grep umax
; RUN: opt < %s -analyze -scalar-evolution -disable-output | grep umax
; PR2003
define i32 @foo(i32 %n) {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output \
; RUN: opt < %s -analyze -scalar-evolution -disable-output \
; RUN: -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 61}
; PR2364

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution 2>/dev/null
; RUN: opt < %s -analyze -scalar-evolution 2>/dev/null
; PR2433
define i32 @main1(i32 %argc, i8** %argv) nounwind {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output |& not grep smax
; RUN: opt < %s -analyze -scalar-evolution -disable-output |& not grep smax
; PR2261
@lut = common global [256 x i8] zeroinitializer, align 32 ; <[256 x i8]*> [#uses=1]

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output |& not grep smax
; RUN: opt < %s -analyze -scalar-evolution -disable-output |& not grep smax
; PR2070
define i32 @a(i32 %x) nounwind {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output \
; RUN: opt < %s -analyze -scalar-evolution -disable-output \
; RUN: -scalar-evolution-max-iterations=0 | grep Unpredictable
; PR2088

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output \
; RUN: opt < %s -analyze -scalar-evolution -disable-output \
; RUN: -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 113}
; PR2088

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output \
; RUN: opt < %s -analyze -scalar-evolution -disable-output \
; RUN: -scalar-evolution-max-iterations=0 | \
; RUN: grep -F "backedge-taken count is (-1 + (-1 * %j))"
; PR2607

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output \
; RUN: opt < %s -analyze -scalar-evolution -disable-output \
; RUN: -scalar-evolution-max-iterations=0 | \
; RUN: grep -F "backedge-taken count is (-2147483632 + ((-1 + (-1 * %x)) smax (-1 + (-1 * %y))))"
; PR2607

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output \
; RUN: opt < %s -analyze -scalar-evolution -disable-output \
; RUN: -scalar-evolution-max-iterations=0 | grep -F "Exits: 20028"
; PR2621

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output \
; RUN: opt < %s -analyze -scalar-evolution -disable-output \
; RUN: -scalar-evolution-max-iterations=0 | grep -F "Exits: -19168"
; PR2621

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output
; RUN: opt < %s -analyze -scalar-evolution -disable-output
; PR1827
declare void @use(i32)

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output
; RUN: opt < %s -analyze -scalar-evolution -disable-output
; PR2602
define i32 @a() nounwind {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output |& \
; RUN: opt < %s -analyze -scalar-evolution -disable-output |& \
; RUN: grep {Loop bb: backedge-taken count is (7 + (-1 \\* %argc))}
; XFAIL: *

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output \
; RUN: opt < %s -analyze -scalar-evolution -disable-output \
; RUN: | grep {Loop bb: Unpredictable backedge-taken count\\.}
; ScalarEvolution can't compute a trip count because it doesn't know if

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output |& grep {/u 3}
; RUN: opt < %s -analyze -scalar-evolution -disable-output |& grep {/u 3}
; XFAIL: *
define i32 @f(i32 %x) nounwind readnone {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output | grep {backedge-taken count is 255}
; RUN: opt < %s -analyze -scalar-evolution -disable-output | grep {backedge-taken count is 255}
; XFAIL: *
define i32 @foo(i32 %x, i32 %y, i32* %lam, i32* %alp) nounwind {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output | grep {0 smax}
; RUN: opt < %s -analyze -scalar-evolution -disable-output | grep {0 smax}
; XFAIL: *
define i32 @f(i32 %c.idx.val) {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output |& \
; RUN: opt < %s -analyze -scalar-evolution -disable-output |& \
; RUN: grep {(((-1 \\* %i0) + (100005 smax %i0)) /u 5)}
; XFAIL: *

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output |& grep {/u 5}
; RUN: opt < %s -analyze -scalar-evolution -disable-output |& grep {/u 5}
; XFAIL: *
define i8 @foo0(i8 %i0) nounwind {

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output | not grep {/u -1}
; RUN: opt < %s -analyze -scalar-evolution -disable-output | not grep {/u -1}
; PR3275
@g_16 = external global i16 ; <i16*> [#uses=3]

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output | grep {(trunc i} | not grep ext
; RUN: opt < %s -analyze -scalar-evolution -disable-output | grep {(trunc i} | not grep ext
define i16 @test1(i8 %x) {
%A = sext i8 %x to i32

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution -disable-output | grep {count is 2}
; RUN: opt < %s -analyze -scalar-evolution -disable-output | grep {count is 2}
; PR3171
%struct.Foo = type { i32 }

View File

@ -1,4 +1,4 @@
; RUN: opt %s -analyze -scalar-evolution
; RUN: opt < %s -analyze -scalar-evolution
; PR4501
define void @test() {

Some files were not shown because too many files have changed in this diff Show More