diff options
author | Olga Makhotina <olga.makhotina@intel.com> | 2018-05-17 08:13:23 +0000 |
---|---|---|
committer | Sebastian Peryt <speryt@gcc.gnu.org> | 2018-05-17 10:13:23 +0200 |
commit | 74b2bb19f37e4deeff97924564d460f8689ac02e (patch) | |
tree | 65ce957b05401f2ee423fc5a5677343174466dc5 /libgcc | |
parent | 773d0331f7456614f9f7e619e642946d9bdc638a (diff) | |
download | gcc-74b2bb19f37e4deeff97924564d460f8689ac02e.zip gcc-74b2bb19f37e4deeff97924564d460f8689ac02e.tar.gz gcc-74b2bb19f37e4deeff97924564d460f8689ac02e.tar.bz2 |
config.gcc: Support "goldmont-plus".
2018-05-17 Olga Makhotina <olga.makhotina@intel.com>
gcc/
* config.gcc: Support "goldmont-plus".
* config/i386/driver-i386.c (host_detect_local_cpu): Detect
"goldmont-plus".
* config/i386/i386-c.c (ix86_target_macros_internal): Handle
PROCESSOR_GOLDMONT_PLUS.
* config/i386/i386.c (m_GOLDMONT_PLUS): Define.
(processor_target_table): Add "goldmont-plus".
(PTA_GOLDMONT_PLUS): Define.
(ix86_lea_outperforms): Add TARGET_GOLDMONT_PLUS.
(get_builtin_code_for_version): Handle PROCESSOR_GOLDMONT_PLUS.
(fold_builtin_cpu): Add M_INTEL_GOLDMONT_PLUS.
(fold_builtin_cpu): Add "goldmont-plus".
(ix86_add_stmt_cost): Add TARGET_GOLDMONT_PLUS.
(ix86_option_override_internal): Add "goldmont-plus".
* config/i386/i386.h (processor_costs): Define TARGET_GOLDMONT_PLUS.
(processor_type): Add PROCESSOR_GOLDMONT_PLUS.
* config/i386/x86-tune.def: Add m_GOLDMONT_PLUS.
* doc/invoke.texi: Add goldmont-plus as x86 -march=/-mtune= CPU type.
libgcc/
* config/i386/cpuinfo.h (processor_types): Add INTEL_GOLDMONT_PLUS.
* config/i386/cpuinfo.c (get_intel_cpu): Detect Goldmont Plus.
gcc/testsuite/
* gcc.target/i386/builtin_target.c: Test goldmont-plus.
* gcc.target/i386/funcspec-56.inc: Test arch=goldmont-plus.
From-SVN: r260307
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc/config/i386/cpuinfo.c | 4 | ||||
-rw-r--r-- | libgcc/config/i386/cpuinfo.h | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 93c95e3..55bae33 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2018-05-17 Olga Makhotina <olga.makhotina@intel.com> + + * config/i386/cpuinfo.h (processor_types): Add INTEL_GOLDMONT_PLUS. + * config/i386/cpuinfo.c (get_intel_cpu): Detect Goldmont Plus. + 2018-05-08 Olga Makhotina <olga.makhotina@intel.com> * config/i386/cpuinfo.h (processor_types): Add INTEL_GOLDMONT. diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c index 7e6c7a4..8c9878c 100644 --- a/libgcc/config/i386/cpuinfo.c +++ b/libgcc/config/i386/cpuinfo.c @@ -145,6 +145,10 @@ get_intel_cpu (unsigned int family, unsigned int model, unsigned int brand_id) /* Goldmont. */ __cpu_model.__cpu_type = INTEL_GOLDMONT; break; + case 0x7a: + /* Goldmont Plus. */ + __cpu_model.__cpu_type = INTEL_GOLDMONT_PLUS; + break; case 0x57: /* Knights Landing. */ __cpu_model.__cpu_type = INTEL_KNL; diff --git a/libgcc/config/i386/cpuinfo.h b/libgcc/config/i386/cpuinfo.h index 18db199..ace07df 100644 --- a/libgcc/config/i386/cpuinfo.h +++ b/libgcc/config/i386/cpuinfo.h @@ -49,6 +49,7 @@ enum processor_types AMDFAM17H, INTEL_KNM, INTEL_GOLDMONT, + INTEL_GOLDMONT_PLUS, CPU_TYPE_MAX }; |