This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [PATCH, i386]: Introduce Yp register constraint and merge *_lea add ans ashift patterns with base


On 08/23/11 22:23, Uros Bizjak wrote:
> On Tue, Aug 23, 2011 at 10:04 PM, Richard Henderson <rth@redhat.com> wrote:
> 
>>>       * config/i386/constraints.md (Yp): New register constraint.
>>>       * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
>>>       Yp register constraint.
>>>       (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
>>>       (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
>>>       (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
>>
>> You can still make use of attribute enabled...
> 
> Yes, I am aware of this attribute, but OTOH, I propose that we use it
> for ISA changes and don't mix everything together.

You could have sub-attributes, "isa_enabled" and "tuning_enabled", which
are then anded together.


Bernd


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