public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "thiago at kde dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114576] [14 regression] VEX-prefixed AES instruction without AVX enabled Date: Wed, 03 Apr 2024 23:12:37 +0000 [thread overview] Message-ID: <bug-114576-4-EdVNsZshkR@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-114576-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114576 --- Comment #4 from Thiago Macieira <thiago at kde dot org> --- (In reply to Jakub Jelinek from comment #3) > vaesenc etc. instructions can be used even if just -maes -mavx, not just > -mvaes -mavx512vl. Correct, that's just VEX-prefixed AESNI instructions. VAES added the 256-bit and 512-bit versions of those instructions. The table at felix's website is accurate: https://www.felixcloutier.com/x86/aesenc This is actually similar to GFNI: * GFNI: 128-bit only, non-VEX, non-EVEX * GFNI+AVX: VEX allowed, 128- and 256-bit; no EVEX * GFNI+AVX512F: 128- and 256-bit with VEX, 512-bit with EVEX * GFNI+AVX512VL: 128- and 256-bit with VEX, all with EVEX * GFNI+AVX10 without EVEX512: 128- and 256-bit with VEX and EVEX, no 512-bit The F-no-VL case does not exist in practice. > But, it is especially messy because -mvaes doesn't imply -maes, so IMHO if > somebody e.g. asks for -mvaes -mavx512vl -mno-aes and the insns don't use > any xmm16+ register, it would emit the insn using VEX encoding rather than > EVEX, so I think we need to use {evex} prefixes. Would it be simpler to just imply that VAES includes AESNI? There are no processors that have VAES without AESNI and it doesn't make sense for there to be one.
next prev parent reply other threads:[~2024-04-03 23:12 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-04-03 17:36 [Bug target/114576] New: [13 regression][config/i386] GCC 14/trunk emits " thiago at kde dot org 2024-04-03 17:41 ` [Bug target/114576] [14 " pinskia at gcc dot gnu.org 2024-04-03 17:46 ` pinskia at gcc dot gnu.org 2024-04-03 22:39 ` [Bug target/114576] [14 regression]VEX-prefixed " jakub at gcc dot gnu.org 2024-04-03 23:12 ` thiago at kde dot org [this message] 2024-04-04 7:22 ` [Bug target/114576] [14 regression] VEX-prefixed " rguenth at gcc dot gnu.org 2024-04-09 10:41 ` cvs-commit at gcc dot gnu.org 2024-04-09 10:48 ` jakub at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-114576-4-EdVNsZshkR@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).