mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
Allow duplicate cmp instructions for -mcom
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Mon Oct 16 07:07:37 1995 Michael Meissner <meissner@wogglebug.tiac.net>
|
||||||
|
|
||||||
|
* config/tc-ppc.c (md_begin): Take -mcom into account for
|
||||||
|
duplicate cmp instructions.
|
||||||
|
|
||||||
Sun Oct 15 22:06:14 1995 Michael Meissner <meissner@cygnus.com>
|
Sun Oct 15 22:06:14 1995 Michael Meissner <meissner@cygnus.com>
|
||||||
|
|
||||||
* config/tc-ppc.c (md_parse_option): Support for -mcom to turn on
|
* config/tc-ppc.c (md_parse_option): Support for -mcom to turn on
|
||||||
|
@ -755,14 +755,13 @@ md_begin ()
|
|||||||
601 and a different value on other PowerPC
|
601 and a different value on other PowerPC
|
||||||
processors. It's easier to permit a duplication than
|
processors. It's easier to permit a duplication than
|
||||||
to define a new instruction type flag. When using
|
to define a new instruction type flag. When using
|
||||||
-many, the comparison instructions are a harmless
|
-many/-mcom, the comparison instructions are a harmless
|
||||||
special case. */
|
special case. */
|
||||||
if (strcmp (retval, "exists") != 0
|
if (strcmp (retval, "exists") != 0
|
||||||
|| (((ppc_cpu & PPC_OPCODE_601) == 0
|
|| (((ppc_cpu & PPC_OPCODE_601) == 0
|
||||||
|| strcmp (op->name, "mfdec") != 0)
|
|| strcmp (op->name, "mfdec") != 0)
|
||||||
&& (ppc_cpu != (PPC_OPCODE_POWER
|
&& (((ppc_cpu & ~PPC_OPCODE_POWER2)
|
||||||
| PPC_OPCODE_POWER2
|
== (PPC_OPCODE_POWER | PPC_OPCODE_PPC))
|
||||||
| PPC_OPCODE_PPC)
|
|
||||||
|| (strcmp (op->name, "cmpli") != 0
|
|| (strcmp (op->name, "cmpli") != 0
|
||||||
&& strcmp (op->name, "cmpi") != 0
|
&& strcmp (op->name, "cmpi") != 0
|
||||||
&& strcmp (op->name, "cmp") != 0
|
&& strcmp (op->name, "cmp") != 0
|
||||||
|
Reference in New Issue
Block a user