This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] tst-audit4, tst-audit10: Compile AVX/AVX-512 code separately [BZ #19269]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]