* Test for PR 18665, from sky branch.
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 6 Jan 1999 12:47:21 +0000 (12:47 +0000)
committerFrank Ch. Eigler <fche@redhat.com>
Wed, 6 Jan 1999 12:47:21 +0000 (12:47 +0000)
1999-01-06  Frank Ch. Eigler  <fche@cygnus.com>
* gas/mips/r5900.[sd]: Add tests for multu1/div1/divu1 insns.

gas/testsuite/ChangeLog
gas/testsuite/gas/mips/r5900.d
gas/testsuite/gas/mips/r5900.s

index 9bcf9470ba47e8f82592c0b4cb1132cdc32c4916..9f965bf5150fb5abb3a4e5ee71346f3cdaacb471 100644 (file)
@@ -1,3 +1,9 @@
+start-sanitize-r5900
+1999-01-06  Frank Ch. Eigler  <fche@cygnus.com>
+
+       * gas/mips/r5900.[sd]: Add tests for multu1/div1/divu1 insns.
+
+end-sanitize-r5900
 1998-12-18  Nick Clifton  <nickc@cygnus.com>
 
        * gas/fr30/allinsn.s: Fix to match latest assembler syntax.
index f63c5a61bf70e88b240bacbb8cf66ebfd47af43e..e8a412e6627737dcfc1db6700a2c9c6fe6658886 100644 (file)
@@ -35,4 +35,10 @@ Disassembly of section \.text:
 0+0068 <stuff\+(0x|)68> min.s  \$f10,\$f12,\$f14
 0+006c <stuff\+(0x|)6c> mult1  \$v1,\$a0,\$zero
 0+0070 <stuff\+(0x|)70> mult1  \$a0,\$v1
-0+0074 <stuff\+(0x|)74> nop
+0+0074 <stuff\+(0x|)74> multu1 \$v1,\$a0,\$zero
+0+0078 <stuff\+(0x|)78> multu1 \$a0,\$v1
+0+007c <stuff\+(0x|)7c> div1   \$zero,\$v1,\$a0
+0+0080 <stuff\+(0x|)80> div1   \$zero,\$a0,\$v1
+0+0084 <stuff\+(0x|)84> divu1  \$zero,\$v1,\$a0
+0+0088 <stuff\+(0x|)88> divu1  \$zero,\$a0,\$v1
+0+008c <stuff\+(0x|)8c> nop
index c89e7c1be2872fe8172fb9dfef9d876c6ed88b63..345ea14174a44b2fd8ea17fc44cc7098eef391c4 100644 (file)
@@ -34,5 +34,11 @@ stuff:
 
        mult1   $3,$4,$0
        mult1   $4,$3
+       multu1  $3,$4,$0
+       multu1  $4,$3
+       div1    $0,$3,$4
+       div1    $4,$3
+       divu1   $0,$3,$4
+       divu1   $4,$3
 # Nop just to fill out ot a 16byte boundary
        nop