[Bug tree-optimization/22199] fold does not optimize (int)ABS_EXPR<(long long)(int_var)>

2021-06-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22199

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |9.0

--- Comment #5 from Andrew Pinski  ---
Fixed with r9-1281 by the way.

[Bug tree-optimization/22199] fold does not optimize (int)ABS_EXPR<(long long)(int_var)>

2021-06-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22199

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED

--- Comment #4 from Andrew Pinski  ---
There is ABSU now.
Which we use now:
  a.0_1 = a;
  _2 = ABSU_EXPR ;
  _3 = (long int) _2;
  b.1_4 = b;

So fixed.

[Bug tree-optimization/22199] fold does not optimize (int)ABS_EXPR(long long)(int_var)

2005-12-24 Thread pinskia 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) 0x8000  is defined to be 0 but ABS_EXPR
(int)0x8000 is undefined.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22199



[Bug tree-optimization/22199] fold does not optimize (int)ABS_EXPR(long long)(int_var)

2005-09-24 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-24 
16:22 ---
Changing the summary to be more reflect what this bug is about.

-- 
   What|Removed |Added

OtherBugsDependingO||19987
  nThis||
   Last reconfirmed|2005-06-27 15:17:41 |2005-09-24 16:22:48
   date||
Summary|Unnecessary casts for   |fold does not optimize
   |comparison  |(int)ABS_EXPR(long
   ||long)(int_var)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22199