]> git.ipfire.org Git - thirdparty/gcc.git/commit
Support andn_optab for x86
authorCui, Lili <lili.cui@intel.com>
Thu, 17 Oct 2024 00:50:38 +0000 (08:50 +0800)
committerCui, Lili <lili.cui@intel.com>
Thu, 17 Oct 2024 00:58:02 +0000 (08:58 +0800)
commit70f59d2a1c51bde085d8fc7df002918851e76c9c
treeb14bf877372113fb0e23562fb3faf423b2755765
parent72ae35bbc90fea3bb0084187896b783c1451fd22
Support andn_optab for x86

Add new andn pattern to match the new optab added by
r15-1890-gf379596e0ba99d. Only enable 64bit, 128bit and
256bit vector ANDN, X86-64 has mask mov instruction when
avx512 is enabled.

gcc/ChangeLog:

* config/i386/sse.md (andn<mode>3): New.
* config/i386/mmx.md (andn<mode>3): New.

gcc/testsuite/ChangeLog:

* g++.target/i386/vect-cmp.C: New test.
gcc/config/i386/mmx.md
gcc/config/i386/sse.md
gcc/testsuite/g++.target/i386/vect-cmp.C [new file with mode: 0644]