]> git.ipfire.org Git - thirdparty/gcc.git/commit
Also handle vptestnm + and15/and3 to just vptestnm.
authorliuhongt <hongtao.liu@intel.com>
Fri, 14 Nov 2025 03:59:08 +0000 (19:59 -0800)
committerliuhongt <hongtao.liu@intel.com>
Tue, 18 Nov 2025 02:44:12 +0000 (18:44 -0800)
commit594dc80c8e49cb65f77a13c201a0bea9423329ec
tree90a7c068cf46655bd8515b60d53bb9afede3861b
parent0aac01bfa6ea1384bf5cf0de87a52bd9fb9ab37c
Also handle vptestnm + and15/and3 to just vptestnm.

r16-1298-gcdfa5fe03512f7 optimizes vpcmp + and15/and3 to vpcmp when VF
is 2 or 4. vptestnm is a variant of vpcmpeq which accepts
nonimm_or_0_operand. The patch handles that.

gcc/ChangeLog:

PR target/103750
* config/i386/sse.md (*<avx512>_eq<mode>3_and15): New
define_insn.
(*avx512vl_eqv2di_and3): Ditto.
* config/i386/i386.md (*ior<mode>_ccz_1): Fix the typo in the
comments above.

gcc/testsuite/ChangeLog:

* gcc.target/i386/avx512vl-pr103750-2.c: New test.
gcc/config/i386/i386.md
gcc/config/i386/sse.md
gcc/testsuite/gcc.target/i386/avx512vl-pr103750-2.c [new file with mode: 0644]