This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PPC 7450 & dcba


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]