This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] tst-audit4, tst-audit10: Compile AVX/AVX-512 code separately [BZ #19269]
- From: Florian Weimer <fweimer at redhat dot com>
- To: Richard Henderson <rth at twiddle dot net>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 10 Mar 2016 11:54:34 +0100
- Subject: Re: [PATCH] tst-audit4, tst-audit10: Compile AVX/AVX-512 code separately [BZ #19269]
- Authentication-results: sourceware.org; auth=none
- References: <56DD9703 dot 3060303 at redhat dot com> <56E04C63 dot 6060305 at twiddle dot net>
On 03/09/2016 05:16 PM, Richard Henderson wrote:
> On 03/07/2016 09:58 AM, Florian Weimer wrote:
>> This ensures that GCC will not use unsupported instructions before the
>> run-time check to ensure support.
>>
>> According to the GCC documentation, "avx" and "avx512f" are not
>> currently supported as function target attributes, so this seems the
>> most conservative fix.
>
> Someone forgot to update the documentation.
>
> IX86_ATTR_ISA ("avx", OPT_mavx),
>
> present since 342ad2d6a (2008-12-08), in gcc 4.4,
>
> IX86_ATTR_ISA ("avx2", OPT_mavx2),
Oh. Well, then we could have done with a single input file. (I asked
on gcc-help, and the advice I got wasn't very clear, unfortunately.)
Florian