This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]