re PR target/78057 (FAIL: gcc.target/i386/bmi-{4,5,6}.c)
authorJakub Jelinek <jakub@redhat.com>
Fri, 21 Oct 2016 15:39:25 +0000 (17:39 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 21 Oct 2016 15:39:25 +0000 (17:39 +0200)
commit9c4c8b7bbbef7569b2bc9dedece5352c48a8701d
tree74daadf2a63f7fd077bd50e8034f9bfe05d0aa48
parentc05986b936078409c99a8eb4ce81e371323132d0
re PR target/78057 (FAIL: gcc.target/i386/bmi-{4,5,6}.c)

PR target/78057
* config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
and tree-ssanames.h.
(ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
with INTEGER_CST argument.
(ix86_gimple_fold_builtin): New function.
(TARGET_GIMPLE_FOLD_BUILTIN): Define.

* gcc.target/i386/pr78057.c: New test.

From-SVN: r241411
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr78057.c [new file with mode: 0644]