mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-19 13:38:56 +00:00
Adding RUN lines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17527 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
36dc5c7344
commit
cd0aa818c8
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
; Make sure that global variables do not collide if they have the same name,
|
; Make sure that global variables do not collide if they have the same name,
|
||||||
; but different types.
|
; but different types.
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
; This case was emitting code that looked like this:
|
; This case was emitting code that looked like this:
|
||||||
; ...
|
; ...
|
||||||
; llvm_BB1: /* no statement here */
|
; llvm_BB1: /* no statement here */
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
; Test const pointer refs & forward references
|
; Test const pointer refs & forward references
|
||||||
|
|
||||||
%t3 = global int * %t1 ;; Forward reference
|
%t3 = global int * %t1 ;; Forward reference
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
global int* cast (float* %0 to int*) ;; Forward numeric reference
|
global int* cast (float* %0 to int*) ;; Forward numeric reference
|
||||||
global float* %0 ;; Duplicate forward numeric reference
|
global float* %0 ;; Duplicate forward numeric reference
|
||||||
global float 0.0
|
global float 0.0
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
%sptr1 = global [11x sbyte]* %somestr ;; Forward ref to a constant
|
%sptr1 = global [11x sbyte]* %somestr ;; Forward ref to a constant
|
||||||
%somestr = constant [11x sbyte] c"hello world"
|
%somestr = constant [11x sbyte] c"hello world"
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
%fptr = global void() * %f ;; Forward ref method defn
|
%fptr = global void() * %f ;; Forward ref method defn
|
||||||
declare void "f"() ;; External method
|
declare void "f"() ;; External method
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
%array = constant [2 x int] [ int 12, int 52 ] ; <[2 x int]*> [#uses=1]
|
%array = constant [2 x int] [ int 12, int 52 ] ; <[2 x int]*> [#uses=1]
|
||||||
%arrayPtr = global int* getelementptr ([2 x int]* %array, long 0, long 0) ; <int**> [#uses=1]
|
%arrayPtr = global int* getelementptr ([2 x int]* %array, long 0, long 0) ; <int**> [#uses=1]
|
||||||
|
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
%MyIntList = uninitialized global { \2 *, int }
|
%MyIntList = uninitialized global { \2 *, int }
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
; The C Writer bombs on this testcase because it tries the print the prototype
|
; The C Writer bombs on this testcase because it tries the print the prototype
|
||||||
; for the test function, which tries to print the argument name. The function
|
; for the test function, which tries to print the argument name. The function
|
||||||
; has not been incorporated into the slot calculator, so after it does the name
|
; has not been incorporated into the slot calculator, so after it does the name
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
; Indirect function call test... found by Joel & Brian
|
; Indirect function call test... found by Joel & Brian
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
; This testcase fails because the C backend does not arrange to output the
|
; This testcase fails because the C backend does not arrange to output the
|
||||||
; contents of a structure type before it outputs the structure type itself.
|
; contents of a structure type before it outputs the structure type itself.
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
|
|
||||||
declare void %foo(...)
|
declare void %foo(...)
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
%MPI_Comm = type %struct.Comm*
|
%MPI_Comm = type %struct.Comm*
|
||||||
%struct.Comm = type opaque
|
%struct.Comm = type opaque
|
||||||
%thing = global %MPI_Comm* null ; <%MPI_Comm**> [#uses=0]
|
%thing = global %MPI_Comm* null ; <%MPI_Comm**> [#uses=0]
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
%bob = external global int ; <int*> [#uses=2]
|
%bob = external global int ; <int*> [#uses=2]
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
|
|
||||||
%BitField = type int
|
%BitField = type int
|
||||||
%tokenptr = type %BitField*
|
%tokenptr = type %BitField*
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
%testString = internal constant [18 x sbyte] c "Escaped newline\n\00"
|
%testString = internal constant [18 x sbyte] c "Escaped newline\n\00"
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
; Apparently this constant was unsigned in ISO C 90, but not in C 99.
|
; Apparently this constant was unsigned in ISO C 90, but not in C 99.
|
||||||
|
|
||||||
int %foo() {
|
int %foo() {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
; This testcase breaks the C backend, because gcc doesn't like (...) functions
|
; This testcase breaks the C backend, because gcc doesn't like (...) functions
|
||||||
; with no arguments at all.
|
; with no arguments at all.
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
; The C backend was dying when there was no typename for a struct type!
|
; The C backend was dying when there was no typename for a struct type!
|
||||||
|
|
||||||
declare int %test(int,{ [32 x int] }*)
|
declare int %test(int,{ [32 x int] }*)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
|
|
||||||
%X = type { int, float }
|
%X = type { int, float }
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
; Make sure hex constant does not continue into a valid hexadecimal letter/number
|
; Make sure hex constant does not continue into a valid hexadecimal letter/number
|
||||||
%version = global [3 x sbyte] c"\001\00"
|
%version = global [3 x sbyte] c"\001\00"
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
|
|
||||||
%version = global [3 x sbyte] c"1\00\00"
|
%version = global [3 x sbyte] c"1\00\00"
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
|
|
||||||
declare int %callee(int, int)
|
declare int %callee(int, int)
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
; This is a non-normal FP value: it's a nan.
|
; This is a non-normal FP value: it's a nan.
|
||||||
%NAN = global { float } { float 0x7FF8000000000000 }
|
%NAN = global { float } { float 0x7FF8000000000000 }
|
||||||
%NANs = global { float } { float 0x7FF4000000000000 }
|
%NANs = global { float } { float 0x7FF4000000000000 }
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
|
|
||||||
%A = type { uint, sbyte*, { uint, uint, uint, uint, uint, uint, uint, uint }*, ushort }
|
%A = type { uint, sbyte*, { uint, uint, uint, uint, uint, uint, uint, uint }*, ushort }
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
|
|
||||||
declare sbyte* %llvm.va_start()
|
declare sbyte* %llvm.va_start()
|
||||||
declare void %llvm.va_end(sbyte*)
|
declare void %llvm.va_end(sbyte*)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
; reduced from DOOM.
|
; reduced from DOOM.
|
||||||
%union._XEvent = type { int }
|
%union._XEvent = type { int }
|
||||||
%.X_event_9 = global %union._XEvent zeroinitializer
|
%.X_event_9 = global %union._XEvent zeroinitializer
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
%y = weak global sbyte 0
|
%y = weak global sbyte 0
|
||||||
implementation
|
implementation
|
||||||
uint %testcaseshr() {
|
uint %testcaseshr() {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
|
||||||
declare void %llvm.va_end(sbyte*)
|
declare void %llvm.va_end(sbyte*)
|
||||||
|
|
||||||
void %test() {
|
void %test() {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
int %foo(int %x) {
|
int %foo(int %x) {
|
||||||
ret int %x
|
ret int %x
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
int %foo(int %x) {
|
int %foo(int %x) {
|
||||||
ret int 42
|
ret int 42
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
void %foo() {
|
void %foo() {
|
||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
int %bar(int %x) {
|
int %bar(int %x) {
|
||||||
ret int 0
|
ret int 0
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
%a_fstr = internal constant [8 x sbyte] c"a = %f\0A\00"
|
%a_fstr = internal constant [8 x sbyte] c"a = %f\0A\00"
|
||||||
%a_lstr = internal constant [10 x sbyte] c"a = %lld\0A\00"
|
%a_lstr = internal constant [10 x sbyte] c"a = %lld\0A\00"
|
||||||
%a_dstr = internal constant [8 x sbyte] c"a = %d\0A\00"
|
%a_dstr = internal constant [8 x sbyte] c"a = %d\0A\00"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
%g = global int 0
|
%g = global int 0
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
%.str_1 = internal constant [7 x sbyte] c"hello\0A\00"
|
%.str_1 = internal constant [7 x sbyte] c"hello\0A\00"
|
||||||
|
|
||||||
declare int %printf(sbyte*, ...)
|
declare int %printf(sbyte*, ...)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
%.str_1 = internal constant [4 x sbyte] c"%d\0A\00"
|
%.str_1 = internal constant [4 x sbyte] c"%d\0A\00"
|
||||||
|
|
||||||
declare int %printf(sbyte*, ...)
|
declare int %printf(sbyte*, ...)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
%a_str = internal constant [8 x sbyte] c"a = %f\0A\00"
|
%a_str = internal constant [8 x sbyte] c"a = %f\0A\00"
|
||||||
%b_str = internal constant [8 x sbyte] c"b = %f\0A\00"
|
%b_str = internal constant [8 x sbyte] c"b = %f\0A\00"
|
||||||
;; binary ops: arith
|
;; binary ops: arith
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
%a_str = internal constant [8 x sbyte] c"a = %d\0A\00"
|
%a_str = internal constant [8 x sbyte] c"a = %d\0A\00"
|
||||||
%b_str = internal constant [8 x sbyte] c"b = %d\0A\00"
|
%b_str = internal constant [8 x sbyte] c"b = %d\0A\00"
|
||||||
;; binary ops: arith
|
;; binary ops: arith
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
%.str_1 = internal constant [4 x sbyte] c"%d\0A\00"
|
%.str_1 = internal constant [4 x sbyte] c"%d\0A\00"
|
||||||
|
|
||||||
declare int %printf(sbyte*, ...)
|
declare int %printf(sbyte*, ...)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
%a_str = internal constant [8 x sbyte] c"a = %d\0A\00"
|
%a_str = internal constant [8 x sbyte] c"a = %d\0A\00"
|
||||||
%a_mul_str = internal constant [13 x sbyte] c"a * %d = %d\0A\00"
|
%a_mul_str = internal constant [13 x sbyte] c"a * %d = %d\0A\00"
|
||||||
%A = global int 2
|
%A = global int 2
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
%a_str = internal constant [8 x sbyte] c"a = %d\0A\00"
|
%a_str = internal constant [8 x sbyte] c"a = %d\0A\00"
|
||||||
%b_str = internal constant [8 x sbyte] c"b = %d\0A\00"
|
%b_str = internal constant [8 x sbyte] c"b = %d\0A\00"
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
%a_str = internal constant [8 x sbyte] c"a = %d\0A\00"
|
%a_str = internal constant [8 x sbyte] c"a = %d\0A\00"
|
||||||
%b_str = internal constant [8 x sbyte] c"b = %d\0A\00"
|
%b_str = internal constant [8 x sbyte] c"b = %d\0A\00"
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
ret int 0
|
ret int 0
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; RUN: llvm-as < %s | llc
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
ret int 42
|
ret int 42
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user