[Bug tree-optimization/97690] (cond ? 2 : 0) is not optimized to int(cond) << 1

2021-06-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97690 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/97690] (cond ? 2 : 0) is not optimized to int(cond) << 1

2021-05-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97690 Andrew Pinski changed: What|Removed |Added CC||pawel_sikora at zoho dot com ---

[Bug tree-optimization/97690] (cond ? 2 : 0) is not optimized to int(cond) << 1

2020-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97690 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:3e190757fa332d327bee27495f37beb01155cfab commit r11-4717-g3e190757fa332d327bee27495f37beb01155cfab Author: Jakub Jelinek Date:

[Bug tree-optimization/97690] (cond ? 2 : 0) is not optimized to int(cond) << 1

2020-11-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97690 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug tree-optimization/97690] (cond ? 2 : 0) is not optimized to int(cond) << 1

2020-11-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97690 Richard Biener changed: What|Removed |Added Last reconfirmed||2020-11-03 Ever confirmed|0

[Bug tree-optimization/97690] (cond ? 2 : 0) is not optimized to int(cond) << 1

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97690 --- Comment #2 from Jonathan Wakely --- More generally, Clang seems to reliably turn cond ? (2<

[Bug tree-optimization/97690] (cond ? 2 : 0) is not optimized to int(cond) << 1

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97690 --- Comment #1 from Jonathan Wakely --- It seems to be target-independent. For aarch64, -O3 and -Os both give: f(bool): tst w0, 255 csetw0, ne lsl w0, w0, 1 ret g(bool): ubfiz w0, w0, 1, 8