From patchwork Mon Nov 12 00:52:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [doc,committed] Fix sincos documentation X-Patchwork-Submitter: Oleg Endo X-Patchwork-Id: 198315 Message-Id: <1352681570.8110.348.camel@yam-132-YW-E178-FTW> To: gcc-patches Date: Mon, 12 Nov 2012 01:52:50 +0100 From: Oleg Endo List-Id: 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. 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