diff options
author | Nick Clifton <nickc@redhat.com> | 2003-10-23 08:26:19 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-10-23 08:26:19 +0000 |
commit | 68eb2996721f1da341160c06313b9bdc48df8c2f (patch) | |
tree | 9daf86bf28a96e74c2edb565ebaa94b9ae27e7d5 /gas | |
parent | fcd182f9d6e151185d8c00dd1a14ea8b13191da9 (diff) | |
download | gdb-68eb2996721f1da341160c06313b9bdc48df8c2f.zip gdb-68eb2996721f1da341160c06313b9bdc48df8c2f.tar.gz gdb-68eb2996721f1da341160c06313b9bdc48df8c2f.tar.bz2 |
Add ColdFire test
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/all.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/mcf-mov3q.d | 18 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/mcf-mov3q.s | 16 |
4 files changed, 41 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 0b33c0c..e1b8528 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2003-10-23 Peter Barada <pbarada@mail.wm.sps.mot.com> + + * 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 <schwab@suse.de> H.J. Lu <hongjiu.lu@intel.com> diff --git a/gas/testsuite/gas/m68k/all.exp b/gas/testsuite/gas/m68k/all.exp index fb31083..d28f9f6 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 0000000..64b94ef --- /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 <test_mov3q>: + 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 (<test_mov3q\+0x1234>|<.data\+0x1218>) + 16: a179 1234 5678 mov3ql #-1,12345678 (<test_mov3q\+0x12345678>|<.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 0000000..21d3415 --- /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 + |