]> git.ipfire.org Git - thirdparty/gcc.git/commit
Adjust alternative *k to ?k for avx512 mask in zero_extend patterns
authorliuhongt <hongtao.liu@intel.com>
Tue, 16 Apr 2024 00:37:22 +0000 (08:37 +0800)
committerliuhongt <hongtao.liu@intel.com>
Sun, 28 Apr 2024 10:00:19 +0000 (18:00 +0800)
commitc19a674d03847b900919b97d0957c8ae5164f8f1
tree35b44371323a06bfe6b4e6097a8b7d6a61c91243
parentbc07fa6af54cc67f7fc85cc144f9686fad07f205
Adjust alternative *k to ?k for avx512 mask in zero_extend patterns

So when both source operand and dest operand require avx512 MASK_REGS, RA
can allocate MASK_REGS register instead of GPR to avoid reload it from
GPR to MASK_REGS.

gcc/ChangeLog:

* config/i386/i386.md: (zero_extendsidi2): Adjust
alternative *k to ?k.
(zero_extend<mode>di2): Ditto.
(*zero_extend<mode>si2): Ditto.
(*zero_extendqihi2): Ditto.
gcc/config/i386/i386.md
gcc/testsuite/gcc.target/i386/zero_extendkmask.c [new file with mode: 0644]