This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Hookize SMALL_REGISTER_CLASSES
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Toon Moene <toon at moene dot org>
- Cc: Uros Bizjak <ubizjak at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Richard Guenther <richard dot guenther at gmail dot com>
- Date: Mon, 3 May 2010 21:39:54 +0200
- Subject: Re: [patch] Hookize SMALL_REGISTER_CLASSES
- References: <4BDF240D.7060703@gmail.com> <4BDF2652.2040208@moene.org>
2010/5/3 Toon Moene <toon@moene.org>:
> On 05/03/2010 09:29 PM, Uros Bizjak wrote:
>
>> As mentioned elsewhere, all registers can be accessed as 8bit or 16bit
>> in addition to 32bit and 64bit on x86_64.
>
> I tend to agree. ?What about having the hook be:
>
>> + ?/* On 32-bits x86, all register classes are considered small. ?*/
>> + ?if (! TARGET_64BIT)
>> + ? ?return true;
>> + ?else
>> + ? ?return false;
>
> ?
And here I was fearing I was too optimistic with my conservative
approach. But fine by me, if it works ;-)
Ciao!
Steven