[binutils-gdb] x86: recognize both avx10.1aux and avx10v1aux
Jan Beulich via Binutils-cvs <[email protected]>
| Newsgroups | gmane.comp.gnu.binutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=63b85fe5d59d1eee20f177b4b6e653ddabdeebf7 commit 63b85fe5d59d1eee20f177b4b6e653ddabdeebf7 Author: Rohan Shenoy <[email protected]> Date: Wed Aug 26 08:59:18 2026 +0200 x86: recognize both avx10.1aux and avx10v1aux Accept both as names for the same feature. Keeps existing naming as well as recognize avx10v1aux, aligning with gcc (and Clang eventually). Subsequently, same applies to v2-aux when added. gas/ * config/tc-i386.c: Recognize avx10v1aux as an alias of avx10.1aux. * doc/c-i386.texi: Document avx10v1aux alongside avx10.1aux. * testsuite/gas/i386/avx10.1-aux-512-cvt.s: Change arch name. * testsuite/gas/i386/avx10.1-aux-256-media.s: Ditto. Diff: --- gas/config/tc-i386.c | 1 + gas/doc/c-i386.texi | 4 +++- gas/testsuite/gas/i386/avx10.1-aux-256-media.s | 2 +- gas/testsuite/gas/i386/avx10.1-aux-512-cvt.s | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index b2bf9305f8e..1f93f7f3dc6 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -1254,6 +1254,7 @@ static const arch_entry cpu_arch[] = SUBARCH (pbndkb, PBNDKB, PBNDKB, false), VECARCH (avx10.1, AVX10_1, ANY_AVX512F, set), VECARCH (avx10.1aux, AVX10_1_AUX, ANY_AVX10_1_AUX, set), + VECARCH (avx10v1aux, AVX10_1_AUX, ANY_AVX10_1_AUX, set), VECARCH (avx10.2, AVX10_2, ANY_AVX10_2, set), SUBARCH (user_msr, USER_MSR, USER_MSR, false), SUBARCH (apx_f, APX_F, ANY_APX_F, false), diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi index 66d94a141b9..a455c9cc86f 100644 --- a/gas/doc/c-i386.texi +++ b/gas/doc/c-i386.texi @@ -221,6 +221,7 @@ accept various extension mnemonics. For example, @code{avx10.1/256}, @code{avx10.1/128}, @code{avx10.1aux}, +@code{avx10v1aux}, @code{user_msr}, @code{msr_imm}, @code{apx_f}, @@ -1719,7 +1720,8 @@ supported on the CPU specified. The choices for @var{cpu_type} are: @item @samp{.avx512_vpopcntdq} @tab @samp{.avx512_vbmi2} @tab @samp{.avx512_vnni} @item @samp{.avx512_bitalg} @tab @samp{.avx512_bf16} @tab @samp{.avx512_vp2intersect} @item @samp{.tdx} @tab @samp{.avx_vnni} @tab @samp{.avx512_fp16} @tab @samp{avx512_bmm} -@item @samp{.avx10.1} @tab @samp{.avx10.1aux} @tab @samp{.avx10.2} @tab @samp{.clwb} +@item @samp{.avx10.1} @tab @samp{.avx10.1aux} @tab @samp{.avx10v1aux} @tab @samp{.avx10.2} +@item @samp{.clwb} @item @samp{.rdpid} @tab @samp{.ptwrite} @tab @samp{.ibt} @tab @samp{.prefetchi} @item @samp{.cmpccxadd} @tab @samp{.wrmsrns} @tab @samp{.msrlist} @tab @samp{.se1} @item @samp{.avx_ne_convert} @tab @samp{.rao_int} @tab @samp{.fred} @tab @samp{.lkgs} diff --git a/gas/testsuite/gas/i386/avx10.1-aux-256-media.s b/gas/testsuite/gas/i386/avx10.1-aux-256-media.s index b08070a47e7..c2306302557 100644 --- a/gas/testsuite/gas/i386/avx10.1-aux-256-media.s +++ b/gas/testsuite/gas/i386/avx10.1-aux-256-media.s @@ -1,6 +1,6 @@ # Check 32bit AVX10.1-aux/256 media instructions .arch generic32 - .arch .avx10.1aux/256 + .arch .avx10v1aux/256 .equ AVX10_V1_AUX, 1 .include "avx10_2-256-media.s" diff --git a/gas/testsuite/gas/i386/avx10.1-aux-512-cvt.s b/gas/testsuite/gas/i386/avx10.1-aux-512-cvt.s index ecfca29329a..5d8e2284c69 100644 --- a/gas/testsuite/gas/i386/avx10.1-aux-512-cvt.s +++ b/gas/testsuite/gas/i386/avx10.1-aux-512-cvt.s @@ -1,6 +1,6 @@ # Check 32bit AVX10.1-aux/512 convert instructions .arch generic32 - .arch .avx10.1aux/512 + .arch .avx10v1aux/512 .equ AVX10_V1_AUX, 1 .include "avx10_2-512-cvt.s"