This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] i386: Enable AVX/AVX512 features only if supported by OSXSAVE
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Ilya Verbin <iverbin at gmail dot com>
- Cc: Uros Bizjak <ubizjak at gmail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 30 Mar 2018 10:56:01 -0700
- Subject: Re: [PATCH] i386: Enable AVX/AVX512 features only if supported by OSXSAVE
- References: <20180329124309.GA12667@intel.com> <CAFULd4a8woMkc9w4kOkSWoDs=B_TWj3-hKRJ28=GO2H6BCi3Lw@mail.gmail.com> <CADG=Z0E96J-mS-5cpRo3FimKg0Y5YN2YSWmdUZu1xYEu+Cc9ag@mail.gmail.com>
On Fri, Mar 30, 2018 at 10:19 AM, Ilya Verbin <iverbin@gmail.com> wrote:
> This check will always disable AVX-512 on macOS, because they
> implemented on-demand support:
> https://github.com/apple/darwin-xnu/blob/0a798f6738bc1db01281fc08ae024145e84df927/osfmk/i386/fpu.c#L176
>
Isn't xsaveopt designed for this?
--
H.J.