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.
---
 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

Reply via email to