re PR rtl-optimization/87817 (gcc.target/i386/bmi2-bzhi-2.c execution test)
authorJakub Jelinek <jakub@redhat.com>
Wed, 14 Nov 2018 12:36:59 +0000 (13:36 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 14 Nov 2018 12:36:59 +0000 (13:36 +0100)
commit5bfba2b58ddb37c89e0633a2dc48fa8c4430a026
tree3301ff30b33aa7dca70e7973ded9ef79e67615d8
parentff4d8480403be6ab92e07f6981e7bfc04c3863c9
re PR rtl-optimization/87817 (gcc.target/i386/bmi2-bzhi-2.c execution test)

PR rtl-optimization/87817
* config/i386/i386.c (ix86_fold_builtin): For _bzhi_u{32,64} if
last argument has low 8 bits clear, fold to 0.

* gcc.target/i386/bmi2-bzhi-3.c (main): Add a couple of new tests.

From-SVN: r266140
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/bmi2-bzhi-3.c