diff --git a/docs/LangRef.html b/docs/LangRef.html index 5a4ddc4c0e4..7b70c43831e 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -1193,9 +1193,10 @@ argument is unsigned, zero bits shall fill the empty positions.

Example:
   <result> = shr int 4, ubyte %var   ; yields {int}:result = 4 >> %var
-  <result> = shr int 4, ubyte 1      ; yields {int}:result = 2
+  <result> = shr uint 4, ubyte 1     ; yields {uint}:result = 2
   <result> = shr int 4, ubyte 2      ; yields {int}:result = 1
-  <result> = shr int 4, ubyte 3      ; yields {int}:result = 0
+  <result> = shr sbyte 4, ubyte 3    ; yields {sbyte}:result = 0
+  <result> = shr sbyte -2, ubyte 1   ; yields {sbyte}:result = -1
 
@@ -1810,7 +1811,7 @@ arbitrarily complex and require memory allocation, for example.

Chris Lattner
-Last modified: Wed Jun 18 16:27:39 CDT 2003 +Last modified: Wed Jun 18 16:29:55 CDT 2003