[Bug tree-optimization/104376] Failure to optimize clz equivalent to clz

2023-10-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104376 Bug 104376 depends on bug 101822, which changed state. Bug 101822 Summary: Codegen bug for popcount https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101822 What|Removed |Added --

[Bug tree-optimization/104376] Failure to optimize clz equivalent to clz

2023-10-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104376 --- Comment #9 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:0fc13e8c0e39c51e82deb93f324d9d86ad8d7460 commit r14-4889-g0fc13e8c0e39c51e82deb93f324d9d86ad8d7460 Author: Andrew Pinski Date: Su

[Bug tree-optimization/104376] Failure to optimize clz equivalent to clz

2023-10-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104376 --- Comment #8 from Andrew Pinski --- Created attachment 56117 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56117&action=edit Patch which I am testing to fix the second issue

[Bug tree-optimization/104376] Failure to optimize clz equivalent to clz

2023-10-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104376 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #7 from Andrew Pin

[Bug tree-optimization/104376] Failure to optimize clz equivalent to clz

2023-05-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104376 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|NEW Depends on|

[Bug tree-optimization/104376] Failure to optimize clz equivalent to clz

2022-02-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104376 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/104376] Failure to optimize clz equivalent to clz

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

[Bug tree-optimization/104376] Failure to optimize clz equivalent to clz

2022-02-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104376 Andrew Pinski changed: What|Removed |Added Depends on||104378 --- Comment #3 from Andrew Pinsk

[Bug tree-optimization/104376] Failure to optimize clz equivalent to clz

2022-02-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104376 --- Comment #2 from Andrew Pinski --- The second issue can be seen with: #include uint32_t countLeadingZeros32(uint32_t x) { if (x == 0) return 32; return (__builtin_clz(x)) ; } This gets optimized for aarch64 at the rtl level

[Bug tree-optimization/104376] Failure to optimize clz equivalent to clz

2022-02-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104376 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Last reconfirmed|