This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/81743] int __attribute__ ((target("arch=westmere"))) is compiled incorrectly


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81743

--- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Author: aldyh
Date: Wed Sep 13 16:35:02 2017
New Revision: 252319

URL: https://gcc.gnu.org/viewcvs?rev=252319&root=gcc&view=rev
Log:
i386: Set priority to P_AES for Westmere

The difference between Nehalem and Westmere is AES.  We should set
priority to P_AES for Westmere, not P_PROC_SSE4_2 which is for Nehalem.
Otherwise, we will pick Nehalem implementation on Westmere.  Tested on
Westmere.

        PR target/81743
        * config/i386/i386.c (get_builtin_code_for_version): Set priority
        to P_AES for Westmere.

Modified:
    branches/range-gen2/gcc/ChangeLog
    branches/range-gen2/gcc/config/i386/i386.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]