Browse Source
These tests did use their own crt.o stub however that is a little stone age so we drop crt.S and just statically link to the cross compilers libraries. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>pull/73/head
6 changed files with 17 additions and 61 deletions
@ -1,35 +0,0 @@ |
|||
CROSS=alpha-linux-gnu- |
|||
CC=$(CROSS)gcc |
|||
AS=$(CROSS)as |
|||
|
|||
SIM=../../alpha-linux-user/qemu-alpha |
|||
|
|||
CFLAGS=-O |
|||
LINK=$(CC) -o $@ crt.o $< -nostdlib |
|||
|
|||
TESTS=test-cond test-cmov |
|||
|
|||
all: hello-alpha $(TESTS) |
|||
|
|||
hello-alpha: hello-alpha.o crt.o |
|||
$(LINK) |
|||
|
|||
test-cond: test-cond.o crt.o |
|||
$(LINK) |
|||
|
|||
test-cmov.o: test-cond.c |
|||
$(CC) -c $(CFLAGS) -DTEST_CMOV -o $@ $< |
|||
|
|||
test-cmov: test-cmov.o crt.o |
|||
$(LINK) |
|||
|
|||
test-ovf: test-ovf.o crt.o |
|||
$(LINK) |
|||
|
|||
check: $(TESTS) |
|||
for f in $(TESTS); do $(SIM) $$f || exit 1; done |
|||
|
|||
clean: |
|||
$(RM) *.o *~ hello-alpha $(TESTS) |
|||
|
|||
.PHONY: clean all check |
|||
@ -1,26 +0,0 @@ |
|||
.text |
|||
|
|||
.globl _start |
|||
.ent _start,0 |
|||
_start: |
|||
.frame $15,0,$15 |
|||
br $29,1f |
|||
1: ldgp $29, 0($29) |
|||
.prologue 0 |
|||
ldq $27,main($29) !literal!1 |
|||
jsr $26,($27) |
|||
or $0,$0,$16 |
|||
.end _start |
|||
|
|||
.globl _exit |
|||
_exit: |
|||
lda $0,1 |
|||
callsys |
|||
|
|||
call_pal 0 |
|||
|
|||
.globl write |
|||
write: |
|||
lda $0,4 |
|||
callsys |
|||
ret |
|||
Loading…
Reference in new issue