This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Insn canonicalization not only with constant
- From: Sami Khawam <S dot Khawam at ee dot ed dot ac dot uk>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 15 Feb 2007 17:38:55 +0000
- Subject: Re: Insn canonicalization not only with constant
- References: <200702142117.l1ELHccU029982@localhost.localdomain>
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.