re PR target/85317 (missing constant propagation on _mm(256)_movemask_*)
authorJakub Jelinek <jakub@redhat.com>
Tue, 8 May 2018 12:04:25 +0000 (14:04 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 8 May 2018 12:04:25 +0000 (14:04 +0200)
commitac6818591810af25dc9f91d28230f30494e22a71
treef1c573764cf75284b321e9edccac4b0a132b8a34
parent294c6f66373d29a9300a414fab24f1eefb473ccf
re PR target/85317 (missing constant propagation on _mm(256)_movemask_*)

PR target/85317
* config/i386/i386.c (ix86_fold_builtin): Handle
IX86_BUILTIN_{,P}MOVMSK{PS,PD,B}{,128,256}.

* gcc.target/i386/pr85317.c: New test.
* gcc.target/i386/avx2-vpmovmskb-2.c (avx2_test): Add asm volatile
optimization barrier to avoid optimizing away the expected insn.

From-SVN: r260040
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx2-vpmovmskb-2.c
gcc/testsuite/gcc.target/i386/pr85317.c [new file with mode: 0644]