re PR target/81015 (Bad codegen for __builtin_clz(unsigned short))
authorUros Bizjak <uros@gcc.gnu.org>
Thu, 8 Jun 2017 17:28:19 +0000 (19:28 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 8 Jun 2017 17:28:19 +0000 (19:28 +0200)
commit2163b9bcc627eb42ba5e629e54567b9f106e2f32
tree938c57531bc5aee0732892fc3d3b276a8368af03
parent73f49ad74377e14a9cf0886b3539eeace2111428
re PR target/81015 (Bad codegen for __builtin_clz(unsigned short))

PR target/81015
Revert:
2016-12-14  Uros Bizjak  <ubizjak@gmail.com>

PR target/59874
* config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
(*clzhi2): Ditto.

testsuite/ChangeLog:

PR target/81015
* gcc.target/i386/pr59874-1.c (foo): Call __builtin_ctzs.
* gcc.target/i386/pr59874-2.c (foo): Call __builtin_clzs.
* gcc.target/i386/pr81015.c: New test.

From-SVN: r249028
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr59874-1.c
gcc/testsuite/gcc.target/i386/pr59874-2.c
gcc/testsuite/gcc.target/i386/pr81015.c [new file with mode: 0644]