This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, i386] PR 57927: -march=core-avx2 different than -march=native on INTEL Haswell (i7-4700K)
- 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>, Christian Widmer <shadow at umbrox dot de>
- Date: Tue, 27 Aug 2013 10:36:06 -0700
- Subject: Re: [PATCH, i386] PR 57927: -march=core-avx2 different than -march=native on INTEL Haswell (i7-4700K)
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4ZO-N3GsCB725zuvtnTbZ_sTkVwTLR6faYFVKcaqdQ6gA at mail dot gmail dot com>
On Tue, Aug 27, 2013 at 10:28 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> Hello!
>
>> As reported in [1] the host processor detection has not yet been updated
>> to recognize Intel Ivy Bridge and Haswell processors.
>> This small patch adds the detection of these processors and assumes
>> core-avx2 as march for unknown processors of the PENTIUMPRO family that
>> support AVX2.
>
> I have committed slightly improved (attached) patch that uses
> core-avx-i for IvyBridge and adds another IvyBridge model number.
> While there, I also reordered a bunch of statements.
>
> Thanks,
> Uros.
Page C-3 in ntel optimization guide shows:
06_3CH, 06_45H, 06_46H Intel microarchitecture Haswell
06_3AH, 06_3EH Intel microarchitecture Ivy Bridge
06_2AH, 06_2DH Intel microarchitecture Sandy Bridge
06_25H, 06_2CH, 06_2FH Intel microarchitecture Westmere
06_1AH, 06_1EH, 06_1FH, Intel microarchitecture Nehalem
06_2EH
06_17H, 06_1DH Enhanced Intel Core microarchitecture
06_0FH Intel Core microarchitecture
At least, we should add 0x45 and 0x46 to Haswell.
--
H.J.