From: Nick Clifton Date: Thu, 23 Oct 2003 08:26:19 +0000 (+0000) Subject: Add ColdFire test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68eb2996721f1da341160c06313b9bdc48df8c2f;p=binutils-gdb.git Add ColdFire test --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 0b33c0cd9d3..e1b85285bd0 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2003-10-23 Peter Barada + + * gas/m68k/mcf-mov3q.s: New file: Test some ColdFire instructions. + * gas/m68k/mcf-mov3q.s: New file: Expected disassembly. + * gas/m68k/all.exp: Run new test. + 2003-10-22 Andreas Schwab H.J. Lu diff --git a/gas/testsuite/gas/m68k/all.exp b/gas/testsuite/gas/m68k/all.exp index fb310835bda..d28f9f66a2d 100644 --- a/gas/testsuite/gas/m68k/all.exp +++ b/gas/testsuite/gas/m68k/all.exp @@ -34,6 +34,7 @@ if [istarget m68*-*-*] then { run_dump_test bitfield run_dump_test link run_dump_test fmoveml + run_dump_test mcf-mov3q set testname "68000 operands" gas_run "operands.s" "-m68000" "2>err.out" diff --git a/gas/testsuite/gas/m68k/mcf-mov3q.d b/gas/testsuite/gas/m68k/mcf-mov3q.d new file mode 100644 index 00000000000..64b94ef1e9b --- /dev/null +++ b/gas/testsuite/gas/m68k/mcf-mov3q.d @@ -0,0 +1,18 @@ +#name: mcf-mov3q +#objdump: -d --architecture=m68k:5407 +#as: -m5407 + +.*: file format .* + +Disassembly of section .text: + +00000000 : + 0: a140 mov3ql #-1,%d0 + 2: a349 mov3ql #1,%a1 + 4: a552 mov3ql #2,%a2@ + 6: a75b mov3ql #3,%a3@\+ + 8: a964 mov3ql #4,%a4@- + a: ab6d 04d2 mov3ql #5,%a5@\(1234\) + e: ad76 6803 mov3ql #6,%fp@\(00000003,%d6:l\) + 12: af78 1234 mov3ql #7,1234 (|<.data\+0x1218>) + 16: a179 1234 5678 mov3ql #-1,12345678 (|<.data\+0x1234565c>) diff --git a/gas/testsuite/gas/m68k/mcf-mov3q.s b/gas/testsuite/gas/m68k/mcf-mov3q.s new file mode 100644 index 00000000000..21d3415761e --- /dev/null +++ b/gas/testsuite/gas/m68k/mcf-mov3q.s @@ -0,0 +1,16 @@ +.text +|***************************************************************** +| Test all permutations of mov3q +|***************************************************************** + .global test_mov3q +test_mov3q: + mov3q.l #-1,%d0 | Mode 0 + mov3q.l #1,%a1 | Mode 1 + mov3q.l #2,(%a2) | Mode 2 + mov3q.l #3,(%a3)+ | Mode 3 + mov3q.l #4,-(%a4) | Mode 4 + mov3q.l #5,(1234,%a5) | Mode 5 + mov3q.l #6,(3,%a6,%d6) | Mode 6 + mov3q.l #7,0x1234.w | Mode 7.0 + mov3q.l #-1,0x12345678.l | Mode 7.1 +