summaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorPeter Bergner <bergner@vnet.ibm.com>2009-01-09 18:50:58 +0000
committerPeter Bergner <bergner@vnet.ibm.com>2009-01-09 18:50:58 +0000
commit1cb0a7674666a4beff8f5f76f4392051ea649a82 (patch)
treef0ef04051c758472bd4e93077092aacd2e7819ff /gas
parent87f707814cb2289f4178999975b54ab5e736eecc (diff)
downloadbinutils-gdb-1cb0a7674666a4beff8f5f76f4392051ea649a82.tar.gz
gas/
* config/tc-ppc.c (ppc_setup_opcodes): Remove PPC_OPCODE_NOPOWER4 test. Test the new "deprecated" opcode field. include/opcode/ * ppc.h (struct powerpc_opcode): New field "deprecated". (PPC_OPCODE_NOPOWER4): Delete. opcodes/ * ppc-opc.c (PPCNONE): Define. (NOPOWER4): Delete. (powerpc_opcodes): Initialize the new "deprecated" field.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-ppc.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 0630b313cce..1d602c00a3b 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-09 Peter Bergner <bergner@vnet.ibm.com>
+
+ * config/tc-ppc.c (ppc_setup_opcodes): Remove PPC_OPCODE_NOPOWER4 test.
+ Test the new "deprecated" opcode field.
+
2009-01-07 Sterling Augustine <sterling@tensilica.com>
* config/tc-xtensa.c (produce_flix): New.
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index cf67a01a477..66a21155c94 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -1412,8 +1412,7 @@ ppc_setup_opcodes (void)
|| ((op->flags & (PPC_OPCODE_32 | PPC_OPCODE_64))
== (ppc_cpu & (PPC_OPCODE_32 | PPC_OPCODE_64)))
|| (ppc_cpu & PPC_OPCODE_64_BRIDGE) != 0)
- && ((ppc_cpu & PPC_OPCODE_POWER4) == 0
- || (op->flags & PPC_OPCODE_NOPOWER4) == 0))
+ && !(ppc_cpu & op->deprecated))
{
const char *retval;