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: Richard Henderson <rth at twiddle dot net>
- To: Florian Weimer <fweimer at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 9 Mar 2016 11:16:35 -0500
- 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>
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),
present since d2a15bb86 (2011-08-18), in gcc 4.7,
IX86_ATTR_ISA ("avx512f", OPT_mavx512f),
IX86_ATTR_ISA ("avx512pf", OPT_mavx512pf),
IX86_ATTR_ISA ("avx512er", OPT_mavx512er),
IX86_ATTR_ISA ("avx512cd", OPT_mavx512cd),
IX86_ATTR_ISA ("avx512dq", OPT_mavx512dq),
IX86_ATTR_ISA ("avx512bw", OPT_mavx512bw),
IX86_ATTR_ISA ("avx512vl", OPT_mavx512vl),
present since e13e1b39a (2013-08-22), in gcc 4.9.
r~