re PR target/85832 ([AVX512] possible shorter code when comparing with vector of...
authorJakub Jelinek <jakub@redhat.com>
Fri, 25 May 2018 12:36:03 +0000 (14:36 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 25 May 2018 12:36:03 +0000 (14:36 +0200)
commitb55f342bdd8bec16b727a5889c589dd85c5ca3c3
treeb8c50ed8706218048b0b1b202e265706550cc1ef
parent8e846c6670b85cd69a5760a604d8f9ce0dbc3730
re PR target/85832 ([AVX512] possible shorter code when comparing with vector of zeros)

PR target/85832
* config/i386/sse.md (<avx512>_eq<mode>3<mask_scalar_merge_name>_1):
Add (=Yk,v,C) variant using vptestm insn.  Use TARGET_AVX512BW
in test instead of TARGET_AVX512F for VI12_AVX512VL iterator.

* gcc.target/i386/avx512f-pr85832.c: New test.
* gcc.target/i386/avx512vl-pr85832.c: New test.
* gcc.target/i386/avx512bw-pr85832.c: New test.
* gcc.target/i386/avx512vlbw-pr85832.c: New test.

From-SVN: r260756
gcc/ChangeLog
gcc/config/i386/sse.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx512bw-pr85832.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512f-pr85832.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512vl-pr85832.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512vlbw-pr85832.c [new file with mode: 0644]