[PATCH] Compile AVX libm functions with -mavx -mprefer-avx128

H.J. Lu hjl.tools@gmail.com
Tue Oct 2 21:28:00 GMT 2012


On Tue, Oct 2, 2012 at 2:12 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Tuesday 02 October 2012 16:54:11 H.J. Lu wrote:
>> Here is a patch to compile AVX libm functions with -mavx -mprefer-avx128.
>
> do we need to test for -mavx too ?  that was added to gcc-4.4, but our current
> min ver is gcc-4.3 ...

It checks -mprefer-avx128. All GCC which support  -mprefer-avx128 also
support -mavx.


-- 
H.J.



More information about the Libc-alpha mailing list