From 4118c63ccd7c23676cd358dd1d50d1ae02ef3868 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 8 Apr 1998 22:10:38 +0000 Subject: [PATCH] * COP2 test case update. --- sim/testsuite/sky/ChangeLog | 7 +++++++ sim/testsuite/sky/Makefile.in | 1 + sim/testsuite/sky/t-cop2.s | 31 ++++++++++++++++++++++++++++++- 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/sim/testsuite/sky/ChangeLog b/sim/testsuite/sky/ChangeLog index 62852a30c45..a5e2853e2a6 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 + * 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 * c_gen.pl: Added subroutin perform_test_read_only. diff --git a/sim/testsuite/sky/Makefile.in b/sim/testsuite/sky/Makefile.in index 353778f3d49..41724ee124a 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 5346e8cbadd..d00d7104856 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 -- 2.34.1