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/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~


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