From: Michael Meissner Date: Mon, 16 Oct 1995 11:10:22 +0000 (+0000) Subject: Allow duplicate cmp instructions for -mcom X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6b8f91187ca0a66b8e29240ea7d5ffddee2ccbc;p=binutils-gdb.git Allow duplicate cmp instructions for -mcom --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 50303a50aca..67c108e5074 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 16 07:07:37 1995 Michael Meissner + + * config/tc-ppc.c (md_begin): Take -mcom into account for + duplicate cmp instructions. + Sun Oct 15 22:06:14 1995 Michael Meissner * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index bda925c8e2b..4e588534737 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -755,14 +755,13 @@ md_begin () 601 and a different value on other PowerPC processors. It's easier to permit a duplication than 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. */ if (strcmp (retval, "exists") != 0 || (((ppc_cpu & PPC_OPCODE_601) == 0 || strcmp (op->name, "mfdec") != 0) - && (ppc_cpu != (PPC_OPCODE_POWER - | PPC_OPCODE_POWER2 - | PPC_OPCODE_PPC) + && (((ppc_cpu & ~PPC_OPCODE_POWER2) + == (PPC_OPCODE_POWER | PPC_OPCODE_PPC)) || (strcmp (op->name, "cmpli") != 0 && strcmp (op->name, "cmpi") != 0 && strcmp (op->name, "cmp") != 0