Add ColdFire test
authorNick Clifton <nickc@redhat.com>
Thu, 23 Oct 2003 08:26:19 +0000 (08:26 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 23 Oct 2003 08:26:19 +0000 (08:26 +0000)
gas/testsuite/ChangeLog
gas/testsuite/gas/m68k/all.exp
gas/testsuite/gas/m68k/mcf-mov3q.d [new file with mode: 0644]
gas/testsuite/gas/m68k/mcf-mov3q.s [new file with mode: 0644]

index 0b33c0cd9d3b1b4787917772d662d69cb1974897..e1b85285bd055ff20dfd471e9bf63269b077c41e 100644 (file)
@@ -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>
 
index fb310835bdaa4dfc571a35dc4d7778bbc979251e..d28f9f66a2dca578ddfec66a3165e5b6247004bc 100644 (file)
@@ -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 (file)
index 0000000..64b94ef
--- /dev/null
@@ -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 (file)
index 0000000..21d3415
--- /dev/null
@@ -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
+