Patchwork [doc,committed] Fix sincos documentation

login
register
mail settings
Submitter Oleg Endo
Date Nov. 12, 2012, 12:52 a.m.
Message ID <1352681570.8110.348.camel@yam-132-YW-E178-FTW>
Download mbox | patch
Permalink /patch/198315/
State New
Headers show

Comments

Oleg Endo - Nov. 12, 2012, 12:52 a.m.
Hello,

The documentation of the standard name pattern sincos is wrong about the
the operands for sine and cosine.  Operand 0 is cosine and operand 1 is
sine, not the other way around.
The attached patch corrects this.

Tested with 'make info dvi pdf'.
Committed as obvious as rev 193424.

Cheers,
Oleg

ChangeLog:

	* doc/md.texi (Standard Pattern Names For Generation): Fix 
	swapped sine and cosine operands in the sincos description.

Patch

Index: gcc/doc/md.texi
===================================================================
--- gcc/doc/md.texi	(revision 193422)
+++ gcc/doc/md.texi	(working copy)
@@ -4884,7 +4884,7 @@ 
 
 @cindex @code{sincos@var{m}3} instruction pattern
 @item @samp{sincos@var{m}3}
-Store the sine of operand 2 into operand 0 and the cosine of
+Store the cosine of operand 2 into operand 0 and the sine of
 operand 2 into operand 1.
 
 The @code{sin} and @code{cos} built-in functions of C always use the