This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, i386] PR 59422 - Support more targets for function multi versioning
- From: Allan Sandfeld Jensen <carewolf at gmail dot com>
- To: "Gopalasubramanian, Ganesh" <Ganesh dot Gopalasubramanian at amd dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Uros Bizjak <ubizjak at gmail dot com>
- Date: Thu, 19 Dec 2013 10:54:25 +0100
- Subject: Re: [Patch, i386] PR 59422 - Support more targets for function multi versioning
- Authentication-results: sourceware.org; auth=none
- References: <201312151954 dot 38590 dot linux at carewolf dot com> <201312181836 dot 07898 dot linux at carewolf dot com> <EB4625145972F94C9680D8CADD6516155E790579 at SATLEXDAG02 dot amd dot com>
On Thursday 19 December 2013, Gopalasubramanian, Ganesh wrote:
> > Yes, I changed that in the last patch, though I consider it momentarily
> > problematic because you do not yet enable AVX with march=btver2 (AVX
> > versions would currently be better than btver2 versions for a btver2
> > arch), but expect
>
> march=btver2 will be fixed soon.
>
> The " processor_alias_table" entry for "btver2" in i386.c enables AVX.
>
> <snip>
> {"btver2", PROCESSOR_BTVER2, CPU_BTVER2,
> PTA_64BIT | PTA_MMX | PTA_SSE | PTA_SSE2 | PTA_SSE3
>
> | PTA_SSSE3 | PTA_SSE4A |PTA_ABM | PTA_CX16 | PTA_SSE4_1
> | PTA_SSE4_2 | PTA_AES | PTA_PCLMUL | PTA_AVX
> | PTA_BMI | PTA_F16C | PTA_MOVBE | PTA_PRFCHW
> | PTA_FXSR | PTA_XSAVE | PTA_XSAVEOPT},
>
> </snip>
>
> The assembly listing for a simple test (compiled with -march=btver2) also
> has -mavx enabled. So, can you please enable AVX for btver2?
>
Sorry, I must have been looking at an older version, but as I said I already
did enable it in the latest patch. (see http://gcc.gnu.org/ml/gcc-patches/2013-12/msg01577.html )
`Allan