This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/22199] fold does not optimize (int)ABS_EXPR<(long long)(int_var)>
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Dec 2005 20:15:07 -0000
- Subject: [Bug tree-optimization/22199] fold does not optimize (int)ABS_EXPR<(long long)(int_var)>
- References: <bug-22199-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2005-12-24 20:15 -------
Hmm, actually this is not really valid to do except when -fwrapv is supplied as
(int)ABS_EXPR<(long long) 0x80000000 > is defined to be 0 but ABS_EXPR<
(int)0x80000000> is undefined.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22199