[Bug target/101175] builtin_clz generates wrong bsr instruction

2021-06-23 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101175 Uroš Bizjak changed: What|Removed |Added Target Milestone|--- |9.5 Status|ASSIGNED

[Bug target/101175] builtin_clz generates wrong bsr instruction

2021-06-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101175 --- Comment #8 from CVS Commits --- The releases/gcc-9 branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:9b997caa72498bc3a14a064648b721fe0f11945e commit r9-9603-g9b997caa72498bc3a14a064648b721fe0f11945e Author: Uros Bizjak Date:

[Bug target/101175] builtin_clz generates wrong bsr instruction

2021-06-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101175 --- Comment #7 from CVS Commits --- The releases/gcc-10 branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:ab383ecb4a45413fcc0012bc1791c094fe7fed29 commit r10-9955-gab383ecb4a45413fcc0012bc1791c094fe7fed29 Author: Uros Bizjak Date

[Bug target/101175] builtin_clz generates wrong bsr instruction

2021-06-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101175 --- Comment #6 from CVS Commits --- The releases/gcc-11 branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:e99256fc5eab1cf8958223d79b23e359b6d5ca60 commit r11-8644-ge99256fc5eab1cf8958223d79b23e359b6d5ca60 Author: Uros Bizjak Date

[Bug target/101175] builtin_clz generates wrong bsr instruction

2021-06-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101175 --- Comment #5 from CVS Commits --- The master branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:1e16f2b472c7d253d564556a048dc4ae16119c00 commit r12-1743-g1e16f2b472c7d253d564556a048dc4ae16119c00 Author: Uros Bizjak Date: Wed J

[Bug target/101175] builtin_clz generates wrong bsr instruction

2021-06-23 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101175 --- Comment #4 from Mikael Pettersson --- (In reply to Uroš Bizjak from comment #3) > (In reply to Mikael Pettersson from comment #2) > > (In reply to Iru Cai from comment #0) > > > Built with '-march=x86-64-v3 -O1', the following code generates

[Bug target/101175] builtin_clz generates wrong bsr instruction

2021-06-23 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101175 --- Comment #3 from Uroš Bizjak --- (In reply to Mikael Pettersson from comment #2) > (In reply to Iru Cai from comment #0) > > Built with '-march=x86-64-v3 -O1', the following code generates a bsr > > instruction, which has undefined behavior w

[Bug target/101175] builtin_clz generates wrong bsr instruction

2021-06-23 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101175 --- Comment #2 from Mikael Pettersson --- (In reply to Iru Cai from comment #0) > Built with '-march=x86-64-v3 -O1', the following code generates a bsr > instruction, which has undefined behavior when the source operand is zero, > thus gives wro

[Bug target/101175] builtin_clz generates wrong bsr instruction

2021-06-23 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101175 Uroš Bizjak changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com Last re