re PR target/85177 (wrong code with -O -fno-tree-ccp -fno-tree-sra -mavx512f)
authorJakub Jelinek <jakub@redhat.com>
Tue, 10 Apr 2018 12:37:36 +0000 (14:37 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 10 Apr 2018 12:37:36 +0000 (14:37 +0200)
commit56f1cb3fb94ab8f8335a45302bbc332634e65465
treee79b0c1b74e78f39352dd2843d10bc7d604f3a71
parenteb38d071636da1ea2d0f9a068c86c7ceee2634b2
re PR target/85177 (wrong code with -O -fno-tree-ccp -fno-tree-sra -mavx512f)

PR target/85177
PR target/85255
* config/i386/sse.md
(<extract_type>_vinsert<shuffletype><extract_suf>_mask): Fix
computation of the VEC_MERGE selector from mask.
(<extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>):
Fix decoding of the VEC_MERGE selector into mask.

* gcc.target/i386/avx512f-pr85177.c: New test.
* gcc.target/i386/avx512f-pr85255.c: New test.

From-SVN: r259269
gcc/ChangeLog
gcc/config/i386/sse.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx512f-pr85177.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512f-pr85255.c [new file with mode: 0644]