[Bug tree-optimization/19788] Inconsistent handling of -1.

schlie at comcast dot net gcc-bugzilla@gcc.gnu.org
Mon Feb 7 01:11:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list