This is the mail archive of the gcc@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: Insn canonicalization not only with constant


Hi Andrew,

You mean using a DI rotate left by 4 and then saving the output as SI (saving the hi part and ignoring the low one) ?

Also, how is canonicalization detected anyway? Are there rules that gcc follows? How can they be changed?

Sami

Andrew Pinski wrote:
output = (operand1 >> 28) | (operand2 << 4)

Isn't that a rotate? if so you can use either rotate or rotatert instead.


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