summaryrefslogtreecommitdiffstats
path: root/gas/config/tc-ppc.c
diff options
context:
space:
mode:
authorPeter Bergner <bergner@vnet.ibm.com>2008-08-01 02:44:12 +0000
committerPeter Bergner <bergner@vnet.ibm.com>2008-08-01 02:44:12 +0000
commit3823320924933c184884f72d6a29710cd186d334 (patch)
treeff81ba2d199a13baa1753edbe53472755613b83d /gas/config/tc-ppc.c
parent6d76a53df9959a1b770a01b6ba0c190612d6cef9 (diff)
downloadppe42-binutils-3823320924933c184884f72d6a29710cd186d334.tar.gz
ppe42-binutils-3823320924933c184884f72d6a29710cd186d334.zip
gas/
* config/tc-ppc.c (parse_cpu) <power6>: Accept Altivec instructions. <cell>: Likewise. gas/testsuite/ * gas/ppc/cell.s: Add altivec instructions. * gas/ppc/cell.d: Update expected output. * gas/ppc/power6.d: New. * gas/ppc/power6.s: Likewise. * gas/ppc/ppc.exp (powerpc64*-*-*): Move cell from here to... (powerpc*-*-*): Here. Run power6 test.
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r--gas/config/tc-ppc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index b4a9e1dc52..bded5f35b6 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -932,13 +932,14 @@ parse_cpu (const char *arg)
{
ppc_cpu = (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC
| PPC_OPCODE_64 | PPC_OPCODE_POWER4
- | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6);
+ | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6
+ | PPC_OPCODE_ALTIVEC);
}
else if (strcmp (arg, "cell") == 0)
{
ppc_cpu = (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC
| PPC_OPCODE_64 | PPC_OPCODE_POWER4
- | PPC_OPCODE_CELL);
+ | PPC_OPCODE_CELL | PPC_OPCODE_ALTIVEC);
}
/* -mcom means assemble for the common intersection between Power
and PowerPC. At present, we just allow the union, rather
OpenPOWER on IntegriCloud