This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/35363] Missing bit field coalescing optimization
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Feb 2008 18:44:59 -0000
- Subject: [Bug target/35363] Missing bit field coalescing optimization
- References: <bug-35363-9436@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-02-25 18:44 -------
I would expect the equivalent of
int tmp = a;
tmp &= 0x0030; // fix the mask to be correct, all bits of b3
tmp |= 2 | 3 | 8; // constant folded and properly shifted
a = tmp;
I still see three ORs for ppc64 and non-combined rlwimi ops for ppc32.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35363