Use llvm-upgrade these tests as they all use old assembly.
authorReid Spencer <rspencer@reidspencer.com>
Sat, 2 Dec 2006 20:34:08 +0000 (20:34 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 2 Dec 2006 20:34:08 +0000 (20:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32130 91177308-0d34-0410-b5e6-96231b3b80d8

36 files changed:
test/Assembler/2002-01-24-BadSymbolTableAssert.ll
test/Assembler/2002-01-24-ValueRefineAbsType.ll
test/Assembler/2002-02-19-TypeParsing.ll
test/Assembler/2002-03-08-NameCollision.ll
test/Assembler/2002-03-08-NameCollision2.ll
test/Assembler/2002-04-04-PureVirtMethCall.ll
test/Assembler/2002-04-04-PureVirtMethCall2.ll
test/Assembler/2002-04-05-TypeParsing.ll
test/Assembler/2002-05-02-InvalidForwardRef.ll
test/Assembler/2002-05-02-ParseError.ll
test/Assembler/2002-08-15-CastAmbiguity.ll
test/Assembler/2002-08-15-ConstantExprProblem.ll
test/Assembler/2002-08-15-UnresolvedGlobalReference.ll
test/Assembler/2002-08-22-DominanceProblem.ll
test/Assembler/2002-10-08-LargeArrayPerformance.ll
test/Assembler/2002-10-15-NameClash.ll
test/Assembler/2002-12-15-GlobalResolve.ll
test/Assembler/2003-01-30-UnsignedString.ll
test/Assembler/2003-02-02-ConstGlobal.ll
test/Assembler/2003-04-25-UnresolvedGlobalReference.ll
test/Assembler/2003-05-15-AssemblerProblem.llx
test/Assembler/2003-05-15-SwitchBug.ll
test/Assembler/2003-05-21-ConstantShiftExpr.ll
test/Assembler/2003-05-21-EmptyStructTest.ll
test/Assembler/2003-05-21-MalformedShiftCrash.llx
test/Assembler/2003-06-30-RecursiveTypeProblem.ll
test/Assembler/2003-10-04-NotMergingGlobalConstants.ll
test/Assembler/2004-02-27-SelfUseAssertError.ll
test/Assembler/2004-04-04-GetElementPtrIndexTypes.ll
test/Assembler/2004-11-28-InvalidTypeCrash.ll
test/Assembler/2004-12-06-ConstantFloatRange.ll
test/Assembler/2005-01-31-CallingAggregateFunction.ll
test/Assembler/2005-12-21-ZeroInitVector.ll
test/Assembler/2006-09-28-CrashOnInvalid.ll
test/Assembler/ConstantExprFold.llx
test/Assembler/select.ll

index 6dc0bc79a59aaf0e82e83cd5f41437ce6d89f144..c2a31d10841d3ed329941b4ba30af036145ba8c7 100644 (file)
@@ -1,10 +1,10 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
-; This testcase failed due to a bad assertion in SymbolTable.cpp, removed in the 1.20 revision
-; Basically the symbol table assumed that if there was an abstract type in the symbol table,
-; [in this case for the entry %foo of type void(opaque)* ], that there should have also been
-; named types by now.  This was obviously not the case here, and this is valid.  Assertion
-; disabled.
+; This testcase failed due to a bad assertion in SymbolTable.cpp, removed in 
+; the 1.20 revision. Basically the symbol table assumed that if there was an 
+; abstract type in the symbol table, [in this case for the entry %foo of type 
+; void(opaque)* ], that there should have also been named types by now.  This 
+; was obviously not the case here, and this is valid.  Assertion disabled.
 
 declare void "foo"(%bb)
 %bb = type int 
index 1124254720bca3348f27ffe4d3670e4990bc9e98..ed12c096f7feaf56f11fbbab545827819f753ca7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 ; This testcase used to fail due to a lack of this diff in Value.cpp:
 ; diff -r1.16 Value.cpp
@@ -13,8 +13,8 @@
 ; >   if (OldTy == NewTy && !OldTy->isAbstract())
 ; >     Ty.removeUserFromConcrete();
 ;
-; This was causing an assertion failure, due to the "foo" Method object never releasing
-; it's reference to the opaque %bb value.
+; This was causing an assertion failure, due to the "foo" Method object never 
+; releasing it's reference to the opaque %bb value.
 ;
 declare void "foo"(%bb)
 
index 2a25ebbba4e18a70037af2659b22126f3f5a3ea0..b777b3494f386f93e1049f8578f99ccba6744588 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
   %Hosp = type { int, int, int, { \2 *, { int, int, int, { [4 x \3], \2, \5, \6,
    int, int } * } *, \2 * }, { \2 *, { int, int, int, { [4 x \3], \2, \5, \6, int,
index d92614170e5b043ff2c35e2f1bfb22ed324622ac..8d0c4bddcfbfe282983a49c6690661992c1d019e 100644 (file)
@@ -1,8 +1,9 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 ; Method arguments were being checked for collisions at the global scope before
-; the method object was created by the parser.  Because of this, false collisions
-; could occur that would cause the following error message to be produced:
+; the method object was created by the parser.  Because of this, false 
+; collisions could occur that would cause the following error message to be 
+; produced:
 ;
 ;    Redefinition of value named 'X' in the 'int *' type plane!
 ;
index 2688b54c04ed7d14b150b489a633bff2c83f07fb..cd81c03ea19ccf46bee268116a51ea44b1badc0f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 ; Another name collision problem.  Here the problem was that if a forward 
 ; declaration for a method was found, that this would cause spurious conflicts
index 5fafe42b9c178a8163bfdb67ccd8814f6d421095..31d05add7c85ad1c33b651c4f6aa5620338442c8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade | llvm-as -o /dev/null -f
 
   type { { \2 *, \4 ** },
          { \2 *, \4 ** }
index c0cb3742e9ae2706108113057eeb5d0a031733c9..eb60570639f2be552c3cbabd75d217600f35779d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 %t = type { { \2*, \2 },
             { \2*, \2 }
index ce2a90a0cec8dc1d4eebfb43716e928f777bca84..3418de9447fe5ee70cf3516d185cb70770e782d0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
   %Hosp = type {
                  { \2 *, { \2, \4 } * },
index 8d79e60649a21c17d00bd617583112abaedaa00b..85c7368a61b612137dd19f9a2750f7c3640c8392 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 ; It looks like the assembler is not forward resolving the function declaraion
 ; correctly.
index 108d14881af1db21a2095fbb609df037a97590e3..22bcbc0c8154bdbbdffc03aba720fe33c9359d9b 100644 (file)
@@ -1,10 +1,9 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 ; This should parse correctly without an 'implementation', but our current YACC
 ; based parser doesn't have the required 2 token lookahead...
-; XFAIL: * 
 
-       %T = type int *
+%T = type int *
 
 %T %test() {
        ret %T null
index ce1ce0701d3cd4c47642e8e1a2497bbaa1b21ab4..c44ee670eb5952e5ec83d7511f4842ea7063667c 100644 (file)
@@ -1,6 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
-
-
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 
 void %test(int %X) {
index d64775f9b4201a4a78356b65a3f0b59c1ce070f6..b3380ed8a43bea9297351bc2846934e608799149 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 %.LC0 = internal global [12 x sbyte] c"hello world\00"
 
index 83b82a6884593962e7481a0e6568e3fca998fc65..24566777138b20f6ed69e0ede853cbb5abbe8d22 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 %.LC0 = internal global [12 x sbyte] c"hello world\00"          ; <[12 x sbyte]*> [#uses=1]
 
index 1d0cda5bd62ff5f7c6bac67e31b93b88b2273c31..c6fb9a3a5f0d30428e2d686c6ba9a59b2443eec3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 ; Dominance relationships is not calculated correctly for unreachable blocks,
 ; which causes the verifier to barf on this input.
index 026d10ee8204807d8e830a2ee4bbe050240a8c3c..1730d3a4d0d4b0b05d44900176452c7a13610116 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 ; This testcase comes from the following really simple c file:
 ;
index d4c36f3a9d7a9db09b9d004c94a4435b8377bcfe..5dda3c509a7f987f0d92a817a80502632c6925a8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 declare int "ArrayRef"([100 x int] * %Array)
 
index 62d802d2c324e317186a7b6e18297cd01decc022..332b5324ee078a78460cb2842867d7e7b76186da 100644 (file)
@@ -1,12 +1,9 @@
-; RUN: llvm-as < %s -o /dev/null -f
-
-
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 %X = external global %T* 
 %X = external global int *
 
 %T = type int
 
-
 implementation
 
index 5e55231932ca4b7c497931bddf0886b2a5114132..f99b31a205659f8c35b555ed5e0b11f3aa525cb1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 
 %spell_order = global [4 x ubyte] c"\FF\00\F7\00"
index 0bde297cfa633eb0892c5f1d1d3c3bb47d2c8df8..faecbf5560db1522eb93f55576bb6099a4954988 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
-
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 %X = external global int
 %X = constant int 7
index 89132f6f2f708a5d24a6583c029287efbe05e059..9d128f823ec8f480ac8653549ef986af5fef97b4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 ; There should be absolutely no problem with this testcase.
 
index e22d11d6cbf6d8b16995a47e8a5b610d5cde7e0d..a4802940ecb8f638ace49cda3cbe68cfac697984 100644 (file)
@@ -1,7 +1,7 @@
 ; This bug was caused by two CPR's existing for the same global variable, 
 ; colliding in the Module level CPR map.
 
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 void %test() {
         call void (...)* cast (void (short*, int)* %AddString to void (...)*)(short* null, int 0)
index a77b72a0b6e2824d32bbe16494311fa10906ed91..748ef7a513ccbcf3c27e616ea089f87f29a8d7b1 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llvm-as < %s -o /dev/null -f
-
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
+; Check minimal switch statement
 
 void %test(int %X) {
   switch int %X, label %dest []
index 830dd7a1e6a4dad66d1e4ba424059a96575b408d..42331d398dedc44ffbda19728cd9bbecac6e1fb8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 ; Test that shift instructions can be used in constant expressions.
 
index d177b3b8e45534cb5bf23fe9440b9c9e39686b8a..4b1b1980f7a9fe4b39c7443509463cff77cb3f8e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 ; The old C front-end never generated empty structures, now the new one
 ; can.  For some reason we never handled them in the parser. Weird.
index e56d2bb75f086143489ced5f6bddf4283ca6ecaa..7a4782e9c31b9724ed127f467dee5611c9f33e2f 100644 (file)
@@ -1,4 +1,4 @@
 ; Found by inspection of the code
-; RUN: llvm-as < %s 2>&1 | grep "Shift constant expression"
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f 2>&1 | grep "Shift constant expression"
 
 global int shr (float 1.0, ubyte 2)
index 716850e3353f001797b0bdad96dfbf7f2c807211..62aa81e619d3562c3e7884cda96c567c7fafe993 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 
 %MidFnTy = type void (void (%MidFnTy* )*)
index c9f5c5eb6311195e730b45fbf042993c8ad30daa..47c40d4260624f88ee37bcd06b23e00403437ffa 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
-
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 %T = type opaque
 %X = global %T* null
index 2b4aed590dfea182a29b53a34a92d597e9415f63..fb0cfb168d456f51af12141200ce7ab9b67c1da4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 ; %inc2 uses it's own value, but that's ok, as it's unreachable!
 
index ea6996197bd29e58a936d599a7056b68d9115f69..186b9df4f00077815f5d10bd5358041914c1c17a 100644 (file)
@@ -1,7 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
-
-
-
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
 int *%t1({ float, int }* %X) {
        %W = getelementptr { float, int }* %X, int 20, uint 1
index 9174264b304969770d3cb0490fadace147714f4e..1fad05ff444a8146ad6e88d5a84a77d9655540f6 100644 (file)
@@ -1,3 +1,3 @@
-; RUN: (llvm-as < %s) 2>&1 | grep 'Cannot create a'
+; RUN: (llvm-upgrade < %s | llvm-as -o /dev/null -f) 2>&1 | grep 'Cannot create a'
 ; Test for PR463.  This program is erroneous, but should not crash llvm-as.
 %.FOO  = internal global %struct.none zeroinitializer
index 30d103c57289a34c7ea5bf86a4096af226a7cca8..8718a8d5aad7d731e9417662ef60f25a9c47108e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as %s -o /dev/null 2>&1 | grep "constant invalid for type"
+; RUN: llvm-upgrade %s | llvm-as -o /dev/null -f 2>&1 | grep "constant invalid for type"
 ; XFAIL: *
 
 ;; This is a testcase for PR409
index 0f8bab4a06238fdffbc65c3cca3c50a39c7be20a..a5de2bace9646aa24fb8805fdf7fdb3a0621c80e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as %s -o /dev/null 2>&1 | grep "LLVM functions cannot return aggregate types"
+; RUN: llvm-upgrade %s | llvm-as -o /dev/null -f 2>&1 | grep "LLVM functions cannot return aggregate types"
 
 void %test() {
        call {} %foo()
index fdc2ba6f7995815b1027e9caabec2265bc0d9aaf..d2058a060abd78cb393b5d5ba1718976956b959d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s > /dev/null
+; RUN: llvm-upgrade < %s | llvm-as > /dev/null
 
 < 4 x int> %foo() {
   ret <4 x int> zeroinitializer
index 3770add1927e10f813dbcea270a28345404fe4d5..1f67c9cd65045feb2418a947c222ccde64fe9072 100644 (file)
@@ -1,6 +1,6 @@
 ; Test for PR902.  This program is erroneous, but should not crash llvm-as.
 ; This tests that a simple error is caught and processed correctly.
-; RUN: (llvm-as < %s) 2>&1 | grep 'FP constant invalid for type'
+; RUN: llvm-upgrade < %s | llvm-as 2>&1 | grep 'FP constant invalid for type'
 void %test() {
   add int 1, 2.0
   ret void
index 06d0b75a98b33d933d71020eb8f8adc7589c5b01..c9c3dff9459c5a0506a0afa315871ae419686e08 100644 (file)
@@ -1,7 +1,8 @@
-; This test checks to make sure that constant exprs fold in some simple situations
+; This test checks to make sure that constant exprs fold in some simple 
+; situations
 
 ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep '(' &&
-; RUN: llvm-as < %s
+; RUN: llvm-upgrade < %s | llvm-as
 
 %A = global long 0
 
index 8f378bb3b9b74575b64dfc8509fdbbf49d1da0a1..1552fa57fa6b6781892ce8a04dd448d31ff9938a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f