mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-10 08:40:41 +00:00
Use llvm-upgrade these tests as they all use old assembly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
21fdb97a91
commit
d7c2c2f753
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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!
|
||||
;
|
||||
|
@ -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
|
||||
|
@ -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 ** }
|
||||
|
@ -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 }
|
||||
|
@ -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 } * },
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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]
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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:
|
||||
;
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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 []
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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)
|
||||
|
@ -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* )*)
|
||||
|
@ -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
|
||||
|
@ -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!
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s -o /dev/null -f
|
||||
; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user