This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] m68k: Add wdebugl. (Take 2)


Hi,

Attached is a revised patch to add wdebugl.  (Thanks Ben for reviewing
the previous iteration!)

This iteration includes a testcase.

Tested by running the testsuite with the new testcase.  Committed.

Kazu Hirata

2007-06-18  Nathan Sidwell  <nathan@codesourcery.com>

	* m68k-opc.c (m68k_opcodes): Add wdebugl variants.

2007-06-18  Kazu Hirata  <kazu@codesourcery.com>

	* gas/m68k/all.exp: Run mcf-wdebug.
	* gas/testsuite/gas/m68k/mcf-wdebug.d,
	gas/testsuite/gas/m68k/mcf-wdebug.s: New.

Index: gas/testsuite/gas/m68k/all.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/m68k/all.exp,v
retrieving revision 1.15
diff -u -d -p -r1.15 all.exp
--- gas/testsuite/gas/m68k/all.exp	15 May 2007 09:21:24 -0000	1.15
+++ gas/testsuite/gas/m68k/all.exp	18 Jun 2007 16:01:29 -0000
@@ -54,6 +54,7 @@ if { [istarget m68*-*-*] || [istarget fi
     run_dump_test mcf-emac
     run_dump_test mcf-fpu
     run_dump_test mcf-trap
+    run_dump_test mcf-wdebug
     if { [istarget *-*-elf] || [istarget *-*-linux*] } then {
       run_dump_test arch-cpu-1
     }
Index: gas/testsuite/gas/m68k/mcf-wdebug.d
===================================================================
RCS file: gas/testsuite/gas/m68k/mcf-wdebug.d
diff -N gas/testsuite/gas/m68k/mcf-wdebug.d
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gas/testsuite/gas/m68k/mcf-wdebug.d	18 Jun 2007 16:01:29 -0000
@@ -0,0 +1,11 @@
+#name: mcf-wdebug
+#objdump: -d
+#as: -m5208
+
+.*:     file format .*
+
+Disassembly of section .text:
+
+0+ <foo>:
+   0:	fbd0 0003      	wdebugl %a0@
+   4:	fbd0 0003      	wdebugl %a0@
Index: gas/testsuite/gas/m68k/mcf-wdebug.s
===================================================================
RCS file: gas/testsuite/gas/m68k/mcf-wdebug.s
diff -N gas/testsuite/gas/m68k/mcf-wdebug.s
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gas/testsuite/gas/m68k/mcf-wdebug.s	18 Jun 2007 16:01:29 -0000
@@ -0,0 +1,6 @@
+# Check that gas recognizes both wdebug and wdebug.l.
+	.text
+	.globl	foo
+foo:
+	wdebug (%a0)
+	wdebug.l (%a0)
Index: opcodes/m68k-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/m68k-opc.c,v
retrieving revision 1.24
diff -u -d -p -r1.24 m68k-opc.c
--- opcodes/m68k-opc.c	23 Apr 2007 07:51:33 -0000	1.24
+++ opcodes/m68k-opc.c	18 Jun 2007 16:01:29 -0000
@@ -2176,6 +2176,8 @@ TBL("tblunb", "tblunw", "tblunl", 0, 0),
 {"wddataw", 2,	one(0175500),   one(0177700), "~s", mcfisa_a },
 {"wddatal", 2,	one(0175600),   one(0177700), "~s", mcfisa_a },
 
+{"wdebugl", 4,	two(0175720, 03),	two(0177770, 0xffff), "as", mcfisa_a },
+{"wdebugl", 4,	two(0175750, 03),	two(0177770, 0xffff), "ds", mcfisa_a },
 {"wdebug", 4,	two(0175720, 03),	two(0177770, 0xffff), "as", mcfisa_a },
 {"wdebug", 4,	two(0175750, 03),	two(0177770, 0xffff), "ds", mcfisa_a },
 };


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]