[PATCH] Prefer reg as first operand in commutative operator

Paulo J. Matos paulo@matos-sorge.com
Tue Feb 14 15:32:00 GMT 2012


On 14/02/12 14:10, Jakub Jelinek wrote:
>
> It doesn't allow that, because the condition on the insn then fails,
> as neither operand 1 nor operand 2 is register_operand.
>
> 	Jakub
>


Oh!!!
I incorrectly read the instruction as I had initially tried it and I 
knew it was failing, however, I didn't have the predicate Paolo suggested.

I will give it a go. It does look good and it would avoid touching 	core 
GCC. :)

Thanks guys,

-- 
PMatos



More information about the Gcc-patches mailing list