This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Use AVX/AVX512 selectively
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 01 Mar 2016 16:02:42 +0100
- Subject: Use AVX/AVX512 selectively
- Authentication-results: sourceware.org; auth=none
What's the correct way to use AVX and AVX512 selectively?
Specifying -mavx512f (for example) on the command line causes GCC 6 to
use such instructions during regular code generation, even without any
AVX512F instructions in the code.
According to the documentation, the target function attribute does not
support "avx512f".
Are there other options besides separate compilation?