1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Use llvm-upgrade these tests as they all use old assembly.

llvm-svn: 32130
This commit is contained in:
Reid Spencer 2006-12-02 20:34:08 +00:00
parent 8cf118be24
commit 581280f4ca
36 changed files with 50 additions and 59 deletions

View 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

View 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)

View 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,

View 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!
;

View 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

View 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 ** }

View 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 }

View 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 } * },

View 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.

View 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

View 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) {

View 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"

View 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]

View 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.

View 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:
;

View 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)

View 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

View 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"

View 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

View 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.

View 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)

View 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 []

View 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.

View 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.

View 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)

View 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* )*)

View 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

View 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!

View 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

View 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

View 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

View 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()

View 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

View 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

View 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

View File

@ -1,4 +1,4 @@
; RUN: llvm-as < %s -o /dev/null -f
; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f