re PR target/65368 (_bzhi_u32 intrinsic generates incorrect code when -O1 or above...
authorJakub Jelinek <jakub@redhat.com>
Tue, 10 Mar 2015 21:03:21 +0000 (22:03 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 10 Mar 2015 21:03:21 +0000 (22:03 +0100)
commit2d977ff983f86b3f7b7c9f1cb5a479af75cd589e
treec87f415ef71f1c48e9b1ccc38f4e78d1b89918ac
parent48188959fd8a9bb1d7da833466f314210693bc11
re PR target/65368 (_bzhi_u32 intrinsic generates incorrect code when -O1 or above is specified and index is an immediate)

PR target/65368
* config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
new define_expand.
(*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.

* gcc.target/i386/bmi2-bzhi-2.c: New test.

From-SVN: r221335
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/bmi2-bzhi-2.c [new file with mode: 0644]