From 3823320924933c184884f72d6a29710cd186d334 Mon Sep 17 00:00:00 2001 From: Peter Bergner Date: Fri, 1 Aug 2008 02:44:12 +0000 Subject: gas/ * config/tc-ppc.c (parse_cpu) : Accept Altivec instructions. : 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. --- gas/config/tc-ppc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gas/config') diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index b4a9e1d..bded5f3 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 -- cgit v1.1