]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Disable ix86_expand_vecop_qihi2 when !TARGET_AVX512BW
authorHaochen Jiang <haochen.jiang@intel.com>
Tue, 21 May 2024 06:10:43 +0000 (14:10 +0800)
committerHaochen Jiang <haochen.jiang@intel.com>
Wed, 22 May 2024 02:25:13 +0000 (10:25 +0800)
commit73a167cfa225d5ee7092d41596b9fea1719898ff
tree7c399098dc15abbe4da587d11de8f82e54cc2bef
parentffab721f3c9ecbb9831844d844ad257b69a77993
i386: Disable ix86_expand_vecop_qihi2 when !TARGET_AVX512BW

Since vpermq is really slow, we should avoid using it for permutation
when vpmovwb is not available (needs AVX512BW) for ix86_expand_vecop_qihi2
and fall back to ix86_expand_vecop_qihi.

gcc/ChangeLog:

PR target/115069
* config/i386/i386-expand.cc (ix86_expand_vecop_qihi2):
Do not enable the optimization when AVX512BW is not enabled.

gcc/testsuite/ChangeLog:

PR target/115069
* gcc.target/i386/pr115069.c: New.
gcc/config/i386/i386-expand.cc
gcc/testsuite/gcc.target/i386/pr115069.c [new file with mode: 0644]