mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-23 01:08:50 +08:00
* COP2 test case update.
This commit is contained in:
sim/testsuite/sky
@ -1,3 +1,10 @@
|
|||||||
|
Wed Apr 8 18:07:41 1998 Frank Ch. Eigler <fche@cygnus.com>
|
||||||
|
|
||||||
|
* t-cop2.s (mpg): Put END/NOP VU instructions to give something to
|
||||||
|
VCALLMS to run.
|
||||||
|
(end,error): Store rc for exit trap explicitly in $4.
|
||||||
|
|
||||||
|
* Makefile.in: Zap ".s.run" target before update attempt.
|
||||||
|
|
||||||
Wed Apr 8 16:53:00 1998 Jillian Ye <jillian@cygnus.com>
|
Wed Apr 8 16:53:00 1998 Jillian Ye <jillian@cygnus.com>
|
||||||
|
|
||||||
|
@ -224,6 +224,7 @@ sce%.ok: sce%.exe
|
|||||||
rm -f $@
|
rm -f $@
|
||||||
-env VIF1_TRACE_FILE=$@ $(RUN_FOR_TARGET) $<
|
-env VIF1_TRACE_FILE=$@ $(RUN_FOR_TARGET) $<
|
||||||
.s.run:
|
.s.run:
|
||||||
|
rm -f $@
|
||||||
$(AS_FOR_TARGET) -mcpu=r5900 -o $@ $<
|
$(AS_FOR_TARGET) -mcpu=r5900 -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,11 +7,29 @@ stuff:
|
|||||||
.set noat
|
.set noat
|
||||||
|
|
||||||
# enable COP2
|
# enable COP2
|
||||||
|
cop2:
|
||||||
mfc0 $1,$12
|
mfc0 $1,$12
|
||||||
dli $2,0x40000000
|
dli $2,0x40000000
|
||||||
or $1,$2,$2
|
or $1,$2,$2
|
||||||
mtc0 $1,$12
|
mtc0 $1,$12
|
||||||
|
|
||||||
|
# put some END/NOPs into VU0 uMEM
|
||||||
|
mpg:
|
||||||
|
dli $1,0x400002ff
|
||||||
|
dli $4,0x000002ff
|
||||||
|
dli $2,0x8000033c
|
||||||
|
dli $3,0x11000000
|
||||||
|
sw $2,0($3)
|
||||||
|
sw $1,4($3)
|
||||||
|
sw $2,8($3)
|
||||||
|
sw $4,12($3)
|
||||||
|
sw $2,16($3)
|
||||||
|
sw $4,20($3)
|
||||||
|
sw $2,24($3)
|
||||||
|
sw $4,28($3)
|
||||||
|
sw $2,32($3)
|
||||||
|
sw $1,36($3)
|
||||||
|
|
||||||
# start whacking away
|
# start whacking away
|
||||||
lqc2 vf01,128($6)
|
lqc2 vf01,128($6)
|
||||||
qmfc2 $5,vf2
|
qmfc2 $5,vf2
|
||||||
@ -1571,7 +1589,18 @@ blah:
|
|||||||
|
|
||||||
end:
|
end:
|
||||||
7:
|
7:
|
||||||
|
# exit with RC=0
|
||||||
|
dli $4,0x0000
|
||||||
break 1023
|
break 1023
|
||||||
nop
|
nop
|
||||||
b 7b
|
b 7b
|
||||||
nop
|
nop
|
||||||
|
|
||||||
|
error:
|
||||||
|
8:
|
||||||
|
# exit with RC=16
|
||||||
|
dli $4,0x0010
|
||||||
|
break 1023
|
||||||
|
nop
|
||||||
|
b 8b
|
||||||
|
nop
|
||||||
|
Reference in New Issue
Block a user