This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PPC 7450 & dcba
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: binutils <binutils at sources dot redhat dot com>
- Date: Thu, 5 Jul 2007 07:14:49 +0930
- Subject: Re: PPC 7450 & dcba
- References: <468BBC9E.8040204@codesourcery.com>
On Wed, Jul 04, 2007 at 04:28:30PM +0100, Nathan Sidwell wrote:
> Alan,
> the 7450 cores support the dcba instruction, but gas does not recognize
> that. the ppc opcode table marks dcba as:
>
> { "dcba", X(31,758), XRT_MASK, PPC405 | BOOKE, { RA, RB } },
>
> and gas's cpu parsing has:
>
> else if (strcmp (arg, "7400") == 0
> || strcmp (arg, "7410") == 0
> || strcmp (arg, "7450") == 0
> || strcmp (arg, "7455") == 0)
> ppc_cpu = (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC
> | PPC_OPCODE_ALTIVEC | PPC_OPCODE_32);
>
> AFAICT dcba is an oddity here. Should there be another PPC_OPCODE flag to
> indicate 7450? Or is there a better solution?
I'd be inclined to
#define PPC7450 PPC
{ "dcba", X(31,758), XRT_MASK, PPC405 | PPC7450 | BOOKE, { RA, RB } },
Properly enabling every instruction for each powerpc variant is a
daunting task. There are just too many variants.
--
Alan Modra
IBM Australia Development Laboratory