This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/63259] Detecting byteswap sequence
- From: "schwab at linux-m68k dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 14 Dec 2014 20:27:45 +0000
- Subject: [Bug rtl-optimization/63259] Detecting byteswap sequence
- Auto-submitted: auto-generated
- References: <bug-63259-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63259
--- Comment #8 from Andreas Schwab <schwab@linux-m68k.org> ---
(a & 0xFF00) >> 8 with short a = 0x8001 evaluates to 0x80, since all operands
are first promoted to int.