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] Prefer reg as first operand in commutative operator


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


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