aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2001-11-01 09:52:03 +0000
committerStephane Carrez <stcarrez@nerim.fr>2001-11-01 09:52:03 +0000
commit5d45665a8f7a0cb696cddfb2afe85ad4009e5506 (patch)
tree157d31ae4f9bca53870a10508010fa6bc544ce7c /gas
parent64e38312bcfb31f46f3d2b81e90b9a53ac8ad1c4 (diff)
downloadgdb-5d45665a8f7a0cb696cddfb2afe85ad4009e5506.zip
gdb-5d45665a8f7a0cb696cddfb2afe85ad4009e5506.tar.gz
gdb-5d45665a8f7a0cb696cddfb2afe85ad4009e5506.tar.bz2
* gas/m68hc11/opers12.s: Add test for disassembler bug with movb
instruction. * gas/m68hc11/opers12.d: Likewise. * gas/m68hc11/opers12-dwarf2.d: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/m68hc11/opers12-dwarf2.d25
-rw-r--r--gas/testsuite/gas/m68hc11/opers12.d8
-rw-r--r--gas/testsuite/gas/m68hc11/opers12.s13
4 files changed, 53 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index e3e9f73..4a1fe47 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2001-11-01 Stephane Carrez <Stephane.Carrez@worldnet.fr>
+
+ * gas/m68hc11/opers12.s: Add test for disassembler bug with movb
+ instruction.
+ * gas/m68hc11/opers12.d: Likewise.
+ * gas/m68hc11/opers12-dwarf2.d: Likewise.
+
2001-10-31 Chris Demetriou <cgd@broadcom.com>
* gas/mips/empic.s: Undo damage inflicted on 2000-12-02.
diff --git a/gas/testsuite/gas/m68hc11/opers12-dwarf2.d b/gas/testsuite/gas/m68hc11/opers12-dwarf2.d
index a9ecb8a..e8944af 100644
--- a/gas/testsuite/gas/m68hc11/opers12-dwarf2.d
+++ b/gas/testsuite/gas/m68hc11/opers12-dwarf2.d
@@ -214,3 +214,28 @@ t2:
10f: 1b fa 00 ff leas 255,PC
leas max9b,pc
113: 1b fa 00 00 leas 0,PC
+
+;;
+;; Disassembler bug with movb
+;;
+ movb #23,0x2345
+ 117: 18 0b 17 23 movb #23, 2345 <max9b\+0x2246>
+ 11b: 45
+ movb #40,12,sp
+ 11c: 18 08 8c 28 movb #40, 12,SP
+ movb #39,3,\+sp
+ 120: 18 08 a2 27 movb #39, 3,\+SP
+ movb #20,14,sp
+ 124: 18 08 8e 14 movb #20, 14,SP
+ movw #0x3210,0x3456
+ 128: 18 03 32 10 movw #3210 <bb\+0xa10>, 3456 <bb\+0xc56>
+ 12c: 34 56
+ movw #0x4040,12,sp
+ 12e: 18 00 8c 40 movw #4040 <bb\+0x1840>, 12,SP
+ 132: 40
+ movw #0x3900,3,\+sp
+ 133: 18 00 a2 39 movw #3900 <bb\+0x1100>, 3,\+SP
+ 137: 00
+ movw #0x2000,14,sp
+ 138: 18 00 8e 20 movw #2000 <max9b\+0x1f01>, 14,SP
+ 13c: 00
diff --git a/gas/testsuite/gas/m68hc11/opers12.d b/gas/testsuite/gas/m68hc11/opers12.d
index e6cdce0..645a5fe 100644
--- a/gas/testsuite/gas/m68hc11/opers12.d
+++ b/gas/testsuite/gas/m68hc11/opers12.d
@@ -88,3 +88,11 @@ Disassembly of section .text:
0+10b <t2\+0x16> leas 0,PC
0+10f <t2\+0x1a> leas 255,PC
0+113 <t2\+0x1e> leas 0,PC
+0+117 <t2\+0x22> movb #23, 0+2345 <max9b\+0x2246>
+0+11c <t2\+0x27> movb #40, 12,SP
+0+120 <t2\+0x2b> movb #39, 3,\+SP
+0+124 <t2\+0x2f> movb #20, 14,SP
+0+128 <t2\+0x33> movw #0+3210 <bb\+0xa10>, 0+3456 <bb\+0xc56>
+0+12e <t2\+0x39> movw #0+4040 <bb\+0x1840>, 12,SP
+0+133 <t2\+0x3e> movw #0+3900 <bb\+0x1100>, 3,\+SP
+0+138 <t2\+0x43> movw #0+2000 <max9b\+0x1f01>, 14,SP
diff --git a/gas/testsuite/gas/m68hc11/opers12.s b/gas/testsuite/gas/m68hc11/opers12.s
index 94f8912..6157d8d 100644
--- a/gas/testsuite/gas/m68hc11/opers12.s
+++ b/gas/testsuite/gas/m68hc11/opers12.s
@@ -100,6 +100,19 @@ t2:
leas min9b,pc
leas max9b,pc
+;;
+;; Disassembler bug with movb
+;;
+ movb #23,0x2345
+ movb #40,12,sp
+ movb #39,3,+sp
+ movb #20,14,sp
+ movw #0x3210,0x3456
+ movw #0x4040,12,sp
+ movw #0x3900,3,+sp
+ movw #0x2000,14,sp
+# movb #111,start
+
titi = 10
toto = 100
min5b= -15