This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug target/17731] sub-optimal code generated for left shift
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 29 Sep 2004 18:14:10 -0000
- Subject: [Bug target/17731] sub-optimal code generated for left shift
- References: <20040929175802.17731.tromey@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-29 18:14 -------
Then the easy way to do that would add a pattern in the machine description for
(ashift:SI () (and:SI () (const_int 31 [0x1f])))
and let combine do its job but note we are masking 4 bits and not 5 out so we still will get different
answers than what we are expecting.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|java |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17731