This is the mail archive of the
mailing list for the binutils project.
Re: powerpc regnames
- From: Andreas Schwab <schwab at suse dot de>
- To: Tristan Gingold <gingold at adacore dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 19 Oct 2007 11:04:37 +0200
- Subject: Re: powerpc regnames
- References: <910B3131-CE93-432B-A948-669A952F90A8@adacore.com>
Tristan Gingold <firstname.lastname@example.org> writes:
> when eabispe is used, gcc (head and for a long time) generates register
> names such as in:
> cror 4*%cr7+gt,4*%cr6+gt,4*%cr7+gt
> Unfortunately, gas (head and for a long time) doesn't like these register
> $ ../as-new -mspe -mregnames t.s
> t.s: Assembler messages:
> t.s:2: Error: bad expression
> t.s:2: Error: syntax error; found `c' but expected `,'
> t.s:2: Error: junk at end of line: `cr7+gt,4*%cr7+gt,4*%cr6+gt'
> The question is: who is right ?
> I suppose gcc is correct and gas has to be fixed. I anyone confirm I will
> work on a patch.
I think this is a bug in gcc, the '%' prefixes should not be there.
AFAIK the ppc assembler has never supported a register prefix, nor does
it need one.
Andreas Schwab, SuSE Labs, email@example.com
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."