]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Clarify -mmovbe documentation
authorRichard Biener <rguenther@suse.de>
Mon, 8 Jan 2024 09:48:19 +0000 (10:48 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 8 Jan 2024 13:50:12 +0000 (14:50 +0100)
It was noticed that -mmovbe doesn't use movbe for __builtin_bswap{32,64}
when not optimizing.  The follownig adjusts the documentation to
say it will be used for optimizing and applies to all byte swaps,
not just those carried out via builtin function calls.

* doc/invoke.texi (-mmovbe): Clarify.

gcc/doc/invoke.texi

index 68d1f364ac05ad3d1a5d7ee25d375be8a89897b8..8cf99f395a544199ac0cf8ca60c742ce11ba6ecb 100644 (file)
@@ -34708,8 +34708,8 @@ see @ref{Other Builtins} for details.
 
 @opindex mmovbe
 @item -mmovbe
-This option enables use of the @code{movbe} instruction to implement
-@code{__builtin_bswap32} and @code{__builtin_bswap64}.
+This option enables use of the @code{movbe} instruction to optimize
+byte swapping of four and eight byte entities.
 
 @opindex mshstk
 @item -mshstk