aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>1999-01-06 12:47:21 +0000
committerFrank Ch. Eigler <fche@redhat.com>1999-01-06 12:47:21 +0000
commit79b41c05a4f75bdd7c196bdc754ecb11c9f97bf2 (patch)
tree8d86e6a63e50f1edc71f7668748faffce9a48ab6 /gas
parentfa88f06825295531da921525d031b858f5c6e46b (diff)
downloadgdb-79b41c05a4f75bdd7c196bdc754ecb11c9f97bf2.zip
gdb-79b41c05a4f75bdd7c196bdc754ecb11c9f97bf2.tar.gz
gdb-79b41c05a4f75bdd7c196bdc754ecb11c9f97bf2.tar.bz2
* Test for PR 18665, from sky branch.
1999-01-06 Frank Ch. Eigler <fche@cygnus.com> * gas/mips/r5900.[sd]: Add tests for multu1/div1/divu1 insns.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/mips/r5900.d8
-rw-r--r--gas/testsuite/gas/mips/r5900.s6
3 files changed, 19 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 9bcf947..9f965bf 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -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.
diff --git a/gas/testsuite/gas/mips/r5900.d b/gas/testsuite/gas/mips/r5900.d
index f63c5a6..e8a412e 100644
--- a/gas/testsuite/gas/mips/r5900.d
+++ b/gas/testsuite/gas/mips/r5900.d
@@ -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
diff --git a/gas/testsuite/gas/mips/r5900.s b/gas/testsuite/gas/mips/r5900.s
index c89e7c1..345ea14 100644
--- a/gas/testsuite/gas/mips/r5900.s
+++ b/gas/testsuite/gas/mips/r5900.s
@@ -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