re PR target/71019 (AVX512BW instructions emitted even without AVX512BW)
authorJakub Jelinek <jakub@redhat.com>
Thu, 12 May 2016 08:33:14 +0000 (10:33 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 12 May 2016 08:33:14 +0000 (10:33 +0200)
commitbc27ffae1b62831da78acb0362ed0dcabb1f3f1c
tree815d489297b9866137d53839b25606a1e6d0a19c
parent515d7412eaa983bccaf84ed970c98978a5a1e168
re PR target/71019 (AVX512BW instructions emitted even without AVX512BW)

PR target/71019
* config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
<sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
is not emitted unless TARGET_AVX512BW.
(<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
for the result operand.

* gcc.target/i386/avx512vl-pack-1.c: New test.
* gcc.target/i386/avx512vl-pack-2.c: New test.
* gcc.target/i386/avx512bw-pack-2.c: New test.

From-SVN: r236163
gcc/ChangeLog
gcc/config/i386/sse.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx512bw-pack-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512vl-pack-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512vl-pack-2.c [new file with mode: 0644]