From c373271616505b76f48938e219b4c3a1f71b8788 Mon Sep 17 00:00:00 2001 From: Julian Brown Date: Mon, 24 Oct 2011 16:36:51 +0000 Subject: [PATCH] opcodes/ * m68k-opc.c (m68k_opcodes): Fix entries for ColdFire moveml. gas/testsuite/ * gas/m68k/all.exp (movem-offset): Add test. * gas/m68k/movem-offset.s: New test. * gas/m68k/movem-offset.d: New. --- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/m68k/all.exp | 2 ++ gas/testsuite/gas/m68k/movem-offset.d | 14 ++++++++++++++ gas/testsuite/gas/m68k/movem-offset.s | 8 ++++++++ opcodes/ChangeLog | 4 ++++ opcodes/m68k-opc.c | 8 ++++---- 6 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 gas/testsuite/gas/m68k/movem-offset.d create mode 100644 gas/testsuite/gas/m68k/movem-offset.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 605dd333e24..6c4e38fd483 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-10-24 Julian Brown + + * gas/m68k/all.exp (movem-offset): Add test. + * gas/m68k/movem-offset.s: New test. + * gas/m68k/movem-offset.d: New. + 2011-10-21 Andreas Krebbel * gas/s390/zarch-z10.d: Add CPUMF instructions. diff --git a/gas/testsuite/gas/m68k/all.exp b/gas/testsuite/gas/m68k/all.exp index bf06d4e7fcf..60352862d54 100644 --- a/gas/testsuite/gas/m68k/all.exp +++ b/gas/testsuite/gas/m68k/all.exp @@ -52,6 +52,8 @@ if { [istarget m68*-*-*] || [istarget fido*-*-*] } then { run_dump_test mcf-movsr run_dump_test mode5 run_dump_test mode5 "{name {cf}} {as {-mcpu=5200}}" + run_dump_test movem-offset + run_dump_test movem-offset "{name {cf}} {as {-mcpu=5485}}" run_dump_test mcf-mac run_dump_test mcf-emac run_dump_test mcf-coproc diff --git a/gas/testsuite/gas/m68k/movem-offset.d b/gas/testsuite/gas/m68k/movem-offset.d new file mode 100644 index 00000000000..6d2769cc849 --- /dev/null +++ b/gas/testsuite/gas/m68k/movem-offset.d @@ -0,0 +1,14 @@ +#name: movem-offset +#objdump: -d +#as: + +.*: file format .* + +Disassembly of section \.text: + +0+ <.text>: + 0: 4cee 047c ffe8 moveml %fp@\(-24\),%d2-%d6/%a2 + 6: 48ee 047c 0010 moveml %d2-%d6/%a2,%fp@\(16\) + c: 4cee 03ff ffe8 moveml %fp@\(-24\),%d0-%a1 + 12: 48ee 03ff 0010 moveml %d0-%a1,%fp@\(16\) + \.\.\. diff --git a/gas/testsuite/gas/m68k/movem-offset.s b/gas/testsuite/gas/m68k/movem-offset.s new file mode 100644 index 00000000000..f5f317d4239 --- /dev/null +++ b/gas/testsuite/gas/m68k/movem-offset.s @@ -0,0 +1,8 @@ + + | Check that non-zero displacements work for movem. + .text + movem.l -24(%a6),#1148 + movem.l #1148,16(%a6) + movem.l -24(%a6),%d0-%d7/%a0-%a1 + movem.l %d0-%d7/%a0-%a1,16(%a6) + .p2align 4 diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 2d4989c9ce6..0158cf19add 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2011-10-24 Julian Brown + + * m68k-opc.c (m68k_opcodes): Fix entries for ColdFire moveml. + 2011-10-21 Jan Glauber * s390-opc.txt: Add CPUMF instructions. diff --git a/opcodes/m68k-opc.c b/opcodes/m68k-opc.c index 94636689767..3c8310aa6ea 100644 --- a/opcodes/m68k-opc.c +++ b/opcodes/m68k-opc.c @@ -1553,10 +1553,10 @@ const struct m68k_opcode m68k_opcodes[] = {"moveml", 4, one(0044300), one(0177700), "#w>s", m68000up }, {"moveml", 4, one(0046300), one(0177700), "