aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/driver-i386.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/i386/driver-i386.cc')
-rw-r--r--gcc/config/i386/driver-i386.cc36
1 files changed, 2 insertions, 34 deletions
diff --git a/gcc/config/i386/driver-i386.cc b/gcc/config/i386/driver-i386.cc
index 1ff05e5..fe71f55 100644
--- a/gcc/config/i386/driver-i386.cc
+++ b/gcc/config/i386/driver-i386.cc
@@ -374,33 +374,6 @@ detect_caches_intel (bool xeon_mp, unsigned max_level,
#define has_feature(f) \
has_cpu_feature (&cpu_model, cpu_features2, f)
-/* We will emit a warning when using AVX10.1 and AVX512 options with one
- enabled and the other disabled. Add this function to avoid push "-mno-"
- options under this scenario for -march=native. */
-
-bool check_avx512_features (__processor_model &cpu_model,
- unsigned int (&cpu_features2)[SIZE_OF_CPU_FEATURES],
- const enum processor_features feature)
-{
- if (has_feature (FEATURE_AVX10_1_256)
- && ((feature == FEATURE_AVX512F)
- || (feature == FEATURE_AVX512CD)
- || (feature == FEATURE_AVX512DQ)
- || (feature == FEATURE_AVX512BW)
- || (feature == FEATURE_AVX512VL)
- || (feature == FEATURE_AVX512IFMA)
- || (feature == FEATURE_AVX512VBMI)
- || (feature == FEATURE_AVX512VBMI2)
- || (feature == FEATURE_AVX512VNNI)
- || (feature == FEATURE_AVX512VPOPCNTDQ)
- || (feature == FEATURE_AVX512BITALG)
- || (feature == FEATURE_AVX512FP16)
- || (feature == FEATURE_AVX512BF16)))
- return false;
-
- return true;
-}
-
/* This will be called by the spec parser in gcc.cc when it sees
a %:local_cpu_detect(args) construct. Currently it will be
called with either "arch [32|64]" or "tune [32|64]" as argument
@@ -627,7 +600,7 @@ const char *host_detect_local_cpu (int argc, const char **argv)
if (has_feature (FEATURE_AVX512F))
{
/* Assume Diamond Rapids. */
- if (has_feature (FEATURE_AMX_TRANSPOSE))
+ if (has_feature (FEATURE_AMX_FP8))
cpu = "diamondrapids";
/* Assume Granite Rapids D. */
else if (has_feature (FEATURE_AMX_COMPLEX))
@@ -909,12 +882,7 @@ const char *host_detect_local_cpu (int argc, const char **argv)
options = concat (options, " ",
isa_names_table[i].option, NULL);
}
- /* Never push -mno-avx10.1-{256,512} under -march=native to
- avoid unnecessary warnings when building libraries. */
- else if (isa_names_table[i].feature != FEATURE_AVX10_1_256
- && isa_names_table[i].feature != FEATURE_AVX10_1
- && check_avx512_features (cpu_model, cpu_features2,
- isa_names_table[i].feature))
+ else
options = concat (options, neg_option,
isa_names_table[i].option + 2, NULL);
}