This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Update host_detect_local_cpu for new Intel processors
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Kirill Yukhin <kirill dot yukhin at gmail dot com>
- Date: Sat, 24 Jan 2015 05:02:09 -0800
- Subject: Re: PATCH: Update host_detect_local_cpu for new Intel processors
- Authentication-results: sourceware.org; auth=none
- References: <20150124023701 dot GA22505 at gmail dot com> <20150124025048 dot GA22664 at gmail dot com> <CAFULd4bA1e=gAHziOfb_qpYpu860r0BEZDA6dE0Rgj0VDweT9A at mail dot gmail dot com> <CAFULd4b2MuyC1JDEv8wNbq4h7MEr9bxoVzk25UrEB7CzkKod3g at mail dot gmail dot com>
On Sat, Jan 24, 2015 at 2:16 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> On Sat, Jan 24, 2015 at 11:13 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
>> On Sat, Jan 24, 2015 at 3:50 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>>> On Fri, Jan 23, 2015 at 06:37:01PM -0800, H.J. Lu wrote:
>>>> The new Silvermont aswell and Broadwell model numbers are in
>>>>
>>>> http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-optimization-manual.pdf
>>>>
>>>> This patch updates host_detect_local_cpu to check new Silvermont, Haswell
>>>> and Broadwell model numbers. OK for trunk and 4.9 branch?
>>>>
>>>> Thanks.
>>>>
>>>
>>> There are more model numbers in CHAPTER 35 MODEL-SPECIFIC REGISTERS (MSRS):
>>>
>>> http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-system-programming-manual-325384.pdf
>>>
>>> OK for trunk and 4.9 branch?
>>>
>>> Thanks.
>>>
>>>
>>> H.J.
>>> ---
>>> 2015-01-23 H.J. Lu <hongjiu.lu@intel.com>
>>>
>>> * config/i386/driver-i386.c (host_detect_local_cpu): Check new
>>> Silvermont, Haswell, Broadwell and Knights Landing model numbers.
>>
>> Please also update /libgcc/config/i386/cpuinfo.c and relevant testsuite files.
>
> Huh, complete AVX512 handling is missing in the above file. Adding Kirill to CC:
>
> Uros.
Yes, model 0x4d is Sky Lake. Kirill, I don't think we want to tune it like KNL.
I think it is closer to Broadwell than KNL. Before we have -mtune=skylake, we
should make -mtune=native as -mtune=broadwell on Sky Lake.
--
H.J.