Redundant logical operations left after early splitting

Andy H hutchinsonandy@aim.com
Thu Feb 21 14:41:00 GMT 2008


I very grateful for your help and wisdom

Testcase and MD Patch attached


unsigned long f (unsigned char  *P)
{
  unsigned long C;
  C  = ((unsigned long)P[1] << 24)
     | ((unsigned long)P[2] << 16)
     | ((unsigned long)P[3] <<  8)
     | ((unsigned long)P[4] <<  0);
  return C;
}




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: avrmd.diff
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20080221/86718e59/attachment.ksh>


More information about the Gcc mailing list