On Mon, Jun 4, 2018 at 1:48 PM, Makhotina, Olga
<[email protected]> wrote:
>
> Hi,
>
> This patch implements Tremont -march/-mtune.
>
> 2018-06-04 Olga Makhotina <[email protected]>
>
> gcc/
>
> * config.gcc: Support "tremont".
> * config/i386/driver-i386.c (host_detect_local_cpu): Detect "tremont".
> * config/i386/i386-c.c (ix86_target_macros_internal): Handle
> PROCESSOR_TREMONT.
> * config/i386/i386.c (m_TREMONT): Define.
> (processor_target_table): Add "tremont".
> (PTA_TREMONT): Define.
> (ix86_lea_outperforms): Add TARGET_TREMONT.
> (get_builtin_code_for_version): Handle PROCESSOR_TREMONT.
> (fold_builtin_cpu): Add M_INTEL_TREMONT, replace M_INTEL_GOLDMONT
> and M_INTEL_GOLDMONT_PLUS.
> (fold_builtin_cpu): Add "tremont".
> (ix86_add_stmt_cost): Add TARGET_TREMONT.
> (ix86_option_override_internal): Add "tremont".
> * config/i386/i386.h (processor_costs): Define TARGET_TREMONT.
> (processor_type): Add PROCESSOR_TREMONT.
> * config/i386/x86-tune.def: Add m_TREMONT.
> * doc/invoke.texi: Add tremont as x86 -march=/-mtune= CPU type.
>
> libgcc/
>
> * config/i386/cpuinfo.h (processor_types): Add INTEL_TREMONT.
>
> gcc/testsuite/
>
> * gcc.target/i386/funcspec-56.inc: Test arch=tremont.
>
> Is it OK?
OK for mainline.
@@ -33119,6 +33128,9 @@ fold_builtin_cpu (tree fndecl, tree *args)
M_AMD_BTVER2,
M_AMDFAM17H,
M_INTEL_KNM,
+ M_INTEL_GOLDMONT,
+ M_INTEL_GOLDMONT_PLUS,
+ M_INTEL_TREMONT,
M_CPU_SUBTYPE_START,
M_INTEL_COREI7_NEHALEM,
M_INTEL_COREI7_WESTMERE,
@@ -33138,9 +33150,7 @@ fold_builtin_cpu (tree fndecl, tree *args)
M_INTEL_COREI7_SKYLAKE_AVX512,
M_INTEL_COREI7_CANNONLAKE,
M_INTEL_COREI7_ICELAKE_CLIENT,
- M_INTEL_COREI7_ICELAKE_SERVER,
- M_INTEL_GOLDMONT,
- M_INTEL_GOLDMONT_PLUS
+ M_INTEL_COREI7_ICELAKE_SERVER
};
static struct _arch_names_table
Does the above part also need to be installed on gcc-8 branch?
Thanks,
Uros.