OSDN Git Service

For PR1319:
authorReid Spencer <rspencer@reidspencer.com>
Sun, 15 Apr 2007 07:38:21 +0000 (07:38 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 15 Apr 2007 07:38:21 +0000 (07:38 +0000)
Make use of the END. facility on all files > 1K so that we aren't wasting CPU
cycles searching for RUN: lines that we'll never find.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36059 91177308-0d34-0410-b5e6-96231b3b80d8

35 files changed:
test/Transforms/InstCombine/2002-05-14-TouchDeletedInst.ll
test/Transforms/InstCombine/2003-07-21-ExternalConstant.ll
test/Transforms/InstCombine/2004-11-27-SetCCForCastLargerAndConstant.ll
test/Transforms/InstCombine/2006-04-01-InfLoop.ll
test/Transforms/InstCombine/2006-05-04-DemandedBitCrash.ll
test/Transforms/InstCombine/2006-05-06-Infloop.ll
test/Transforms/InstCombine/2006-09-11-EmptyStructCrash.ll
test/Transforms/InstCombine/2006-12-08-Select-ICmp.ll
test/Transforms/InstCombine/2006-12-10-ICmp-GEP-GEP.ll
test/Transforms/InstCombine/2006-12-23-Select-Cmp-Cmp.ll
test/Transforms/InstCombine/2007-03-26-BadShiftMask.ll
test/Transforms/InstCombine/CPP_min_max.llx
test/Transforms/InstCombine/add.ll
test/Transforms/InstCombine/and-or-and.ll
test/Transforms/InstCombine/and.ll
test/Transforms/InstCombine/apint-add2.ll
test/Transforms/InstCombine/apint-and-or-and.ll
test/Transforms/InstCombine/apint-and1.ll
test/Transforms/InstCombine/apint-and2.ll
test/Transforms/InstCombine/apint-sub.ll
test/Transforms/InstCombine/apint-xor2.ll
test/Transforms/InstCombine/bswap.ll
test/Transforms/InstCombine/call.ll
test/Transforms/InstCombine/cast.ll
test/Transforms/InstCombine/div.ll
test/Transforms/InstCombine/getelementptr-setcc.ll
test/Transforms/InstCombine/getelementptr.ll
test/Transforms/InstCombine/mul.ll
test/Transforms/InstCombine/or.ll
test/Transforms/InstCombine/phi.ll
test/Transforms/InstCombine/rem.ll
test/Transforms/InstCombine/select.ll
test/Transforms/InstCombine/signext.ll
test/Transforms/InstCombine/vec_insert_to_shuffle.ll
test/Transforms/InstCombine/vec_shuffle.ll

index 9c278ed..5e6d63b 100644 (file)
@@ -1,10 +1,11 @@
-; This testcase, obviously distilled from a large program (bzip2 from Specint2000)
-; caused instcombine to fail because it got the same instruction on it's worklist
-; more than once (which is ok), but then deleted the instruction.  Since the inst
-; stayed on the worklist, as soon as it came back up to be processed, bad things
-; happened, and opt asserted.
+; This testcase, obviously distilled from a large program (bzip2 from 
+; Specint2000) caused instcombine to fail because it got the same instruction 
+; on it's worklist more than once (which is ok), but then deleted the 
+; instruction.  Since the inst stayed on the worklist, as soon as it came back 
+; up to be processed, bad things happened, and opt asserted.
 ;
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine
+; END.
 ;
 
 %.LC0 = internal global [21 x sbyte] c"hbMakeCodeLengths(1)\00"                ; <[21 x sbyte]*> [#uses=1]
index c9e3b4c..a3c30a8 100644 (file)
@@ -11,6 +11,7 @@
 ;
 ; Extra code:
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine
+; END.
 ;
 
 target endian = little
index 7a78b93..7e12bbf 100644 (file)
@@ -11,6 +11,7 @@
 ;
 ; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:    notcast .*int
+; END.
 
 implementation   ; Functions:
 
index 260b9b3..81c1690 100644 (file)
@@ -1,4 +1,5 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
+; END.
 
        %struct.DecRefPicMarking_s = type { int, int, int, int, int, %struct.DecRefPicMarking_s* }
        %struct.datapartition = type { %typedef.Bitstream*, %typedef.DecodingEnvironment, int (%struct.syntaxelement*, %struct.img_par*, %struct.inp_par*, %struct.datapartition*)* }
index 6f95e92..3e72a18 100644 (file)
@@ -1,4 +1,5 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
+; END.
 
 void %test() {
 bb38.i:
index ef05e6b..4458d97 100644 (file)
@@ -1,4 +1,5 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
+; END.
 
        %struct.gs_matrix = type { float, int, float, int, float, int, float, int, float, int, float, int }
        %struct.gx_bitmap = type { ubyte*, int, int, int }
index a8f9cd4..61f01ce 100644 (file)
@@ -1,5 +1,6 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
 ; PR905
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
+; END.
 
        %RPYTHON_EXCEPTION = type { %RPYTHON_EXCEPTION_VTABLE* }
        %RPYTHON_EXCEPTION_VTABLE = type { %RPYTHON_EXCEPTION_VTABLE*, int, int, %RPyOpaque_RuntimeTypeInfo*, %arraytype_Char*, %functiontype_12* }
index 8e46bfd..466fa60 100644 (file)
@@ -1,5 +1,6 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep select
 ; END.
+
 target datalayout = "e-p:32:32"
 target endian = little
 target pointersize = 32
index 80ff0cf..1343a4f 100644 (file)
@@ -1,6 +1,7 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:    grep -v {icmp ult int}
 ; END.
+
 ; ModuleID = 'good.bc'
 target datalayout = "e-p:32:32"
 target endian = little
index 0430a61..044b945 100644 (file)
@@ -2,6 +2,7 @@
 ; operands is encountered.
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
 ; END.
+
 ; ModuleID = 'PR1065.bc'
 target datalayout = "e-p:32:32"
 target endian = little
index 6197fcc..4a2e60e 100644 (file)
@@ -2,6 +2,7 @@
 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
 ; RUN:    grep {ashr i32 %.mp137, 2}
 ; END.
+
 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"
 target triple = "i686-pc-linux-gnu"
 
index 3d99ad6..2818fa7 100644 (file)
@@ -1,5 +1,6 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:   grep select | not grep {i32\\*}
+; END.
 
 ; This testcase corresponds to PR362, which notices that this horrible code
 ; is generated by the C++ front-end and LLVM optimizers, which has lots of
index 4e5dbb3..87bb773 100644 (file)
@@ -3,6 +3,7 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:    grep -v OK | not grep add
+; END.
 
 implementation
 
index dc1eea1..ea7a87f 100644 (file)
@@ -11,6 +11,7 @@
 
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:   not grep {or }
+; END.
 
 int %test1(int %X, int %Y) {
        %A = and int %X, 7
index dc30c56..7b08975 100644 (file)
@@ -2,6 +2,7 @@
 ;
 
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep and
+; END.
 
 implementation
 
index 39a54b1..0ddfcc0 100644 (file)
@@ -3,7 +3,7 @@
 
 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
 ; RUN:    grep -v OK | not grep add
-
+; END.
 
 define i111 @test1(i111 %x) {
         %tmp.2 = shl i111 1, 110
index e60a1fa..4630f28 100644 (file)
@@ -12,6 +12,7 @@
 ; This tests arbitrary precision integers.
 
 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep {or }
+; END.
 
 define i17 @test1(i17 %X, i17 %Y) {
        %A = and i17 %X, 7
index b6c7bd9..eb3b1a6 100644 (file)
@@ -2,6 +2,7 @@
 ; This test is for Integer BitWidth <= 64 && BitWidth % 8 != 0.
 
 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep {and }
+; END.
 
 define i39 @test0(i39 %A) {
         %B = and i39 %A, 0 ; zero result
index 3b69016..f7b3934 100644 (file)
@@ -2,6 +2,7 @@
 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
 
 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep {and }
+; END.
 
 
 define i999 @test0(i999 %A) {
index 75ea36d..12f366d 100644 (file)
@@ -4,6 +4,7 @@
 
 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
 ; RUN:   grep -v {sub i19 %Cok, %Bok} | not grep sub
+; END.
 
 define i23 @test1(i23 %A) {
        %B = sub i23 %A, %A             ; <i23> [#uses=1]
index 7ce5ad8..4d2d415 100644 (file)
@@ -2,6 +2,7 @@
 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
 
 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep {xor }
+; END.
 
 
 define i447 @test1(i447 %A, i447 %B) {
index 209f76c..fde5ff0 100644 (file)
@@ -1,5 +1,6 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:    grep {call.*llvm.bswap} | wc -l | grep 5
+; END.
 
 uint %test1(uint %i) {
         %tmp1 = shr uint %i, ubyte 24           ; <uint> [#uses=1]
index d5a6465..1570165 100644 (file)
@@ -1,5 +1,6 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:    grep call | notcast
+; END.
 
 implementation
 
index 36361b7..156886f 100644 (file)
@@ -1,6 +1,7 @@
 ; Tests to make sure elimination of casts is working correctly
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:    grep %c | notcast
+; END.
 
 %inbuf = external global [32832 x ubyte]
 
index 18d93c2..97f331c 100644 (file)
@@ -2,6 +2,7 @@
 ;
 
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep div
+; END.
 
 implementation
 
index edf0ccb..55102f4 100644 (file)
@@ -1,5 +1,6 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:   not grep getelementptr
+; END.
 
 bool %test1(short* %P, int %I, int %J) {
     %X = getelementptr short* %P, int %I
index 5862b4c..7e88092 100644 (file)
@@ -3,6 +3,7 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:    grep -v %B | not grep getelementptr
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep foo1
+; END.
 
 %Global = constant [10 x sbyte] c"helloworld"
 
index 86c52fa..d3963d5 100644 (file)
@@ -1,6 +1,7 @@
 ; This test makes sure that mul instructions are properly eliminated.
 ;
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep mul
+; END.
 
 implementation
 
index 14b1a22..3fc225a 100644 (file)
@@ -2,6 +2,7 @@
 ;
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:    grep -v xor | not grep {or }
+; END.
 
 implementation
 
index 1fab649..a51e90e 100644 (file)
@@ -1,6 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep phi
+; END.
 
 implementation
 
index 62740f0..987d3c3 100644 (file)
@@ -1,6 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep rem
+; END.
 
 implementation
 
index 5b3b8bc..ccc63c2 100644 (file)
@@ -2,6 +2,7 @@
 
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:    not grep select
+; END.
 
 implementation
 
index d754260..f69cbc0 100644 (file)
@@ -1,5 +1,6 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:    not grep {(and\|xor\|add\|shl\|shr)}
+; END.
 
 int %test1(int %x) {
         %tmp.1 = and int %x, 65535              ; <int> [#uses=1]
index 0a6f88c..54ac882 100644 (file)
@@ -4,6 +4,7 @@
 ; RUN:   not grep insertelement
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:   not grep extractelement
+; END.
 
 <4 x float> %test(<4 x float> %tmp, <4 x float> %tmp1) {
        %tmp4 = extractelement <4 x float> %tmp, uint 1         ; <float> [#uses=1]
index 3d65b63..aaaee3f 100644 (file)
@@ -1,4 +1,5 @@
 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep vector_shuffle
+; END.
 
 %T = type <4 x float>