Diversify examples
authorChris Lattner <sabre@nondot.org>
Wed, 18 Jun 2003 21:30:51 +0000 (21:30 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 18 Jun 2003 21:30:51 +0000 (21:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6778 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index 5a4ddc4c0e46f31582e94416b1bf4099d40a0520..7b70c43831eb2d4d8e38ec42caf2b87f46f2e65f 100644 (file)
@@ -1193,9 +1193,10 @@ argument is unsigned, zero bits shall fill the empty positions.<p>
 <h5>Example:</h5>
 <pre>
   &lt;result&gt; = shr int 4, ubyte %var   <i>; yields {int}:result = 4 >> %var</i>
-  &lt;result&gt; = shr int 4, ubyte 1      <i>; yields {int}:result = 2</i>
+  &lt;result&gt; = shr uint 4, ubyte 1     <i>; yields {uint}:result = 2</i>
   &lt;result&gt; = shr int 4, ubyte 2      <i>; yields {int}:result = 1</i>
-  &lt;result&gt; = shr int 4, ubyte 3      <i>; yields {int}:result = 0</i>
+  &lt;result&gt; = shr sbyte 4, ubyte 3    <i>; yields {sbyte}:result = 0</i>
+  &lt;result&gt; = shr sbyte -2, ubyte 1   <i>; yields {sbyte}:result = -1</i>
 </pre>
 
 
@@ -1810,7 +1811,7 @@ arbitrarily complex and require memory allocation, for example.<p>
 <address><a href="mailto:sabre@nondot.org">Chris Lattner</a></address>
 <!-- Created: Tue Jan 23 15:19:28 CST 2001 -->
 <!-- hhmts start -->
-Last modified: Wed Jun 18 16:27:39 CDT 2003
+Last modified: Wed Jun 18 16:29:55 CDT 2003
 <!-- hhmts end -->
 </font>
 </body></html>