summaryrefslogtreecommitdiffstats
path: root/gas/config
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-10-16 11:10:22 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-10-16 11:10:22 +0000
commitb6b8f91187ca0a66b8e29240ea7d5ffddee2ccbc (patch)
treeb30269ea273d1013f8af7be8eba3f4b63141942a /gas/config
parent27ec941d726838cb0e9ee94d6f68118abeb5e608 (diff)
downloadppe42-binutils-b6b8f91187ca0a66b8e29240ea7d5ffddee2ccbc.tar.gz
ppe42-binutils-b6b8f91187ca0a66b8e29240ea7d5ffddee2ccbc.zip
Allow duplicate cmp instructions for -mcom
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-ppc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index bda925c8e2..4e58853473 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
OpenPOWER on IntegriCloud