On Tue, Aug 23, 2011 at 10:04 PM, Richard Henderson <r...@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. I was thinking of
moving Y2, Y3 and Y4 out of register constraints to "enabled"
attribute, but they clashed with TARGET_AVX somehow.

So, at the end of the day, it was much easier to leave pre-AVX
register constraints as they were, while post-AVX and AVX-independent
ISAs should be handled via "enabled" attribute.

Uros.

Reply via email to