diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-18 21:30:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-18 21:30:51 +0000 |
commit | 8c6bb90b8ef7acad87d3fb7424dce02ee81fedd1 (patch) | |
tree | c669f903c2be97361ea712f841b0c4276f7bebb4 /docs/LangRef.html | |
parent | b5561ffaf2defae1c72f2ac50f652c58e3380f91 (diff) | |
download | external_llvm-8c6bb90b8ef7acad87d3fb7424dce02ee81fedd1.zip external_llvm-8c6bb90b8ef7acad87d3fb7424dce02ee81fedd1.tar.gz external_llvm-8c6bb90b8ef7acad87d3fb7424dce02ee81fedd1.tar.bz2 |
Diversify examples
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
-rw-r--r-- | docs/LangRef.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index 5a4ddc4..7b70c43 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -1193,9 +1193,10 @@ argument is unsigned, zero bits shall fill the empty positions.<p> <h5>Example:</h5> <pre> <result> = shr int 4, ubyte %var <i>; yields {int}:result = 4 >> %var</i> - <result> = shr int 4, ubyte 1 <i>; yields {int}:result = 2</i> + <result> = shr uint 4, ubyte 1 <i>; yields {uint}:result = 2</i> <result> = shr int 4, ubyte 2 <i>; yields {int}:result = 1</i> - <result> = shr int 4, ubyte 3 <i>; yields {int}:result = 0</i> + <result> = shr sbyte 4, ubyte 3 <i>; yields {sbyte}:result = 0</i> + <result> = 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> |