On Thu, Sep 14, 2017 at 1:47 PM, Peryt, Sebastian
<sebastian.pe...@intel.com> wrote:
> Hi,
>
> This patch adds  options -march=/-mtune=knm for Knights Mill.
>
> 2017-09-14  Sebastian Peryt  <sebastian.pe...@intel.com>
> gcc/
>
>         * config.gcc: Support "knm".
>         * config/i386/driver-i386.c (host_detect_local_cpu): Detect "knm".
>         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
>         PROCESSOR_KNM.
>         * config/i386/i386.c (m_KNM): Define.
>         (processor_target_table): Add "knm".
>         (PTA_KNM): Define.
>         (ix86_option_override_internal): Add "knm".
>         (ix86_issue_rate): Add PROCESSOR_KNM.
>         (ix86_adjust_cost): Ditto.
>         (ia32_multipass_dfa_lookahead): Ditto.
>         (get_builtin_code_for_version): Handle PROCESSOR_KNM.
>         (fold_builtin_cpu): Define M_INTEL_KNM.
>         * config/i386/i386.h (TARGET_KNM): Define.
>         (processor_type): Add PROCESSOR_KNM.
>         * config/i386/x86-tune.def: Add m_KNM.
>         * doc/invoke.texi: Add knm as x86 -march=/-mtune= CPU type.
>
>
>     gcc/testsuite/
>
>         * gcc.target/i386/funcspec-5.c: Test knm.
>
> Is it ok for trunk?

You also have to update libgcc/cpuinfo.h together with
fold_builtin_cpu from i386.c. Please note that all new processor types
and subtypes have to be added at the end of the enum.

Ops, and ANDFAM17H processor type should not be there in cpuinfo.h.

Uros.

Reply via email to