]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Add attr_isa for vaes patterns to sync with attr gpr16. [pr119473]
authorHu, Lin1 <lin1.hu@intel.com>
Wed, 26 Mar 2025 08:15:52 +0000 (16:15 +0800)
committerHu, Lin1 <lin1.hu@intel.com>
Tue, 1 Apr 2025 01:50:23 +0000 (09:50 +0800)
commite5cfa7f797b79613e5483786484567b9ca72db06
tree294d13c044007456f165f7ba68277be123b8db75
parent28751389a68e131e21fcaf8e3f661d76a2b4d0cc
i386: Add attr_isa for vaes patterns to sync with attr gpr16. [pr119473]

For vaes patterns with jm constraint and gpr16 attr, it requires "isa"
attr to distinct avx/avx512 alternatives in ix86_memory_address_reg_class.
Also adds missing type and mode attributes for those vaes patterns.

gcc/ChangeLog:

PR target/119473
* config/i386/sse.md
(vaesdec_<mode>): Set attr "isa" as "avx,vaes_avx512vl", "type" as
"sselog1", "mode" as "TI".
(vaesdeclast_<mode>): Ditto.
(vaesenc_<mode>): Ditto.
(vaesenclast_<mode>): Ditto.

gcc/testsuite/ChangeLog:

PR target/119473
* gcc.target/i386/pr119473.c: New test.

Co-authored-by: Hongyu Wang <hongyu.wang@intel.com>
gcc/config/i386/sse.md
gcc/testsuite/gcc.target/i386/pr119473.c [new file with mode: 0644]