Change these tests to feed the assembly files to opt directly, instead

of using llvm-as, now that opt supports this.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2009-09-08 16:50:01 +00:00
parent ee7110f047
commit b1e1e82c54
1404 changed files with 1514 additions and 1514 deletions

View File

@@ -1,5 +1,5 @@
; PR1692
; RUN: llvm-as < %s | opt -loop-index-split -disable-output
; RUN: opt %s -loop-index-split -disable-output
%struct.CLAUSE_HELP = type { i32, i32, i32, i32, i32*, i32, %struct.LIST_NODE*, %struct.LIST_NODE*, i32, i32, %struct.LITERAL_HELP**, i32, i32, i32, i32 }
%struct.LIST_NODE = type { %struct.LIST_NODE*, i8* }
%struct.LITERAL_HELP = type { i32, i32, i32, %struct.CLAUSE_HELP*, %struct.term* }

View File

@@ -1,6 +1,6 @@
; Update loop iteraton space to eliminate condition inside loop.
; RUN: llvm-as < %s | opt -loop-index-split | llvm-dis | not grep bothcond
; RUN: opt %s -loop-index-split | llvm-dis | not grep bothcond
define void @test(float* %x, i32 %ndat, float** %y, float %xcen, i32 %xmin, i32 %xmax, float %sigmal, float %contribution) {
entry:
%tmp519 = icmp sgt i32 %xmin, %xmax ; <i1> [#uses=1]

View File

@@ -1,6 +1,6 @@
; PR714
; Update loop iteraton space to eliminate condition inside loop.
; RUN: llvm-as < %s | opt -loop-index-split | llvm-dis | not grep bothcond
; RUN: opt %s -loop-index-split | llvm-dis | not grep bothcond
define void @test(float* %x, i32 %ndat, float** %y, float %xcen, i32 %xmin, i32 %xmax, float %sigmal, float %contribution) {
entry:

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -disable-output -stats |& \
; RUN: opt %s -loop-index-split -disable-output -stats |& \
; RUN: not grep "loop-index-split"
; Induction variable decrement is not yet handled.

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -disable-output
; RUN: opt %s -loop-index-split -disable-output
; PR 1995
define void @add_blkdev_randomness(i32 %major) nounwind {

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -disable-output -loop-index-split
; RUN: opt %s -disable-output -loop-index-split
; PR 2011
%struct.CLAUSE_HELP = type { i32, i32, i32, i32, i32*, i32, %struct.LIST_NODE*, %struct.LIST_NODE*, i32, i32, %struct.LITERAL_HELP**, i32, i32, i32, i32 }
%struct.LIST_NODE = type { %struct.LIST_NODE*, i8* }

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -disable-output
; RUN: opt %s -loop-index-split -disable-output
; PR 2011
%struct.CLAUSE_HELP = type { i32, i32, i32, i32, i32*, i32, %struct.LIST_NODE*, %struct.LIST_NODE*, i32, i32, %struct.LITERAL_HELP**, i32, i32, i32, i32 }
%struct.LIST_NODE = type { %struct.LIST_NODE*, i8* }

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -disable-output
; RUN: opt %s -loop-index-split -disable-output
; PR 2011
%struct.CLAUSE_HELP = type { i32, i32, i32, i32, i32*, i32, %struct.LIST_NODE*, %struct.LIST_NODE*, i32, i32, %struct.LITERAL_HELP**, i32, i32, i32, i32 }
%struct.LIST_NODE = type { %struct.LIST_NODE*, i8* }

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -disable-output
; RUN: opt %s -loop-index-split -disable-output
; PR 2030
%struct.FULL = type { i32, i32, [1000 x float*] }

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -disable-output
; RUN: opt %s -loop-index-split -disable-output
; Handle Exit block phis that do not have any use inside the loop.
%struct.ATOM = type { double, double, double, double, double, double, i32, double, double, double, double, i8*, i8, [9 x i8], double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, [200 x i8*], [32 x i8*], [32 x i8], i32 }

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -stats -disable-output | not grep "loop-index-split"
; RUN: opt %s -loop-index-split -stats -disable-output | not grep "loop-index-split"
;PR2294
@g_2 = external global i16 ; <i16*> [#uses=4]
@g_5 = external global i32 ; <i32*> [#uses=1]

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-rotate -loop-unswitch -loop-index-split -instcombine -disable-output
; RUN: opt %s -loop-rotate -loop-unswitch -loop-index-split -instcombine -disable-output
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"
%struct.__CFData = type opaque

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -stats -disable-output | not grep "1 loop-index-split"
; RUN: opt %s -loop-index-split -stats -disable-output | not grep "1 loop-index-split"
; PR 2487
@g_6 = external global i32 ; <i32*> [#uses=1]

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -stats -disable-output | not grep "loop-index-split"
; RUN: opt %s -loop-index-split -stats -disable-output | not grep "loop-index-split"
; PR 2791
@g_40 = common global i32 0 ; <i32*> [#uses=1]
@g_192 = common global i32 0 ; <i32*> [#uses=2]

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -disable-output
; RUN: opt %s -loop-index-split -disable-output
; PR 2805
@g_330 = common global i32 0 ; <i32*> [#uses=1]

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -disable-output
; RUN: opt %s -loop-index-split -disable-output
%struct.RExC_state_t = type { i32, i8*, %struct.regexp*, i8*, i8*, i8*, i32, %struct.regnode*, %struct.regnode*, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.SV = type { i8*, i32, i32 }
%struct.reg_data = type { i32, i8*, [1 x i8*] }

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -stats -disable-output |& grep "1 loop-index-split"
; RUN: opt %s -loop-index-split -stats -disable-output |& grep "1 loop-index-split"
; PR 2869
@w = external global [2 x [2 x i32]] ; <[2 x [2 x i32]]*> [#uses=5]

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -stats | not grep "loop-index-split"
; RUN: opt %s -loop-index-split -stats | not grep "loop-index-split"
; PR3029
@g_138 = common global i32 0 ; <i32*> [#uses=3]

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -disable-output
; RUN: opt %s -loop-index-split -disable-output
%struct.CGPoint = type { double, double }
%struct.IBCFMutableDictionary = type { %struct.NSMutableArray, %struct.__CFDictionary*, %struct.NSSortDescriptor*, %struct.NSSortDescriptor* }
%struct.IBInspectorMode = type opaque

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split | llvm-dis | not grep undef
; RUN: opt %s -loop-index-split | llvm-dis | not grep undef
define i32 @main() {
entry:
br label %header

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -disable-output
; RUN: opt %s -loop-index-split -disable-output
%struct._edit_script = type { %struct._edit_script*, i32, i8 }

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -disable-output
; RUN: opt %s -loop-index-split -disable-output
; PR1828.bc
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: llvm-as < %s | opt -loop-index-split -disable-output
; RUN: opt %s -loop-index-split -disable-output
%struct._edit_script = type { %struct._edit_script*, i32, i8 }

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split -disable-output
; RUN: opt %s -loop-index-split -disable-output
@k = external global i32 ; <i32*> [#uses=2]

View File

@@ -1,5 +1,5 @@
; Loop is elimianted
; RUN: llvm-as < %s | opt -loop-index-split -disable-output -stats |& \
; RUN: opt %s -loop-index-split -disable-output -stats |& \
; RUN: grep "loop-index-split" | count 1
%struct.anon = type { i32 }
@S1 = external global i32 ; <i32*> [#uses=1]

View File

@@ -1,5 +1,5 @@
; Loop is elimianted. Save last value assignment.
; RUN: llvm-as < %s | opt -loop-index-split -disable-output -stats |& \
; RUN: opt %s -loop-index-split -disable-output -stats |& \
; RUN: grep "loop-index-split" | count 1
%struct.anon = type { i32 }

View File

@@ -1,5 +1,5 @@
; Loop is elimianted. Save last value assignments, including induction variable.
; RUN: llvm-as < %s | opt -loop-index-split -disable-output -stats | not grep "loop-index-split"
; RUN: opt %s -loop-index-split -disable-output -stats | not grep "loop-index-split"
declare i32 @foo(i32)
declare i32 @bar(i32, i32)

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -loop-index-split | llvm-dis | not grep "icmp ne"
; RUN: opt %s -loop-index-split | llvm-dis | not grep "icmp ne"
define i32 @main() {
entry:

View File

@@ -1,5 +1,5 @@
; Split loop. Save last value.
; RUN: llvm-as < %s | opt -loop-index-split -disable-output -stats |& \
; RUN: opt %s -loop-index-split -disable-output -stats |& \
; RUN: grep "loop-index-split" | count 1
@k = external global i32 ; <i32*> [#uses=2]

View File

@@ -1,5 +1,5 @@
; Split loop. Save last value. Split value is off by one in this example.
; RUN: llvm-as < %s | opt -loop-index-split -disable-output -stats |& \
; RUN: opt %s -loop-index-split -disable-output -stats |& \
; RUN: grep "loop-index-split" | count 1
%llvm.dbg.anchor.type = type { i32, i32 }

View File

@@ -1,5 +1,5 @@
; Split loop. Save last value. Split value is off by one in this example.
; RUN: llvm-as < %s | opt -loop-index-split -disable-output -stats |& \
; RUN: opt %s -loop-index-split -disable-output -stats |& \
; RUN: grep "loop-index-split" | count 1
@k = external global i32 ; <i32*> [#uses=2]

View File

@@ -1,6 +1,6 @@
; Split loop. Split value is a constant and greater then exit value.
; Check whether optimizer inserts proper checkfor split value or not.
; RUN: llvm-as < %s | opt -loop-index-split | llvm-dis | grep select
; RUN: opt %s -loop-index-split | llvm-dis | grep select
@k = external global i32 ; <i32*> [#uses=2]

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -inline -reassociate -loop-rotate -loop-index-split -indvars -simplifycfg -verify
; RUN: opt %s -inline -reassociate -loop-rotate -loop-index-split -indvars -simplifycfg -verify
; PR4471
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"