Changes in directory llvm/test/Regression/Assembler:
2002-07-08-HugePerformanceProblem.llx updated: 1.4 -> 1.5 2003-04-15-ConstantInitAssertion.llx updated: 1.2 -> 1.3 2003-05-21-MalformedShiftCrash.llx updated: 1.3 -> 1.4 2003-05-21-MalformedStructCrash.llx updated: 1.3 -> 1.4 2003-11-12-ConstantExprCast.llx updated: 1.3 -> 1.4 2003-12-30-TypeMapInvalidMemory.llx updated: 1.3 -> 1.4 2004-10-22-BCWriterUndefBug.llx updated: 1.2 -> 1.3 --- Log message: For PR950: http://llvm.org/PR950 : Update the test suite to accommodate the change from signed integer types to signless integer types. The changes were of only a few kinds: 1. Make sure llvm-upgrade is run on the source which does the bulk of the changes automatically. 2. Change things like "grep 'int'" to "grep 'i32'" 3. In several tests bitcasting caused the same name to be reused in the same type plane. These had to be manually fixed. The fix was (generally) to leave the bitcast and provide the instruction with a new name. This should not affect the semantics of the test. In a few cases, the bitcasts were known to be superfluous and irrelevant to the test case so they were removed. 4. One test case uses a bytecode file which needed to be updated to the latest bytecode format. --- Diffs of the changes: (+10 -9) 2002-07-08-HugePerformanceProblem.llx | 2 +- 2003-04-15-ConstantInitAssertion.llx | 2 +- 2003-05-21-MalformedShiftCrash.llx | 2 +- 2003-05-21-MalformedStructCrash.llx | 2 +- 2003-11-12-ConstantExprCast.llx | 6 +++--- 2003-12-30-TypeMapInvalidMemory.llx | 3 ++- 2004-10-22-BCWriterUndefBug.llx | 2 +- 7 files changed, 10 insertions(+), 9 deletions(-) Index: llvm/test/Regression/Assembler/2002-07-08-HugePerformanceProblem.llx diff -u llvm/test/Regression/Assembler/2002-07-08-HugePerformanceProblem.llx:1.4 llvm/test/Regression/Assembler/2002-07-08-HugePerformanceProblem.llx:1.5 --- llvm/test/Regression/Assembler/2002-07-08-HugePerformanceProblem.llx:1.4 Sat Nov 6 14:38:27 2004 +++ llvm/test/Regression/Assembler/2002-07-08-HugePerformanceProblem.llx Sun Dec 31 00:01:59 2006 @@ -1,6 +1,6 @@ ; This file takes about 48 __MINUTES__ to assemble using as. This is WAY too ; long. The type resolution code needs to be sped up a lot. -; RUN: ulimit -t 20; llvm-as < %s +; RUN: ulimit -t 20; llvm-upgrade < %s | llvm-as %ALL_INTERSECTIONS_METHOD = type int (%OBJECT*, %RAY*, %ISTACK*)* %BBOX = type { %BBOX_VECT, %BBOX_VECT } Index: llvm/test/Regression/Assembler/2003-04-15-ConstantInitAssertion.llx diff -u llvm/test/Regression/Assembler/2003-04-15-ConstantInitAssertion.llx:1.2 llvm/test/Regression/Assembler/2003-04-15-ConstantInitAssertion.llx:1.3 --- llvm/test/Regression/Assembler/2003-04-15-ConstantInitAssertion.llx:1.2 Thu Oct 23 10:47:23 2003 +++ llvm/test/Regression/Assembler/2003-04-15-ConstantInitAssertion.llx Sun Dec 31 00:01:59 2006 @@ -1,4 +1,4 @@ -; RUN: (llvm-as < %s 2>&1) | grep Expected +; RUN: llvm-upgrade < %s | llvm-as 2>&1 >/dev/null | grep Expected ; Test the case of a misformed constant initializer ; This should cause an assembler error, not an assertion failure! %X = constant {int} { float 1.0 } Index: llvm/test/Regression/Assembler/2003-05-21-MalformedShiftCrash.llx diff -u llvm/test/Regression/Assembler/2003-05-21-MalformedShiftCrash.llx:1.3 llvm/test/Regression/Assembler/2003-05-21-MalformedShiftCrash.llx:1.4 --- llvm/test/Regression/Assembler/2003-05-21-MalformedShiftCrash.llx:1.3 Sat Dec 2 14:34:08 2006 +++ llvm/test/Regression/Assembler/2003-05-21-MalformedShiftCrash.llx Sun Dec 31 00:01:59 2006 @@ -1,4 +1,4 @@ ; Found by inspection of the code -; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f 2>&1 | grep "Shift constant expression" +; RUN: llvm-upgrade < %s | llvm-as 2>&1 > /dev/null | grep "Shift constant expression" global int shr (float 1.0, ubyte 2) Index: llvm/test/Regression/Assembler/2003-05-21-MalformedStructCrash.llx diff -u llvm/test/Regression/Assembler/2003-05-21-MalformedStructCrash.llx:1.3 llvm/test/Regression/Assembler/2003-05-21-MalformedStructCrash.llx:1.4 --- llvm/test/Regression/Assembler/2003-05-21-MalformedStructCrash.llx:1.3 Mon Sep 15 15:01:21 2003 +++ llvm/test/Regression/Assembler/2003-05-21-MalformedStructCrash.llx Sun Dec 31 00:01:59 2006 @@ -1,4 +1,4 @@ ; Found by inspection of the code -; RUN: llvm-as < %s 2>&1 | grep "Illegal" +; RUN: llvm-upgrade < %s | llvm-as 2>&1 > /dev/null | grep "Illegal" global {} { int 7, float 1.0, int 7, int 8 } Index: llvm/test/Regression/Assembler/2003-11-12-ConstantExprCast.llx diff -u llvm/test/Regression/Assembler/2003-11-12-ConstantExprCast.llx:1.3 llvm/test/Regression/Assembler/2003-11-12-ConstantExprCast.llx:1.4 --- llvm/test/Regression/Assembler/2003-11-12-ConstantExprCast.llx:1.3 Fri Dec 1 22:23:08 2006 +++ llvm/test/Regression/Assembler/2003-11-12-ConstantExprCast.llx Sun Dec 31 00:01:59 2006 @@ -1,9 +1,9 @@ -; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep ' bitcast (' +; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep ' bitcast (' %.Base64_1 = external constant [4 x sbyte] -ubyte %test(sbyte %X) { ; No predecessors! - %X = cast sbyte %X to ubyte ; <ubyte> [#uses=1] +ubyte %test(sbyte %Y) { ; No predecessors! + %X = cast sbyte %Y to ubyte ; <ubyte> [#uses=1] %tmp.13 = add ubyte %X, cast (sbyte sub (sbyte 0, sbyte cast ([4 x sbyte]* %.Base64_1 to sbyte)) to ubyte) ; <ubyte> [#uses=1] ret ubyte %tmp.13 } Index: llvm/test/Regression/Assembler/2003-12-30-TypeMapInvalidMemory.llx diff -u llvm/test/Regression/Assembler/2003-12-30-TypeMapInvalidMemory.llx:1.3 llvm/test/Regression/Assembler/2003-12-30-TypeMapInvalidMemory.llx:1.4 --- llvm/test/Regression/Assembler/2003-12-30-TypeMapInvalidMemory.llx:1.3 Fri Dec 29 14:01:32 2006 +++ llvm/test/Regression/Assembler/2003-12-30-TypeMapInvalidMemory.llx Sun Dec 31 00:01:59 2006 @@ -1,4 +1,5 @@ -; RUN: llvm-as < %s 2>&1 | grep 'Reference to an undefined type' +; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f 2>&1 | \ +; RUN: grep 'Reference to an undefined type' %d_reduction_0_dparser_gram = global { int (sbyte*, sbyte**, int, int, { %struct.Grammar*, void (\4, %struct.d_loc_t*, sbyte**)*, %struct.D_Scope*, void (\4)*, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }* (\4, int, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\9, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }**)*, void ({ int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }*)*, %struct.d_loc_t, int, int, int, int, int, int, int, int, int, int, int, int }*)*, int (sbyte*, sbyte**, int, int, { %struct.Grammar*, void (\4, %struct.d_loc_t*, sbyte**)*, %struct.D_Scope*, void (\4)*, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }* (\4, int, { int, %struct.d_loc_t, sbyt! e*, sbyte*, %struct.D_Scope*, void (\9, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }**)*, void ({ int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }*)*, %struct.d_loc_t, int, int, int, int, int, int, int, int, int, int, int, int }*)** } { int (sbyte*, sbyte**, int, int, { %struct.Grammar*, void (\4, %struct.d_loc_t*, sbyte**)*, %struct.D_Scope*, void (\4)*, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }* (\4, int, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\9, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }**)*, void ({ int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }*)*, %struct.d_loc_t, int, int, int, int, int, int, int, int, int, int, i! nt, int }*)* null, int (sbyte*, sbyte**, int, int, { %struct.G! rammar*, void (\4, %struct.d_loc_t*, sbyte**)*, %struct.D_Scope*, void (\4)*, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }* (\4, int, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\9, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }**)*, void ({ int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }*)*, %struct.d_loc_t, int, int, int, int, int, int, int, int, int, int, int, int }*)** null } Index: llvm/test/Regression/Assembler/2004-10-22-BCWriterUndefBug.llx diff -u llvm/test/Regression/Assembler/2004-10-22-BCWriterUndefBug.llx:1.2 llvm/test/Regression/Assembler/2004-10-22-BCWriterUndefBug.llx:1.3 --- llvm/test/Regression/Assembler/2004-10-22-BCWriterUndefBug.llx:1.2 Sat Nov 6 23:01:34 2004 +++ llvm/test/Regression/Assembler/2004-10-22-BCWriterUndefBug.llx Sun Dec 31 00:01:59 2006 @@ -1,5 +1,5 @@ ;; The bytecode writer was trying to treat undef values as ConstantArray's when ;; they looked like strings. -;; RUN: llvm-as < %s -o /dev/null -f +;; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f %G = internal global [8 x sbyte] undef _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits