mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-05 09:24:28 +00:00
ctlz = most signficant bits, cttz = least sig
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -149,8 +149,8 @@
|
|||||||
<li><a href="#int_count">Bit counting Intrinsics</a>
|
<li><a href="#int_count">Bit counting Intrinsics</a>
|
||||||
<ol>
|
<ol>
|
||||||
<li><a href="#int_ctpop">'<tt>llvm.ctpop</tt>' Intrinsic </a></li>
|
<li><a href="#int_ctpop">'<tt>llvm.ctpop</tt>' Intrinsic </a></li>
|
||||||
<li><a href="#int_cttz">'<tt>llvm.cttz</tt>' Intrinsic </a></li>
|
|
||||||
<li><a href="#int_ctlz">'<tt>llvm.ctlz</tt>' Intrinsic </a></li>
|
<li><a href="#int_ctlz">'<tt>llvm.ctlz</tt>' Intrinsic </a></li>
|
||||||
|
<li><a href="#int_cttz">'<tt>llvm.cttz</tt>' Intrinsic </a></li>
|
||||||
</ol>
|
</ol>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#int_debugger">Debugger intrinsics</a></li>
|
<li><a href="#int_debugger">Debugger intrinsics</a></li>
|
||||||
@ -3203,40 +3203,6 @@ The '<tt>llvm.ctpop</tt>' intrinsic counts the 1's in a variable.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- _______________________________________________________________________ -->
|
|
||||||
<div class="doc_subsubsection">
|
|
||||||
<a name="int_cttz">'<tt>llvm.cttz</tt>' Intrinsic</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="doc_text">
|
|
||||||
|
|
||||||
<h5>Syntax:</h5>
|
|
||||||
<pre>
|
|
||||||
declare int %llvm.cttz(int <src>)
|
|
||||||
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<h5>Overview:</h5>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
The '<tt>llvm.cttz</tt>' intrinsic counts the number of trailing zeros.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h5>Arguments:</h5>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
The only argument is the value to be counted. The argument may be of any
|
|
||||||
integer type. The return type must match the argument type.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h5>Semantics:</h5>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
The '<tt>llvm.cttz</tt>' intrinsic counts the trailing zeros in a variable. If
|
|
||||||
the src == 0 then the result is the size in bits of the type of src.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- _______________________________________________________________________ -->
|
<!-- _______________________________________________________________________ -->
|
||||||
<div class="doc_subsubsection">
|
<div class="doc_subsubsection">
|
||||||
<a name="int_ctlz">'<tt>llvm.ctlz</tt>' Intrinsic</a>
|
<a name="int_ctlz">'<tt>llvm.ctlz</tt>' Intrinsic</a>
|
||||||
@ -3267,12 +3233,49 @@ integer type. The return type must match the argument type.
|
|||||||
<h5>Semantics:</h5>
|
<h5>Semantics:</h5>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The '<tt>llvm.ctlz</tt>' intrinsic counts the leading zeros in a variable. If
|
The '<tt>llvm.ctlz</tt>' intrinsic counts the leading (most significant) zeros
|
||||||
the src == 0 then the result is the size in bits of the type of src.
|
in a variable. If the src == 0 then the result is the size in bits of the type
|
||||||
|
of src. For example, <tt>llvm.cttz(int 2) = 30</tt>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- _______________________________________________________________________ -->
|
||||||
|
<div class="doc_subsubsection">
|
||||||
|
<a name="int_cttz">'<tt>llvm.cttz</tt>' Intrinsic</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="doc_text">
|
||||||
|
|
||||||
|
<h5>Syntax:</h5>
|
||||||
|
<pre>
|
||||||
|
declare int %llvm.cttz(int <src>)
|
||||||
|
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<h5>Overview:</h5>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The '<tt>llvm.cttz</tt>' intrinsic counts the number of trailing zeros.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h5>Arguments:</h5>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The only argument is the value to be counted. The argument may be of any
|
||||||
|
integer type. The return type must match the argument type.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h5>Semantics:</h5>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The '<tt>llvm.cttz</tt>' intrinsic counts the trailing (least significant) zeros
|
||||||
|
in a variable. If the src == 0 then the result is the size in bits of the type
|
||||||
|
of src. For example, <tt>llvm.cttz(2) = 1</tt>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- ======================================================================= -->
|
<!-- ======================================================================= -->
|
||||||
<div class="doc_subsection">
|
<div class="doc_subsection">
|
||||||
<a name="int_debugger">Debugger Intrinsics</a>
|
<a name="int_debugger">Debugger Intrinsics</a>
|
||||||
|
Reference in New Issue
Block a user