[Bug tree-optimization/89475] Teach ccp about __builtin_bswap{16,32,64}

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Feb 23 20:35:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89475

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
x &= 0xaa55;
  x = __builtin_bswap16 (x);
  if (x & 0xaa55)


I think that should be:
x &= 0xaa55;
  x = __builtin_bswap16 (x);
  if (x & 0x55aa)

instead.


More information about the Gcc-bugs mailing list