]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86/{,V}AES: adjust when to force EVEX encoding
authorJan Beulich <jbeulich@suse.com>
Tue, 8 Oct 2024 14:05:33 +0000 (16:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 8 Oct 2024 14:05:33 +0000 (16:05 +0200)
commit0ab66f099bf0f405542944c5ce178151bea934b2
treea0a6c5d44c163dce97119f2375fac5ce7bba7c1e
parentc94adf02d31028a25bb7b20ec77aade9d502430b
x86/{,V}AES: adjust when to force EVEX encoding

Commit a79d13a01f8c ("i386: Fix aes/vaes patterns [PR114576]") correctly
said "..., but we need to emit {evex} prefix in the assembly if AES ISA
is not enabled". Yet it did so only for the TARGET_AES insns. Going from
the alternative chosen in the TARGET_VAES insns isn't quite right: If
AES is (also) enabled, EVEX encoding would needlessly be forced.

gcc/

* config/i386/sse.md (vaesdec_<mode>, vaesdeclast_<mode>,
vaesenc_<mode>, vaesenclast_<mode>): Replace which_alternative
check by TARGET_AES one.
gcc/config/i386/sse.md