This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: altivec: fix register names
- To: Aldy Hernandez <aldyh at redhat dot com>
- Subject: Re: altivec: fix register names
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Fri, 09 Nov 2001 18:58:32 -0500
- cc: gcc patches <gcc-patches at gcc dot gnu dot org>
>>>>> Aldy Hernandez writes:
Aldy> the register names need to be "%v0", not "v0" by default. v0 should
Aldy> only be accessed through -mregnames.
Aldy> without the patch, you can't assemble any of the altivec code.
Aldy> 2001-11-09 Aldy Hernandez <aldyh@redhat.com>
Aldy> * config/rs6000/rs6000.c (rs6000_reg_names): Prepend % to altivec
Aldy> registers.
Why can't the default register name be an undecorated number
instead of prepending "v" or "%v"? I know its not pretty, but it is the
shortest and consistent with the GPRs and FPRs. Use -mregnames if you
want it to look pretty.
Thanks, David