]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Document -mprefer-avx128
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 2 Oct 2012 21:24:45 +0000 (21:24 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 2 Oct 2012 21:24:45 +0000 (14:24 -0700)
Backported from mainline
PR target/54785
* doc/invoke.texi: Document -mprefer-avx128.

From-SVN: r192009

gcc/ChangeLog
gcc/doc/invoke.texi

index 3bdfda68265afc9b6c14804c403e97a675b8b345..a4702008212866233f888b796491d0666939f02c 100644 (file)
@@ -1,3 +1,11 @@
+2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       Backported from mainline
+       2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/54785
+       * doc/invoke.texi: Document -mprefer-avx128.
+
 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
 
        Backported from mainline
index 45bfec87aceb7dd9d6b8a6f34cc1ab31c84b756a..4e56044d8fc59a59de666cd0773539a64e57b87a 100644 (file)
@@ -598,7 +598,8 @@ Objective-C and Objective-C++ Dialects}.
 -mno-wide-multiply  -mrtd  -malign-double @gol
 -mpreferred-stack-boundary=@var{num}
 -mincoming-stack-boundary=@var{num} @gol
--mcld -mcx16 -msahf -mmovbe -mcrc32 -mrecip -mvzeroupper @gol
+-mcld -mcx16 -msahf -mmovbe -mcrc32 -mrecip @gol
+-mvzeroupper -mprefer-avx128 @gol
 -mmmx  -msse  -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx @gol
 -maes -mpclmul -mfsgsbase -mrdrnd -mf16c -mfused-madd @gol
 -msse4a -m3dnow -mpopcnt -mabm -mbmi -mtbm -mfma4 -mxop -mlwp @gol
@@ -12705,6 +12706,11 @@ before a transfer of control flow out of the function to minimize
 AVX to SSE transition penalty as well as remove unnecessary 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 will enable GCC to use CMPXCHG16B instruction in generated code.