* COP2 test case update.
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 8 Apr 1998 22:10:38 +0000 (22:10 +0000)
committerFrank Ch. Eigler <fche@redhat.com>
Wed, 8 Apr 1998 22:10:38 +0000 (22:10 +0000)
sim/testsuite/sky/ChangeLog
sim/testsuite/sky/Makefile.in
sim/testsuite/sky/t-cop2.s

index 62852a30c4511f6eb48767c412ae8605545cc242..a5e2853e2a624042229ae55d3924e537830d9c2a 100644 (file)
@@ -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.
index 353778f3d49857b4c690d4430ec86d42b3eecc4a..41724ee124aef55589e51e3a6b3ce33b99131968 100644 (file)
@@ -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 $@ $<
 
 
index 5346e8cbaddc6312d86c64f112662939524c4676..d00d710485632c36d24069645f8052c6dbe0ffdc 100644 (file)
@@ -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