diff --git a/gcc/common/config/i386/i386-common.cc b/gcc/common/config/i386/i386-common.cc index 2f491b2f84bc770bfdb51b48d6800303b0db2895..6ce2a588adc4ff6a7b4761174a2717701aa9aa6c 100644 --- a/gcc/common/config/i386/i386-common.cc +++ b/gcc/common/config/i386/i386-common.cc @@ -106,12 +106,15 @@ along with GCC; see the file COPYING3. If not see #define OPTION_MASK_ISA_CLWB_SET OPTION_MASK_ISA_CLWB #define OPTION_MASK_ISA2_AVX512VP2INTERSECT_SET OPTION_MASK_ISA2_AVX512VP2INTERSECT #define OPTION_MASK_ISA2_AMX_TILE_SET OPTION_MASK_ISA2_AMX_TILE -#define OPTION_MASK_ISA2_AMX_INT8_SET OPTION_MASK_ISA2_AMX_INT8 -#define OPTION_MASK_ISA2_AMX_BF16_SET OPTION_MASK_ISA2_AMX_BF16 +#define OPTION_MASK_ISA2_AMX_INT8_SET \ + (OPTION_MASK_ISA2_AMX_TILE | OPTION_MASK_ISA2_AMX_INT8) +#define OPTION_MASK_ISA2_AMX_BF16_SET \ + (OPTION_MASK_ISA2_AMX_TILE | OPTION_MASK_ISA2_AMX_BF16) #define OPTION_MASK_ISA2_AVXVNNIINT8_SET OPTION_MASK_ISA2_AVXVNNIINT8 #define OPTION_MASK_ISA2_AVXNECONVERT_SET OPTION_MASK_ISA2_AVXNECONVERT #define OPTION_MASK_ISA2_CMPCCXADD_SET OPTION_MASK_ISA2_CMPCCXADD -#define OPTION_MASK_ISA2_AMX_FP16_SET OPTION_MASK_ISA2_AMX_FP16 +#define OPTION_MASK_ISA2_AMX_FP16_SET \ + (OPTION_MASK_ISA2_AMX_TILE | OPTION_MASK_ISA2_AMX_FP16) #define OPTION_MASK_ISA2_PREFETCHI_SET OPTION_MASK_ISA2_PREFETCHI #define OPTION_MASK_ISA2_RAOINT_SET OPTION_MASK_ISA2_RAOINT @@ -277,7 +280,9 @@ along with GCC; see the file COPYING3. If not see #define OPTION_MASK_ISA2_SERIALIZE_UNSET OPTION_MASK_ISA2_SERIALIZE #define OPTION_MASK_ISA2_AVX512VP2INTERSECT_UNSET OPTION_MASK_ISA2_AVX512VP2INTERSECT #define OPTION_MASK_ISA2_TSXLDTRK_UNSET OPTION_MASK_ISA2_TSXLDTRK -#define OPTION_MASK_ISA2_AMX_TILE_UNSET OPTION_MASK_ISA2_AMX_TILE +#define OPTION_MASK_ISA2_AMX_TILE_UNSET \ + (OPTION_MASK_ISA2_AMX_TILE | OPTION_MASK_ISA2_AMX_INT8_UNSET \ + | OPTION_MASK_ISA2_AMX_BF16_UNSET | OPTION_MASK_ISA2_AMX_FP16_UNSET) #define OPTION_MASK_ISA2_AMX_INT8_UNSET OPTION_MASK_ISA2_AMX_INT8 #define OPTION_MASK_ISA2_AMX_BF16_UNSET OPTION_MASK_ISA2_AMX_BF16 #define OPTION_MASK_ISA2_UINTR_UNSET OPTION_MASK_ISA2_UINTR diff --git a/gcc/testsuite/gcc.target/i386/amxbf16-dpbf16ps-2.c b/gcc/testsuite/gcc.target/i386/amxbf16-dpbf16ps-2.c index b00bc13ec7883c8d3d15912d6aa62c450e72153b..35881e7682ad2eb956dd0a5a9f4971d90b2e19f1 100644 --- a/gcc/testsuite/gcc.target/i386/amxbf16-dpbf16ps-2.c +++ b/gcc/testsuite/gcc.target/i386/amxbf16-dpbf16ps-2.c @@ -1,7 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ -/* { dg-require-effective-target amx_tile } */ /* { dg-require-effective-target amx_bf16 } */ -/* { dg-options "-O2 -mamx-tile -mamx-bf16" } */ +/* { dg-options "-O2 -mamx-bf16" } */ #include <immintrin.h> #define AMX_BF16 diff --git a/gcc/testsuite/gcc.target/i386/amxfp16-dpfp16ps-2.c b/gcc/testsuite/gcc.target/i386/amxfp16-dpfp16ps-2.c index 2d359a689eac1dc883f2788dc04113289279abf8..a1fafbcbfeb24d24537e5668415513237609d9da 100644 --- a/gcc/testsuite/gcc.target/i386/amxfp16-dpfp16ps-2.c +++ b/gcc/testsuite/gcc.target/i386/amxfp16-dpfp16ps-2.c @@ -1,8 +1,7 @@ /* { dg-do run { target { ! ia32 } } } */ -/* { dg-require-effective-target amx_tile } */ /* { dg-require-effective-target amx_fp16 } */ /* { dg-require-effective-target avx512fp16 } */ -/* { dg-options "-O2 -mamx-tile -mamx-fp16 -mavx512fp16" } */ +/* { dg-options "-O2 -mamx-fp16 -mavx512fp16" } */ #define AMX_FP16 #define DO_TEST test_amx_fp16_dpfp16ps void test_amx_fp16_dpfp16ps (); diff --git a/gcc/testsuite/gcc.target/i386/amxint8-dpbssd-2.c b/gcc/testsuite/gcc.target/i386/amxint8-dpbssd-2.c index 74ad71be5c5c504c9d1c9548373fa265653d9d73..d7efb3d20c216c4eab2a9ac7355c3047dca93784 100644 --- a/gcc/testsuite/gcc.target/i386/amxint8-dpbssd-2.c +++ b/gcc/testsuite/gcc.target/i386/amxint8-dpbssd-2.c @@ -1,7 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ -/* { dg-require-effective-target amx_tile } */ /* { dg-require-effective-target amx_int8 } */ -/* { dg-options "-O2 -mamx-tile -mamx-int8" } */ +/* { dg-options "-O2 -mamx-int8" } */ #include <immintrin.h> #define AMX_INT8 diff --git a/gcc/testsuite/gcc.target/i386/amxint8-dpbsud-2.c b/gcc/testsuite/gcc.target/i386/amxint8-dpbsud-2.c index e7241bdd860a7febe950a1a90ad158201b553fd5..c8bf89d738b9af708d18280ae2673865518f4a56 100644 --- a/gcc/testsuite/gcc.target/i386/amxint8-dpbsud-2.c +++ b/gcc/testsuite/gcc.target/i386/amxint8-dpbsud-2.c @@ -1,7 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ -/* { dg-require-effective-target amx_tile } */ /* { dg-require-effective-target amx_int8 } */ -/* { dg-options "-O2 -mamx-tile -mamx-int8" } */ +/* { dg-options "-O2 -mamx-int8" } */ #include <immintrin.h> #define AMX_INT8 diff --git a/gcc/testsuite/gcc.target/i386/amxint8-dpbusd-2.c b/gcc/testsuite/gcc.target/i386/amxint8-dpbusd-2.c index f0b9f97aec92cf20517554cb85387e85b8ba1fad..bb8777d920a313a1e5e8b4077b8b56bb97c02a34 100644 --- a/gcc/testsuite/gcc.target/i386/amxint8-dpbusd-2.c +++ b/gcc/testsuite/gcc.target/i386/amxint8-dpbusd-2.c @@ -1,7 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ -/* { dg-require-effective-target amx_tile } */ /* { dg-require-effective-target amx_int8 } */ -/* { dg-options "-O2 -mamx-tile -mamx-int8" } */ +/* { dg-options "-O2 -mamx-int8" } */ #include <immintrin.h> #define AMX_INT8 diff --git a/gcc/testsuite/gcc.target/i386/amxint8-dpbuud-2.c b/gcc/testsuite/gcc.target/i386/amxint8-dpbuud-2.c index eb70b2f9259d05bd598c2ebe32ec3fa57140d524..d30f46d8de3b8dbe893ba414442dbc1b23dabc79 100644 --- a/gcc/testsuite/gcc.target/i386/amxint8-dpbuud-2.c +++ b/gcc/testsuite/gcc.target/i386/amxint8-dpbuud-2.c @@ -1,7 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ -/* { dg-require-effective-target amx_tile } */ /* { dg-require-effective-target amx_int8 } */ -/* { dg-options "-O2 -mamx-tile -mamx-int8" } */ +/* { dg-options "-O2 -mamx-int8" } */ #include <immintrin.h> #define AMX_INT8