This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -mavx option
On Thursday 26 of January 2012 09:52:22 Ulrich Drepper wrote:
> I think gcc is missing an option since -mavx controls two different
> things. First, the generation of VEX-encoded instructions. Second,
> the use of ymm registers. The latter is not always available when the
> former is and using VEX-encoded instructions by themselves can have an
> advantage. Currently, when OSXAVE is not available (use xgetbv to
> test etc etc) then I cannot use code which gcc generates with -mavx
> even though I am only interested in the VEX encoding.
>
> Could we have a -mvex option which is automatically implied in -mavx?
there's a -msse2avx option. is it enough?