[PATCH] i386: Identify Westmere from PCLMUL
Uros Bizjak
ubizjak@gmail.com
Thu Feb 28 15:07:00 GMT 2019
On Thu, Feb 28, 2019 at 2:50 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> Since AES has been removed from Westmere in GCC 9, we should identify
> Westmere from PCLMUL, instead of AES.
>
> PR target/89455
> * config/i386/i386.c (get_builtin_code_for_version): Identify
> Westmere from PCLMUL, instead of AES.
OK.
Thanks,
Uros.
> ---
> gcc/config/i386/i386.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
> index b8357a7db5d..c8f9957163b 100644
> --- a/gcc/config/i386/i386.c
> +++ b/gcc/config/i386/i386.c
> @@ -31992,10 +31992,10 @@ get_builtin_code_for_version (tree decl, tree *predicate_list)
> priority = P_PROC_SSSE3;
> break;
> case PROCESSOR_NEHALEM:
> - if (new_target->x_ix86_isa_flags & OPTION_MASK_ISA_AES)
> + if (new_target->x_ix86_isa_flags & OPTION_MASK_ISA_PCLMUL)
> {
> arg_str = "westmere";
> - priority = P_AES;
> + priority = P_PCLMUL;
> }
> else
> {
> --
> 2.20.1
>
More information about the Gcc-patches
mailing list