Add TIGERLAKE and COOPERLAKE to GCC.

Programming / Compilers / GCC - liuhongt [138bc75d-0d04-0410-961f-82ee72b054a4] - 20 August 2019 07:06 UTC

2019-08-20 Lili Cui

gcc/
- common/config/i386/i386-common.c (processor_names): Add tigerlake and cooperlake. (processor_alias_table): Add tigerlake and cooperlake.
- config.gcc: Add -march=tigerlake and cooperlake.
- config/i386/driver-i386.c (host_detect_local_cpu): Detect tigerlake and cooperlake. Add "has_avx" to classify processor.
- config/i386/i386-builtins.c (processor_model): Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE. (arch_names_table): Add tigerlake and cooperlake. (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
- config/i386/i386-c.c (ix86_target_macros_internal): Handle tigerlake and cooperlake.
- config/i386/i386-options.c (m_TIGERLAKE) : Define. (m_COOPERLAKE) : Ditto. (m_CORE_AVX512): Ditto. (processor_cost_table): Add cascadelake. (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
- config/i386/i386.h (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE. (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE. (PTA_MOVDIRI): Ditto. (PTA_MOVDIR64B): Ditto. (PTA_COOPERLAKE) : Ditto. (PTA_TIGERLAKE) : Ditto. (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
- doc/extend.texi: Add tigerlake and cooperlake.
- doc/invoke.texi: Add tigerlake and cooperlake.

gcc/testsuite/
- gcc.target/i386/funcspec-56.inc: Handle new march.
- g++.target/i386/mv16.C: Handle new march

libgcc/
- config/i386/cpuinfo.h: Add INTEL_COREI7_TIGERLAKE and INTEL_COREI7_COOPERLAKE.

dc4bb038279 Add TIGERLAKE and COOPERLAKE to GCC.
gcc/ChangeLog | 33 ++++++++++++++
gcc/common/config/i386/i386-common.c | 4 ++
gcc/config.gcc | 3 +-
gcc/config/i386/driver-i386.c | 65 +++++++++++++++------------
gcc/config/i386/i386-builtins.c | 14 +++++-
gcc/config/i386/i386-c.c | 13 ++++++
gcc/config/i386/i386-options.c | 13 +++++-
gcc/config/i386/i386.h | 9 ++++
gcc/doc/extend.texi | 6 +++
gcc/doc/invoke.texi | 16 +++++++
gcc/testsuite/ChangeLog | 5 +++
gcc/testsuite/g++.target/i386/mv16.C | 12 +++++
gcc/testsuite/gcc.target/i386/funcspec-56.inc | 2 +
libgcc/ChangeLog | 5 +++
libgcc/config/i386/cpuinfo.h | 2 +
15 files changed, 171 insertions(+), 31 deletions(-)

Upstream: gcc.gnu.org


  • Share