This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: powerpc regnames
On Oct 19, 2007, at 11:04 AM, Andreas Schwab wrote:
Tristan Gingold <gingold@adacore.com> writes:
Hi,
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
[...]
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.
I am confused by your answer. Usually '%' prefixed registers work
well, eg:
$ ../as-new -mregnames t1.s
$ cat t1.s
.text
stwu %r1,-24(%r1)
(You of course need to use -mregnames).
However in the previous case (cror 4*%cr7+gt,4*%cr6+gt,4*%cr7+gt) it
doesn't work
because %cr7 is part of an expression and not recognized in this case
(as
opposed to 'gt' which is always emitted by gcc).
Tristan.