aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/md.texi
diff options
context:
space:
mode:
authorJesper Nilsson <jesper.nilsson@axis.com>2008-02-13 23:32:57 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2008-02-13 23:32:57 +0000
commit2a6627c21d96c41e27f727673548807a58369c90 (patch)
tree26a7675af96ece0f5fbd08271ab095795d033118 /gcc/doc/md.texi
parent4d85ec3472d6149912717f657cc29f19fe059a91 (diff)
downloadgcc-2a6627c21d96c41e27f727673548807a58369c90.zip
gcc-2a6627c21d96c41e27f727673548807a58369c90.tar.gz
gcc-2a6627c21d96c41e27f727673548807a58369c90.tar.bz2
md.texi (clz, ctz): Add reference.
2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com> * doc/md.texi (clz, ctz): Add reference. * doc/rtl.texi (clz, ctz): Likewise. From-SVN: r132301
Diffstat (limited to 'gcc/doc/md.texi')
-rw-r--r--gcc/doc/md.texi12
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi
index 540efd4..93ff187 100644
--- a/gcc/doc/md.texi
+++ b/gcc/doc/md.texi
@@ -4058,16 +4058,20 @@ corresponds to the C data type @code{int}.
@cindex @code{clz@var{m}2} instruction pattern
@item @samp{clz@var{m}2}
Store into operand 0 the number of leading 0-bits in @var{x}, starting
-at the most significant bit position. If @var{x} is 0, the result is
-undefined. @var{m} is the mode of operand 0; operand 1's mode is
+at the most significant bit position. If @var{x} is 0, the
+@code{CLZ_DEFINED_VALUE_AT_ZERO} (@pxref{Misc}) macro defines if
+the result is undefined or has a useful value.
+@var{m} is the mode of operand 0; operand 1's mode is
specified by the instruction pattern, and the compiler will convert the
operand to that mode before generating the instruction.
@cindex @code{ctz@var{m}2} instruction pattern
@item @samp{ctz@var{m}2}
Store into operand 0 the number of trailing 0-bits in @var{x}, starting
-at the least significant bit position. If @var{x} is 0, the result is
-undefined. @var{m} is the mode of operand 0; operand 1's mode is
+at the least significant bit position. If @var{x} is 0, the
+@code{CTZ_DEFINED_VALUE_AT_ZERO} (@pxref{Misc}) macro defines if
+the result is undefined or has a useful value.
+@var{m} is the mode of operand 0; operand 1's mode is
specified by the instruction pattern, and the compiler will convert the
operand to that mode before generating the instruction.