[v3] x86: recognize both avx10.1aux and avx10v1aux
Checks
| Context |
Check |
Description |
| linaro-tcwg-bot/tcwg_binutils_build--master-arm |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 |
success
|
Test passed
|
| linaro-tcwg-bot/tcwg_binutils_check--master-arm |
success
|
Test passed
|
Commit Message
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.
---
Notes:
Changes in v3 since v2:
As per Jan's feedback,
- Undo the renaming of test files (from i386.exp as well), as both
avx10v1aux/avx10.1aux are recognized now.
- Add avx10v1aux entries after avx10.1aux.
Changes in v2 since v1:
- Adds avx10v1aux rather than replacing avx10.1aux as per Jan's
suggestion.
- Update two of the four tests (256-cvt, 512-media) to use arch
avx10.1aux, so that both names are used.
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(-)
Comments
On 20.08.2026 11:35, Rohan Shenoy wrote:
> 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.
Okay.
Jan
AMD General
Hi Jan
As I don't have write access, could you please merge this on my behalf?
Thanks
Rohan
-----Original Message-----
From: Jan Beulich <jbeulich@suse.com>
Sent: 20 August 2026 15:43
On 20.08.2026 11:35, Rohan Shenoy wrote:
> 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.
Okay.
Jan
On 25.08.2026 17:22, Shenoy, Rohan Radhesh wrote:
> As I don't have write access, could you please merge this on my behalf?
Sure, can do, yet likely only later this week.
Jan
@@ -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),
@@ -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}
@@ -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"
@@ -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"