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][ARM] NEON DImode not


On 01/03/12 12:57, Andrew Stubbs wrote:
> On Wed 29 Feb 2012 18:00:19 GMT, Richard Earnshaw wrote:
>> Why can't we have a single insn that deals with the have-neon and
>> dont-have-neon cases?
> 
> Sorry, I'm not sure I follow?
> 
> There's one insn for the have-neon case, and one for the 
> don't-have-neon. The expander is necessary to prevent gen_one_cmpldi2 
> locking recog to a disabled pattern (it caches the recog result, I think).
> 
> It would be possible to have the arm.md insn emit NEON instructions, but 
> that's not the usual practice, I think? The neon.md isns could also emit 
> arm/thumb2 instructions, but there's no real point since there are 
> already two different splitters for that.
> 
> Andrew
> 
The RTL part of one_cmpldi2_internal and one_cmpldi2_neon are the same.
 Given that we now have controls to determine when an alternative is
enabled it's generally better to have just one pattern here and turn on
the alternatives that are suitable rather than having multiple patterns.

You're already half doing this with the nota8 and onlya8 controls.

R.


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