diff options
author | Frank Ch. Eigler <fche@redhat.com> | 1998-04-08 22:10:38 +0000 |
---|---|---|
committer | Frank Ch. Eigler <fche@redhat.com> | 1998-04-08 22:10:38 +0000 |
commit | 4118c63ccd7c23676cd358dd1d50d1ae02ef3868 (patch) | |
tree | 9ebfcce1be18b163c904e2c966cd447d17460be9 /sim/testsuite | |
parent | 4cc9cd5474c3d51288ead20034a4033c19f014b8 (diff) | |
download | gdb-4118c63ccd7c23676cd358dd1d50d1ae02ef3868.zip gdb-4118c63ccd7c23676cd358dd1d50d1ae02ef3868.tar.gz gdb-4118c63ccd7c23676cd358dd1d50d1ae02ef3868.tar.bz2 |
* COP2 test case update.
Diffstat (limited to 'sim/testsuite')
-rw-r--r-- | sim/testsuite/sky/ChangeLog | 7 | ||||
-rw-r--r-- | sim/testsuite/sky/Makefile.in | 1 | ||||
-rw-r--r-- | sim/testsuite/sky/t-cop2.s | 31 |
3 files changed, 38 insertions, 1 deletions
diff --git a/sim/testsuite/sky/ChangeLog b/sim/testsuite/sky/ChangeLog index 62852a3..a5e2853 100644 --- a/sim/testsuite/sky/ChangeLog +++ b/sim/testsuite/sky/ChangeLog @@ -1,4 +1,11 @@ +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> * c_gen.pl: Added subroutin perform_test_read_only. diff --git a/sim/testsuite/sky/Makefile.in b/sim/testsuite/sky/Makefile.in index 353778f..41724ee 100644 --- a/sim/testsuite/sky/Makefile.in +++ b/sim/testsuite/sky/Makefile.in @@ -224,6 +224,7 @@ sce%.ok: sce%.exe rm -f $@ -env VIF1_TRACE_FILE=$@ $(RUN_FOR_TARGET) $< .s.run: + rm -f $@ $(AS_FOR_TARGET) -mcpu=r5900 -o $@ $< diff --git a/sim/testsuite/sky/t-cop2.s b/sim/testsuite/sky/t-cop2.s index 5346e8c..d00d710 100644 --- a/sim/testsuite/sky/t-cop2.s +++ b/sim/testsuite/sky/t-cop2.s @@ -7,11 +7,29 @@ stuff: .set noat # enable COP2 +cop2: mfc0 $1,$12 dli $2,0x40000000 or $1,$2,$2 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 lqc2 vf01,128($6) qmfc2 $5,vf2 @@ -1571,7 +1589,18 @@ blah: end: 7: +# exit with RC=0 + dli $4,0x0000 break 1023 nop b 7b nop + +error: +8: +# exit with RC=16 + dli $4,0x0010 + break 1023 + nop + b 8b + nop |