mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Adding RUN lines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17536 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
%.LC0 = internal global [10 x sbyte] c"argc: %d\0A\00"
|
%.LC0 = internal global [10 x sbyte] c"argc: %d\0A\00"
|
||||||
|
|
||||||
implementation ; Functions:
|
implementation ; Functions:
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
implementation ; Functions:
|
implementation ; Functions:
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
br label %Loop
|
br label %Loop
|
||||||
Loop:
|
Loop:
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
; We were accidentally inverting the signedness of right shifts. Whoops.
|
; We were accidentally inverting the signedness of right shifts. Whoops.
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
%X = add double 0.0, 1.0
|
%X = add double 0.0, 1.0
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
int %bar(sbyte* %X) {
|
int %bar(sbyte* %X) {
|
||||||
%P = alloca double ; pointer should be 4 byte aligned!
|
%P = alloca double ; pointer should be 4 byte aligned!
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
target endian = little
|
target endian = little
|
||||||
target pointersize = 32
|
target pointersize = 32
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
; Testcase distilled from 256.bzip2.
|
; Testcase distilled from 256.bzip2.
|
||||||
|
|
||||||
target endian = little
|
target endian = little
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
; Testcase distilled from 256.bzip2.
|
; Testcase distilled from 256.bzip2.
|
||||||
|
|
||||||
target endian = little
|
target endian = little
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
; This testcase failed to work because two variable sized allocas confused the
|
; This testcase failed to work because two variable sized allocas confused the
|
||||||
; local register allocator.
|
; local register allocator.
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
;
|
;
|
||||||
; Regression Test: EnvironmentTest.ll
|
; Regression Test: EnvironmentTest.ll
|
||||||
;
|
;
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
; This testcase exposes a bug in the local register allocator where it runs out
|
; This testcase exposes a bug in the local register allocator where it runs out
|
||||||
; of registers (due to too many overlapping live ranges), but then attempts to
|
; of registers (due to too many overlapping live ranges), but then attempts to
|
||||||
; use the ESP register (which is not allocatable) to hold a value.
|
; use the ESP register (which is not allocatable) to hold a value.
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
%A = global int 0
|
%A = global int 0
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
%.LC0 = internal global [12 x sbyte] c"Hello World\00"
|
%.LC0 = internal global [12 x sbyte] c"Hello World\00"
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
%X = global int 7
|
%X = global int 7
|
||||||
%msg = internal global [13 x sbyte] c"Hello World\0A\00"
|
%msg = internal global [13 x sbyte] c"Hello World\0A\00"
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
int %bar() { ret int 0 }
|
int %bar() { ret int 0 }
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
%A = add sbyte 0, 12
|
%A = add sbyte 0, 12
|
||||||
%B = sub sbyte %A, 1
|
%B = sub sbyte %A, 1
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
; test unconditional branch
|
; test unconditional branch
|
||||||
int %main() {
|
int %main() {
|
||||||
br label %Test
|
br label %Test
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
declare void %exit(int)
|
declare void %exit(int)
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int %foo() {
|
int %foo() {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
; This tests to make sure that we can evaluate wierd constant expressions
|
; This tests to make sure that we can evaluate wierd constant expressions
|
||||||
%A = global int 5
|
%A = global int 5
|
||||||
%B = global int 6
|
%B = global int 6
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
double %test(double* %DP, double %Arg) {
|
double %test(double* %DP, double %Arg) {
|
||||||
%D = load double* %DP
|
%D = load double* %DP
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
void %test(sbyte* %P, short* %P, int* %P, long* %P) {
|
void %test(sbyte* %P, short* %P, int* %P, long* %P) {
|
||||||
%V = load sbyte* %P
|
%V = load sbyte* %P
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
%A = and sbyte 4, 8
|
%A = and sbyte 4, 8
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
%X = malloc int ; constant size
|
%X = malloc int ; constant size
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
; test phi node
|
; test phi node
|
||||||
|
|
||||||
%Y = global int 6
|
%Y = global int 6
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
; test return instructions
|
; test return instructions
|
||||||
|
|
||||||
void %test() { ret void }
|
void %test() { ret void }
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
%double1 = add double 0.0, 0.0
|
%double1 = add double 0.0, 0.0
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
%int1 = add int 0, 0
|
%int1 = add int 0, 0
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
; RUN: llvm-as -f %s -o %t.bc
|
||||||
|
; RUN: lli %t.bc > /dev/null
|
||||||
|
|
||||||
; test shifts
|
; test shifts
|
||||||
int %main() {
|
int %main() {
|
||||||
%shamt = add ubyte 0, 1
|
%shamt = add ubyte 0, 1
|
||||||
|
Reference in New Issue
Block a user