aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-05-19 07:02:14 +0000
committerAlan Modra <amodra@gmail.com>2005-05-19 07:02:14 +0000
commitb0648eec6148de0ae9cd7c1b099471624483277f (patch)
tree50dca4c80a4ddd91e4aa8bc241d972d86d4ff335 /gas/config
parent1ed8e1e4fb4ea5e9930be7ad5ccabd23bb6beccf (diff)
downloadgdb-b0648eec6148de0ae9cd7c1b099471624483277f.zip
gdb-b0648eec6148de0ae9cd7c1b099471624483277f.tar.gz
gdb-b0648eec6148de0ae9cd7c1b099471624483277f.tar.bz2
* config/tc-ppc.c (parse_cpu): Handle "-mpower5".
(md_show_usage): Document it. (ppc_setup_opcodes): Insert POWER5 mnemonics. * doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-ppc.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index d7eb9f6..e5fc2d0 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -906,6 +906,12 @@ parse_cpu (const char *arg)
ppc_cpu = (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC
| PPC_OPCODE_64 | PPC_OPCODE_POWER4);
}
+ else if (strcmp (arg, "power5") == 0)
+ {
+ ppc_cpu = (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC
+ | PPC_OPCODE_64 | PPC_OPCODE_POWER4
+ | PPC_OPCODE_POWER5);
+ }
/* -mcom means assemble for the common intersection between Power
and PowerPC. At present, we just allow the union, rather
than the intersection. */
@@ -1100,6 +1106,7 @@ PowerPC options:\n\
-mbooke64 generate code for 64-bit PowerPC BookE\n\
-mbooke, mbooke32 generate code for 32-bit PowerPC BookE\n\
-mpower4 generate code for Power4 architecture\n\
+-mpower5 generate code for Power5 architecture\n\
-mcom generate code Power/PowerPC common instructions\n\
-many generate code for any architecture (PWR/PWRX/PPC)\n"));
fprintf (stream, _("\
@@ -1255,7 +1262,10 @@ ppc_setup_opcodes (void)
|| (ppc_cpu & PPC_OPCODE_BOOKE) == 0)
&& ((op->flags & (PPC_OPCODE_POWER4 | PPC_OPCODE_NOPOWER4)) == 0
|| ((op->flags & PPC_OPCODE_POWER4)
- == (ppc_cpu & PPC_OPCODE_POWER4))))
+ == (ppc_cpu & PPC_OPCODE_POWER4)))
+ && ((op->flags & PPC_OPCODE_POWER5) == 0
+ || ((op->flags & PPC_OPCODE_POWER5)
+ == (ppc_cpu & PPC_OPCODE_POWER5))))
{
const char *retval;