From: Reid Spencer
Date: Mon, 14 May 2007 16:14:57 +0000 (+0000)
Subject: Revise definition of part_select. The wrapping behavior is not useful so
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d6a85b54dea3cd7926839b4719957a493f70976f;p=oota-llvm.git
Revise definition of part_select. The wrapping behavior is not useful so
in the reverse case the only difference is that the bits are returned in
reverse order.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37035 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 58e0e3c5f39..314cdb98f6a 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -4655,16 +4655,11 @@ only the %hiBit - %loBit bits set, as follows:
A mask of the retained bits is created by shifting a -1 value.
The mask is ANDed with %val to produce the result.
-In reverse mode, a similar computation is made except that:
-
- - The bits selected wrap around to include both the highest and lowest bits.
- For example, part.select(i16 X, 4, 7) selects bits from X with a mask of
- 0x00F0 (forwards case) while part.select(i16 X, 8, 3) selects bits from X
- with a mask of 0xFF0F.
- - The bits returned in the reverse case are reversed. So, if X has the value
- 0x6ACF and we apply part.select(i16 X, 8, 3) to it, we get back the value
- 0x0A6F.
-
+In reverse mode, a similar computation is made except that the bits are
+returned in the reverse order. So, for example, if X has the value
+i16 0x0ACF (101011001111) and we apply
+part.select(i16 X, 8, 3) to it, we get back the value
+i16 0x0026 (000000100110).