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 9c278edc8dc859df78ef8f9dd012abbe09efd8d0..5e6d63bdd021f5d9e90fe74ec5c5ff7431fd25e3 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 c9e3b4c5420c2f21b32063e5e6efdd17f6e1eb20..a3c30a8f72752d2d2c6d963a6a02fb8e8e77e102 100644 (file)
@@ -11,6 +11,7 @@
 ;
 ; Extra code:
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine
+; END.
 ;
 
 target endian = little
index 7a78b93d5313cdbfebf4f06b32665112cf9a38a8..7e12bbf5aee7e098dc3b7016a6104bac464a98af 100644 (file)
@@ -11,6 +11,7 @@
 ;
 ; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:    notcast .*int
+; END.
 
 implementation   ; Functions:
 
index 260b9b3ff4cc048c1249ec4f29ea1e1eccc3c5e0..81c1690a6fc2c47906c9d2bc38522e9f61ff7c1f 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 6f95e925c70d528f23270db055e16d916b340b16..3e72a182a0c67c58a023372726f56e7f0ab252fb 100644 (file)
@@ -1,4 +1,5 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
+; END.
 
 void %test() {
 bb38.i:
index ef05e6b354252a22c5fd845a508a4228b69721d1..4458d97f9332a434e1127a79a3505d5450f7e651 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 a8f9cd41bad92f04a3ac08cb9e53256426c2c56c..61f01ce8b70c7e8e1724776897e862b032d35f8b 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 8e46bfd42cdcfb97c1f1616545131b24e50c56a1..466fa60c08bc8ba81c2614793daf6ec249a94f78 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 80ff0cfc5822dcaf681b193ec3c868ddbda972cc..1343a4f5d00ee7c8bcf35093203a6fa7427da86f 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 0430a614578ea0314de345a368d2a5159024d4bc..044b9451c585d0a989ac1303aa76fd254d177eed 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 6197fcc4f91174509be191bcbfecf378b3716ab8..4a2e60e7c35c481e6f64d8f283b2409b00a0c164 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 3d99ad603b021c0735870a0847dc8e960fd06f6c..2818fa779a9029e6f650a23964adb4066bbc5eca 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 4e5dbb38532b131511fc09e04fc230cda1197a6c..87bb7733f3ea0a76e040facf0e5d8fca8feec3e5 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 dc1eea1a2d08e69ecb85abd330fb873cf2ce9ccc..ea7a87fe3bc4063c01d09780df7921fe1036521b 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 dc30c564d028d23e2c6165fd6d5f597d48c96d56..7b08975877fc9207d7497c9644b724b49d78f132 100644 (file)
@@ -2,6 +2,7 @@
 ;
 
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep and
+; END.
 
 implementation
 
index 39a54b1ec5cb00ba8b251e64158e4bd60b2f7a8e..0ddfcc0764d6c0e137dc3640a4b0ab93e474ae94 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 e60a1fa16dfcf27831838d046818ec7f9c0fd69b..4630f286786530472ebaf2337401b899f6045428 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 b6c7bd9a6b0eab27ad19e9dc4c18cdaf02b0be80..eb3b1a64b2ce0caac84a6e37c0da73304d9dc9cc 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 3b6901690080b3d55db006c6110e19623765a10d..f7b3934d5b83d7645217d7dc8f31e811bbbcd3b9 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 75ea36d143a2c35707dc0bbf5852883223ae1875..12f366de7f46fa8963a8f5c0c89770f4c3199a5e 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 7ce5ad8473d83eace7a2b847a5cf3ef2ef798864..4d2d415f34677210e68bcfaf0f74785ad53679ba 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 209f76c33ac7ff8beed29e5627fd794e5fb2cfec..fde5ff054fc9071d748a2f9fe45aafefa0d9cfb4 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 d5a6465e1c2865b0f01c0f84dcaee499a0e42278..1570165e59df23a1f6a1882fb1f8c1145aacc144 100644 (file)
@@ -1,5 +1,6 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:    grep call | notcast
+; END.
 
 implementation
 
index 36361b7ad9243c2852a1a7c408bd37940ed85e96..156886f1b0ccfaf047526360b4194041efe1ce38 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 18d93c2a76d687c868c6e41cfb920d8bcf693ec6..97f331cb28e9673ae9570a4673e179db254ed249 100644 (file)
@@ -2,6 +2,7 @@
 ;
 
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep div
+; END.
 
 implementation
 
index edf0ccbc6791b96db6fd0cf10cdf0c0050937c2e..55102f49b24ae7973056da62910bb364b27ad795 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 5862b4ca2a4b54736b5189c16a66e952fdeaa4d7..7e8809220af2edb4f896352e2e8e105dd609db5e 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 86c52fa55be3951a535130afbdde5302fd91efc4..d3963d5134d92e87fcc5bbebf7db8f8904239083 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 14b1a226473a043926433095ca8363bf3e90d6c7..3fc225a302bf56ff5650acec21bdcbf8a2bd7611 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 1fab649d5e9b64e2143447c33edbbca051ae22fc..a51e90ed0d6a6a0a868b81986319111c89d9869a 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 62740f028f0fc86bc16db063aa652029e10f6dbf..987d3c3db6e601068145d18107a6be71746612a4 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 5b3b8bcce1eeb12337b6f3c27ef2c0f581bb6521..ccc63c2553d2b9f222fb7080622b2be58bb120e3 100644 (file)
@@ -2,6 +2,7 @@
 
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
 ; RUN:    not grep select
+; END.
 
 implementation
 
index d754260cf0e230c8c788c18419b91e531a087b55..f69cbc007245ddd0af273bf94fa513af7743ffe8 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 0a6f88c032a5f9aaad5a9b596ea11004e3d75bd0..54ac8825db0f38ec5fad4782d19783faeb68a0c2 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 3d65b630e535d1c3a80067e7977cdac3baa39d45..aaaee3f84315eacb14787484ed393f3b7dda00f2 100644 (file)
@@ -1,4 +1,5 @@
 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep vector_shuffle
+; END.
 
 %T = type <4 x float>