This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19788] Inconsistent handling of -1.
- From: "schlie at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Feb 2005 17:14:31 -0000
- Subject: [Bug tree-optimization/19788] Inconsistent handling of -1.
- References: <20050206131749.19788.kazu@cs.umass.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schlie at comcast dot net 2005-02-06 17:14 -------
(In reply to comment #1)
- as I'm curious as to what the "proper" interpretation/handling of
target dependant constant value casts should be; it seems that in
the provided example, the optimized transformations of 0xffffffff
to an (int)-1 intermediate value in bar & baz are consistent, assuming:
(((0xffffffff) >> ((sizeof(int) * BITS_PER_UNIT)) & 1)
however would have expected the comparison between a & b in baz
to have been optimized away; is this a reasonable expectation?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19788