correct some 68k/ColdFire problems
authorNick Clifton <nickc@redhat.com>
Wed, 6 Jun 2001 14:28:00 +0000 (14:28 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 6 Jun 2001 14:28:00 +0000 (14:28 +0000)
gas/ChangeLog
gas/config/tc-m68k.c
opcodes/ChangeLog
opcodes/m68k-dis.c
opcodes/m68k-opc.c

index b6b9191c7f2c36ed4b800d8e564a3fe7db94de56..514934055bbf90c2ced73d2e598f306768a981f6 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-06  Peter Jakubek <pjak@snafu.de>
+
+       * gas/config/tc-m68k.c (md_show_usage): Add all supported ColdFire
+       options to list (e.g. m5206e, m5307, m5407).
+
 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
 
        * config/tc-s390.h (TC_FORCE_RELOCATION): Always emit relocations
index 62382ecbb7debbf25e326b71ac7df37b9f03b27a..0d4cd23d4d6f21a03d44d987738406523a88a89e 100644 (file)
@@ -6887,9 +6887,9 @@ md_show_usage (stream)
   fprintf (stream, _("\
 680X0 options:\n\
 -l                     use 1 word for refs to undefined symbols [default 2]\n\
--m68000 | -m68008 | -m68010 | -m68020 | -m68030 | -m68040 | -m68060\n\
- | -m68302 | -m68331 | -m68332 | -m68333 | -m68340 | -m68360\n\
- | -mcpu32 | -m5200\n\
+-m68000 | -m68008 | -m68010 | -m68020 | -m68030 | -m68040 | -m68060 |\n\
+-m68302 | -m68331 | -m68332 | -m68333 | -m68340 | -m68360 | -mcpu32 |\n\
+-m5200  | -m5202  | -m5204  | -m5206  | -m5206e | -m5307  | -m5407\n\
                        specify variant of 680X0 architecture [default 68020]\n\
 -m68881 | -m68882 | -mno-68881 | -mno-68882\n\
                        target has/lacks floating-point coprocessor\n\
index 13e3be74557f3aca0ba4bbbbaae9546a85a3e26e..cb09a71a6885ca6de938f680072523b30ad7112f 100644 (file)
@@ -1,3 +1,9 @@
+2001-06-06  Peter Jakubek <pjak@snafu.de>
+
+       * opcodes/m68k-dis.c (print_insn_m68k): Fix typo.
+       * opcodes/m68k-opc.c (m68k_opcodes): Correct allowed operands for
+       mcf (ColdFire) div, rem and moveb instructions.
+
 2001-06-06  Alan Modra  <amodra@bigpond.net.au>
 
        * i386-dis.c (cond_jump_flag, loop_jcxz_flag): Define.
index 589fe14f44d50745bd610d055f6dbd321543a84f..fd7d912aec11bd35ac23d7780c913ad7d3b88dc6 100644 (file)
@@ -268,7 +268,7 @@ print_insn_m68k (memaddr, info)
       arch_mask = mcf5206e;
       break;
     case bfd_mach_mcf5307:
-      arch_mask = mcf5407;
+      arch_mask = mcf5307;
       break;
     case bfd_mach_mcf5407:
       arch_mask = mcf5407;
index e512e205c06df8702cd38c52fcbf3d30309e5d6f..70b058532068c390adb17a7781f41feb3220a332 100644 (file)
@@ -305,22 +305,20 @@ const struct m68k_opcode m68k_opcodes[] =
 {"dbvc",       one(0054310),   one(0177770), "DsBw", m68000up },
 {"dbvs",       one(0054710),   one(0177770), "DsBw", m68000up },
 
-{"divsw",      one(0100700),   one(0170700), ";wDd", m68000up },
-{"divsw",      one(0100700),   one(0170700), "vsDd", mcf5307up | mcf5206e },
+{"divsw",      one(0100700),   one(0170700), ";wDd", m68000up | mcf5307up | mcf5206e },
 
 {"divsl", two(0046100,0006000),two(0177700,0107770),";lD3D1", m68020up|cpu32 },
 {"divsl", two(0046100,0004000),two(0177700,0107770),";lDD",   m68020up|cpu32 },
-{"divsl", two(0046100,0004000),two(0177700,0107770),"vsDD",   mcf5307up | mcf5206e },
+{"divsl", two(0046100,0004000),two(0177700,0107770),"qsDD",   mcf5307up | mcf5206e },
 
 {"divsll", two(0046100,0004000),two(0177700,0107770),";lD3D1",m68020up|cpu32 },
 {"divsll", two(0046100,0004000),two(0177700,0107770),";lDD",  m68020up|cpu32 },
 
-{"divuw",      one(0100300),           one(0170700), ";wDd", m68000up },
-{"divuw",      one(0100300),           one(0170700), "vsDd", mcf5307up | mcf5206e },
+{"divuw",      one(0100300),           one(0170700), ";wDd", m68000up | mcf5307up | mcf5206e },
 
 {"divul", two(0046100,0002000),two(0177700,0107770),";lD3D1", m68020up|cpu32 },
 {"divul", two(0046100,0000000),two(0177700,0107770),";lDD",   m68020up|cpu32 },
-{"divul", two(0046100,0000000),two(0177700,0107770),"vsDD",   mcf5307up | mcf5206e },
+{"divul", two(0046100,0000000),two(0177700,0107770),"qsDD",   mcf5307up | mcf5206e },
 
 {"divull", two(0046100,0000000),two(0177700,0107770),";lD3D1",m68020up|cpu32 },
 {"divull", two(0046100,0000000),two(0177700,0107770),";lDD",  m68020up|cpu32 },
@@ -1340,9 +1338,15 @@ const struct m68k_opcode m68k_opcodes[] =
 
 /* The move opcode can generate the movea and moveq instructions.  */
 {"moveb",      one(0010000),   one(0170000), ";b$d", m68000up },
-{"moveb",      one(0010000),   one(0170000), "ms%d", mcf },
-{"moveb",      one(0010000),   one(0170000), "nspd", mcf },
-{"moveb",      one(0010000),   one(0170000), "obmd", mcf },
+{"moveb",      one(0010000),   one(0170070), "Ds$d", mcf },
+{"moveb",      one(0010020),   one(0170070), "as$d", mcf },
+{"moveb",      one(0010030),   one(0170070), "+s$d", mcf },
+{"moveb",      one(0010040),   one(0170070), "-s$d", mcf },
+{"moveb",      one(0010000),   one(0170000), "nsqd", mcf },
+{"moveb",      one(0010000),   one(0170700), "obDd", mcf },
+{"moveb",      one(0010200),   one(0170700), "obad", mcf },
+{"moveb",      one(0010300),   one(0170700), "ob+d", mcf },
+{"moveb",      one(0010400),   one(0170700), "ob-d", mcf },
 {"moveb",      one(0010000),   one(0170000), "obnd", mcf5407 },
 
 {"movew",      one(0030000),   one(0170000), "*w%d", m68000up },
@@ -1732,8 +1736,8 @@ const struct m68k_opcode m68k_opcodes[] =
 {"pvalid",     two(0xf000, 0x2c00),    two(0xffc0, 0xfff8), "A3&s", m68851 },
 
   /* FIXME: don't allow Dw==Dx. */
-{"remsl",       two(0x4c40, 0x0800),    two(0xffc0, 0x8ff8), "vsD3D1", mcf5307up | mcf5206e },
-{"remul",       two(0x4c40, 0x0000),    two(0xffc0, 0x8ff8), "vsD3D1", mcf5307up | mcf5206e },
+{"remsl",       two(0x4c40, 0x0800),    two(0xffc0, 0x8ff8), "qsD3D1", mcf5307up | mcf5206e },
+{"remul",       two(0x4c40, 0x0000),    two(0xffc0, 0x8ff8), "qsD3D1", mcf5307up | mcf5206e },
 
 {"reset",      one(0047160),           one(0177777), "", m68000up },
 
This page took 0.062388 seconds and 4 git commands to generate.