[Bug tree-optimization/83247] simplify (int)a_long < 0 when we know a_long fits in int

2023-08-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83247 Andrew Pinski changed: What|Removed |Added Depends on||110965 --- Comment #6 from Andrew

[Bug tree-optimization/83247] simplify (int)a_long < 0 when we know a_long fits in int

2023-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83247 --- Comment #5 from Andrew Pinski --- Some failures ... gnat.dg/opt86a.adb: pattern found 1 times FAIL: gnat.dg/opt86a.adb scan-tree-dump-times optimized ">>" 4 +FAIL: gnat.dg/opt86b.adb scan-tree-dump-not optimized "> 13" +FAIL:

[Bug tree-optimization/83247] simplify (int)a_long < 0 when we know a_long fits in int

2023-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83247 --- Comment #4 from Andrew Pinski --- Created attachment 55714 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55714=edit Patch which I am testing

[Bug tree-optimization/83247] simplify (int)a_long < 0 when we know a_long fits in int

2023-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83247 --- Comment #3 from Andrew Pinski --- This was literally 4 lines which needed to change now. The use of range_of_expr inside simplify_casted_compare just needed to be passed the statement and that fixed it

[Bug tree-optimization/83247] simplify (int)a_long < 0 when we know a_long fits in int

2023-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83247 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug tree-optimization/83247] simplify (int)a_long < 0 when we know a_long fits in int

2021-08-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83247 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0