i386: Set priority to P_AES for Westmere
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 7 Aug 2017 11:47:22 +0000 (11:47 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 7 Aug 2017 11:47:22 +0000 (04:47 -0700)
commit356512c0660a1f549c48128ab63cc56077d05db2
tree43c3854469f87c2a612ec2a2039830532e291265
parentc8f34527b1c941f81e41df66e5d7cc2aedb453df
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.

From-SVN: r250915
gcc/ChangeLog
gcc/config/i386/i386.c