[Bug target/81015] Bad codegen for __builtin_clz(unsigned short)

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jun 8 07:56:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81015

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-06-08
           Assignee|unassigned at gcc dot gnu.org      |ubizjak at gmail dot com
   Target Milestone|---                         |7.2
     Ever confirmed|0                           |1

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Introduced by the following commit:

2016-12-14  Uros Bizjak  <ubizjak@gmail.com>

        PR target/59874
        * config/i386/i386-builtin.def: Add __builtin_clzs and __builtin_ctzs.
        (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
        * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
        (*clzhi2): Ditto.

ctzhi2 and clzhi2 patterns are wrong and this part should be reverted.


More information about the Gcc-bugs mailing list