diff mbox

PATCH: PR target/54785: Document -mprefer-avx128

Message ID 20121002210136.GA27857@gmail.com
State New
Headers show

Commit Message

H.J. Lu Oct. 2, 2012, 9:01 p.m. UTC
Hi,

This patch documents -mprefer-avx128.  OK for trunk and 4.7?

Thanks.


H.J.
---
2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/54785
	* doc/invoke.texi: Document -mprefer-avx128.

Comments

Uros Bizjak Oct. 2, 2012, 9:08 p.m. UTC | #1
On Tue, Oct 2, 2012 at 11:01 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>
> This patch documents -mprefer-avx128.  OK for trunk and 4.7?
>
> 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
>
>         PR target/54785
>         * doc/invoke.texi: Document -mprefer-avx128.

OK everywhere.

Thanks,
Uros.
diff mbox

Patch

diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 7578dda..0e7e441 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -630,7 +630,7 @@  Objective-C and Objective-C++ Dialects}.
 -mincoming-stack-boundary=@var{num} @gol
 -mcld -mcx16 -msahf -mmovbe -mcrc32 @gol
 -mrecip -mrecip=@var{opt} @gol
--mvzeroupper @gol
+-mvzeroupper -mprefer-avx128 @gol
 -mmmx  -msse  -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx @gol
 -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mf16c -mfma @gol
 -msse4a -m3dnow -mpopcnt -mabm -mbmi -mtbm -mfma4 -mxop -mlzcnt @gol
@@ -13926,6 +13926,11 @@  before a transfer of control flow out of the function to minimize
 the AVX to SSE transition penalty as well as remove unnecessary @code{zeroupper}
 intrinsics.
 
+@item -mprefer-avx128
+@opindex mprefer-avx128
+This option instructs GCC to use 128-bit AVX instructions instead of
+256-bit AVX instructions in the auto-vectorizer.
+
 @item -mcx16
 @opindex mcx16
 This option enables GCC to generate @code{CMPXCHG16B} instructions.