* COP2 testing in progress.
Tue Apr 7 18:31:47 1998 Frank Ch. Eigler <fche@cygnus.com> * t-cop2.s: New test for COP2 function. * Makefile.in: Added rule to assemble self-contained R5900 asm tests.
This commit is contained in:
parent
34c1c9b86a
commit
0dee6af299
|
@ -1,3 +1,9 @@
|
||||||
|
Tue Apr 7 18:31:47 1998 Frank Ch. Eigler <fche@cygnus.com>
|
||||||
|
|
||||||
|
* t-cop2.s: New test for COP2 function.
|
||||||
|
|
||||||
|
* Makefile.in: Added rule to assemble self-contained R5900 asm tests.
|
||||||
|
|
||||||
Tue Apr 7 16:18:46 1998 Ian Carmichael <iancarm@cygnus.com>
|
Tue Apr 7 16:18:46 1998 Ian Carmichael <iancarm@cygnus.com>
|
||||||
|
|
||||||
* test41.dvpasm, test42.dvpasm, test43.dvpasm,
|
* test41.dvpasm, test42.dvpasm, test43.dvpasm,
|
||||||
|
|
|
@ -40,20 +40,25 @@ RUNTEST_FOR_TARGET = `\
|
||||||
fi; \
|
fi; \
|
||||||
fi`
|
fi`
|
||||||
|
|
||||||
# Note: we want to use dvp-elf-as for the SKY testcase,
|
DVPAS_FOR_TARGET = `\
|
||||||
# not the mips64r5900 one.
|
if [ -x ${bindir}/dvp-elf-as ]; then \
|
||||||
|
echo ${bindir}/dvp-elf-as ; \
|
||||||
|
else \
|
||||||
|
echo $(target_alias)-as ; \
|
||||||
|
fi`
|
||||||
|
|
||||||
AS_FOR_TARGET = `\
|
AS_FOR_TARGET = `\
|
||||||
if [ -x ${bindir}/dvp-elf-as ]; then \
|
if [ -x ${bindir}/dvp-elf-as ]; then \
|
||||||
echo ${bindir}/dvp-elf-as ; \
|
echo ${bindir}/dvp-elf-as ; \
|
||||||
else \
|
else \
|
||||||
echo $(target_alias)-as ; \
|
echo $(target_alias)-as ; \
|
||||||
fi`
|
fi`
|
||||||
|
|
||||||
LD_FOR_TARGET = `\
|
LD_FOR_TARGET = `\
|
||||||
if [ -x ../../../ld/ld-new ]; then \
|
if [ -x ../../../gas/as-new ]; then \
|
||||||
echo ../../../ld/ld-new ; \
|
echo ../../../gas/as-new ; \
|
||||||
else \
|
else \
|
||||||
echo $(target_alias)-ld ; \
|
echo $(target_alias)-as ; \
|
||||||
fi`
|
fi`
|
||||||
|
|
||||||
OBJCOPY_FOR_TARGET = `\
|
OBJCOPY_FOR_TARGET = `\
|
||||||
|
@ -64,7 +69,6 @@ OBJCOPY_FOR_TARGET = `\
|
||||||
fi`
|
fi`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RUNOPTS =
|
RUNOPTS =
|
||||||
|
|
||||||
RUN_FOR_TARGET = `\
|
RUN_FOR_TARGET = `\
|
||||||
|
@ -104,7 +108,8 @@ TESTS = \
|
||||||
tsv332_0.ok tsv332_1.ok \
|
tsv332_0.ok tsv332_1.ok \
|
||||||
tsv408_0.ok tsv408_1.ok \
|
tsv408_0.ok tsv408_1.ok \
|
||||||
tsv416_0.ok tsv416_1.ok \
|
tsv416_0.ok tsv416_1.ok \
|
||||||
tsv432_0.ok tsv432_1.ok
|
tsv432_0.ok tsv432_1.ok \
|
||||||
|
t-cop2.ok
|
||||||
|
|
||||||
#SCE_TESTS := $(patsubst %.dvpasm, %.ok, $(wildcard sce*.dvpasm))
|
#SCE_TESTS := $(patsubst %.dvpasm, %.ok, $(wildcard sce*.dvpasm))
|
||||||
SCE_TESTS = \
|
SCE_TESTS = \
|
||||||
|
@ -123,7 +128,7 @@ SCE_TESTS = \
|
||||||
sce_test49.ok sce_test50.ok sce_test51.ok sce_test52.ok \
|
sce_test49.ok sce_test50.ok sce_test51.ok sce_test52.ok \
|
||||||
sce_test53.ok sce_test54.ok sce_test55.ok sce_test56.ok \
|
sce_test53.ok sce_test54.ok sce_test55.ok sce_test56.ok \
|
||||||
sce_test57.ok sce_test58.ok sce_test59.ok
|
sce_test57.ok sce_test58.ok sce_test59.ok
|
||||||
|
|
||||||
check: sanity $(TESTS) $(SCE_TESTS)
|
check: sanity $(TESTS) $(SCE_TESTS)
|
||||||
|
|
||||||
sanity:
|
sanity:
|
||||||
|
@ -146,22 +151,22 @@ sce%.exe: sce%.o sce_main.o refresh.o
|
||||||
|
|
||||||
sce_main.o: sce_main.c
|
sce_main.o: sce_main.c
|
||||||
$(GCC_FOR_TARGET) -c $(CFLAGS) -o $@ $<
|
$(GCC_FOR_TARGET) -c $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
refresh.o: refresh.s
|
refresh.o: refresh.s
|
||||||
$(AS_FOR_TARGET) $(ASFLAGS) -o $@ $<
|
$(DVPAS_FOR_TARGET) $(ASFLAGS) -o $@ $<
|
||||||
|
|
||||||
sce_%.o: sce_%.dvpasm sce_%.vuasm
|
sce_%.o: sce_%.dvpasm sce_%.vuasm
|
||||||
$(AS_FOR_TARGET) $(ASFLAGS) -o $@ $<
|
$(DVPAS_FOR_TARGET) $(ASFLAGS) -o $@ $<
|
||||||
|
|
||||||
sce2_%.o: sce2_%.dvpasm sce2_%.vubin
|
sce2_%.o: sce2_%.dvpasm sce2_%.vubin
|
||||||
$(AS_FOR_TARGET) $(ASFLAGS) -o $@ $<
|
$(DVPAS_FOR_TARGET) $(ASFLAGS) -o $@ $<
|
||||||
|
|
||||||
sce2_%.vubin: sce2_%.vu.o
|
sce2_%.vubin: sce2_%.vu.o
|
||||||
$(OBJCOPY_FOR_TARGET) -O binary $< $@
|
$(OBJCOPY_FOR_TARGET) -O binary $< $@
|
||||||
|
|
||||||
sce2_%.vu.o: sce2_%.vuasm
|
sce2_%.vu.o: sce2_%.vuasm
|
||||||
$(AS_FOR_TARGET) $(ASFLAGS) -o $@ $<
|
$(DVPAS_FOR_TARGET) $(ASFLAGS) -o $@ $<
|
||||||
|
|
||||||
sce%.ok: sce%.exe
|
sce%.ok: sce%.exe
|
||||||
rm -f sce$*.ok
|
rm -f sce$*.ok
|
||||||
ulimit -t 30 ; $(RUN_FOR_TARGET) $< > sce$*_our_gif.dat; \
|
ulimit -t 30 ; $(RUN_FOR_TARGET) $< > sce$*_our_gif.dat; \
|
||||||
|
@ -170,11 +175,10 @@ sce%.ok: sce%.exe
|
||||||
else \
|
else \
|
||||||
diff -bitw sce$*_out_dif.dat sce$*_our_gif.dat > sce$*.ok; \
|
diff -bitw sce$*_out_dif.dat sce$*_our_gif.dat > sce$*.ok; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------
|
#------------------------
|
||||||
# Rules for running the TESTS
|
# Rules for running tests
|
||||||
#------------------------------------
|
#------------------------
|
||||||
|
|
||||||
.run.ok:
|
.run.ok:
|
||||||
rm -f tmp-$* $*.hi
|
rm -f tmp-$* $*.hi
|
||||||
|
@ -200,7 +204,7 @@ sce%.ok: sce%.exe
|
||||||
#------------------------------------
|
#------------------------------------
|
||||||
# Rules for building the TESTS
|
# Rules for building the TESTS
|
||||||
#------------------------------------
|
#------------------------------------
|
||||||
|
|
||||||
.trc.c:
|
.trc.c:
|
||||||
$(C_GEN) $< $@
|
$(C_GEN) $< $@
|
||||||
.c.run:
|
.c.run:
|
||||||
|
@ -213,7 +217,8 @@ sce%.ok: sce%.exe
|
||||||
.run.vif1out:
|
.run.vif1out:
|
||||||
rm -f $@
|
rm -f $@
|
||||||
-env VIF1_TRACE_FILE=$@ $(RUN_FOR_TARGET) $<
|
-env VIF1_TRACE_FILE=$@ $(RUN_FOR_TARGET) $<
|
||||||
|
.s.run:
|
||||||
|
$(AS_FOR_TARGET) -mcpu=r5900 -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue