Commit 2a6627c2 by Jesper Nilsson Committed by Hans-Peter Nilsson

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
parent 4d85ec34
2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
* doc/md.texi (clz, ctz): Add reference.
* doc/rtl.texi (clz, ctz): Likewise.
2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR other/35148 PR other/35148
......
...@@ -4058,16 +4058,20 @@ corresponds to the C data type @code{int}. ...@@ -4058,16 +4058,20 @@ corresponds to the C data type @code{int}.
@cindex @code{clz@var{m}2} instruction pattern @cindex @code{clz@var{m}2} instruction pattern
@item @samp{clz@var{m}2} @item @samp{clz@var{m}2}
Store into operand 0 the number of leading 0-bits in @var{x}, starting 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 at the most significant bit position. If @var{x} is 0, the
undefined. @var{m} is the mode of operand 0; operand 1's mode is @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 specified by the instruction pattern, and the compiler will convert the
operand to that mode before generating the instruction. operand to that mode before generating the instruction.
@cindex @code{ctz@var{m}2} instruction pattern @cindex @code{ctz@var{m}2} instruction pattern
@item @samp{ctz@var{m}2} @item @samp{ctz@var{m}2}
Store into operand 0 the number of trailing 0-bits in @var{x}, starting 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 at the least significant bit position. If @var{x} is 0, the
undefined. @var{m} is the mode of operand 0; operand 1's mode is @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 specified by the instruction pattern, and the compiler will convert the
operand to that mode before generating the instruction. operand to that mode before generating the instruction.
......
...@@ -2218,7 +2218,7 @@ valid. ...@@ -2218,7 +2218,7 @@ valid.
Represents the number of leading 0-bits in @var{x}, represented as an Represents the number of leading 0-bits in @var{x}, represented as an
integer of mode @var{m}, starting at the most significant bit position. integer of mode @var{m}, starting at the most significant bit position.
If @var{x} is zero, the value is determined by If @var{x} is zero, the value is determined by
@code{CLZ_DEFINED_VALUE_AT_ZERO}. Note that this is one of @code{CLZ_DEFINED_VALUE_AT_ZERO} (@pxref{Misc}). Note that this is one of
the few expressions that is not invariant under widening. The mode of the few expressions that is not invariant under widening. The mode of
@var{x} will usually be an integer mode. @var{x} will usually be an integer mode.
...@@ -2227,7 +2227,7 @@ the few expressions that is not invariant under widening. The mode of ...@@ -2227,7 +2227,7 @@ the few expressions that is not invariant under widening. The mode of
Represents the number of trailing 0-bits in @var{x}, represented as an Represents the number of trailing 0-bits in @var{x}, represented as an
integer of mode @var{m}, starting at the least significant bit position. integer of mode @var{m}, starting at the least significant bit position.
If @var{x} is zero, the value is determined by If @var{x} is zero, the value is determined by
@code{CTZ_DEFINED_VALUE_AT_ZERO}. Except for this case, @code{CTZ_DEFINED_VALUE_AT_ZERO} (@pxref{Misc}). Except for this case,
@code{ctz(x)} is equivalent to @code{ffs(@var{x}) - 1}. The mode of @code{ctz(x)} is equivalent to @code{ffs(@var{x}) - 1}. The mode of
@var{x} will usually be an integer mode. @var{x} will usually be an integer mode.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment