diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-05-14 16:50:20 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-05-14 16:50:20 +0000 |
commit | c6749c42c35e09b1b810f4c645551f0d69a22717 (patch) | |
tree | 6af09b76bca5c9c113749a44275eff966bdcb780 | |
parent | d6a85b54dea3cd7926839b4719957a493f70976f (diff) |
The wrapping behavior of part_set is not desirable. Adjust the
documentation to describe the desired behavior.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37036 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | docs/LangRef.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index 314cdb98f6..aa12f45e35 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -4700,15 +4700,15 @@ up to that size.</p> are replaced with corresponding bits from <tt>%repl</tt>. That is the 0th bit in <tt>%repl</tt> replaces the <tt>%lo</tt>th bit in <tt>%val</tt> and etc. up to the <tt>%hi</tt>th bit. -<p>In reverse mode, a similar computation is made except that the bits replaced -wrap around to include both the highest and lowest bits. For example, if a -16 bit value is being replaced then <tt>%lo=8</tt> and <tt>%hi=4</tt> would -cause these bits to be set: <tt>0xFF1F</tt>.</p> +<p>In reverse mode, a similar computation is made except that the bits are +reversed. That is, the <tt>0</tt>th bit in <tt>%repl</tt> replaces the +<tt>%hi</tt> bit in <tt>%val</tt> and etc. down to the <tt>%lo</tt>th bit. <h5>Examples:</h5> <pre> llvm.part.set(0xFFFF, 0, 4, 7) -> 0xFF0F - llvm.part.set(0xFFFF, 0, 7, 4) -> 0x0060 - llvm.part.set(0xFFFF, 0, 8, 3) -> 0x00F0 + llvm.part.set(0xFFFF, 0, 7, 4) -> 0xFF0F + llvm.part.set(0xFFFF, 1, 7, 4) -> 0xFF8F + llvm.part.set(0xFFFF, F, 8, 3) -> 0xFFE7 llvm.part.set(0xFFFF, 0, 3, 8) -> 0xFE07 </pre> </div> |