[Bug tree-optimization/107765] missing (int)-(unsigned)int_val to just -int_val if int_val is known not to contain INT_MIN
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107765 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > (In reply to Andrew Pinski from comment #2) > > Patch posted: > > https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629018.html > > What I can do is extend: > https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629156.html > > To add the test the first patch has. That will remove the unneeded cast and > all. Oh and using expr_not_equal_to has the basic code really.
[Bug tree-optimization/107765] missing (int)-(unsigned)int_val to just -int_val if int_val is known not to contain INT_MIN
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107765 Andrew Pinski changed: What|Removed |Added URL|https://gcc.gnu.org/piperma | |il/gcc-patches/2023-Septemb | |er/629018.html | Keywords|patch | --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > Patch posted: > https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629018.html What I can do is extend: https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629156.html To add the test the first patch has. That will remove the unneeded cast and all.
[Bug tree-optimization/107765] missing (int)-(unsigned)int_val to just -int_val if int_val is known not to contain INT_MIN
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107765 --- Comment #3 from Andrew Pinski --- So I have decided to solve the original testcase differently.
[Bug tree-optimization/107765] missing (int)-(unsigned)int_val to just -int_val if int_val is known not to contain INT_MIN
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107765 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma ||il/gcc-patches/2023-Septemb ||er/629018.html Keywords||patch --- Comment #2 from Andrew Pinski --- Patch posted: https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629018.html
[Bug tree-optimization/107765] missing (int)-(unsigned)int_val to just -int_val if int_val is known not to contain INT_MIN
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107765 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug tree-optimization/107765] missing (int)-(unsigned)int_val to just -int_val if int_val is known not to contain INT_MIN
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107765 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2022-11-22 Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Confirmed.