[PATCH] [X86_64] Fix alignment for znver1 arch.

Uros Bizjak ubizjak@gmail.com
Tue Feb 14 09:20:00 GMT 2017


On Tue, Feb 14, 2017 at 8:48 AM, Pawar, Amit <Amit.Pawar@amd.com> wrote:
> Hi maintainers,
>
> Please find the below patch which changes the code alignment values for znver1. Bootstrap and regression test passed on x86_64.
> OK to apply?

OK.

Thanks,
Uros.

> Thanks,
> Amit Pawar
>
> <Snip>
> diff --git a/gcc/ChangeLog b/gcc/ChangeLog
> index 2561d53..a5b0159 100644
> --- a/gcc/ChangeLog
> +++ b/gcc/ChangeLog
> @@ -1,3 +1,8 @@
> +2017-02-13  Amit Pawar  <amit.pawar@amd.com>
> +
> + * config/i386/i386.c (znver1_cost): Fix the alignment for function and
> + max skip bytes for function, loop and jump.
> +
>  2017-02-13  Martin Sebor  <msebor@redhat.com>
>
>   PR middle-end/79496
> diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
> index d7dce4b..d9a4a38 100644
> --- a/gcc/config/i386/i386.c
> +++ b/gcc/config/i386/i386.c
> @@ -2672,7 +2672,7 @@ static const struct ptt processor_target_table[PROCESSOR_max] =
>    {"bdver4", &bdver4_cost, 16, 10, 16, 7, 11},
>    {"btver1", &btver1_cost, 16, 10, 16, 7, 11},
>    {"btver2", &btver2_cost, 16, 10, 16, 7, 11},
> -  {"znver1", &znver1_cost, 16, 10, 16, 7, 11}
> +  {"znver1", &znver1_cost, 16, 15, 16, 15, 16}
>  };
>  ^L
>  static unsigned int
> </Snip>



More information about the Gcc-patches mailing list