re PR target/88465 (AVX512: optimize loading of constant values to kN registers)
authorJakub Jelinek <jakub@redhat.com>
Thu, 13 Dec 2018 08:08:22 +0000 (09:08 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 13 Dec 2018 08:08:22 +0000 (09:08 +0100)
commit26b57b93b389a08b1328b577526e886f43a76476
treeff355b1d936ae7356f46b61c77fceffecf548990
parente00199d7b78ccff66112b17b8c9bb07f67f40e66
re PR target/88465 (AVX512: optimize loading of constant values to kN registers)

PR target/88465
* config/i386/i386.md (*movdi_internal, *movsi_internal,
*movhi_internal, *movqi_internal): Add alternative(s) to load
0 or -1 into k registers using kxor or kxnoq instructions.

* gcc.target/i386/avx512f-pr88465.c: New test.
* gcc.target/i386/avx512dq-pr88465.c: New test.

From-SVN: r267078
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx512dq-pr88465.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512f-pr88465.c [new file with mode: 0644]