diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2011-02-20 12:37:50 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2011-02-20 12:37:50 +0000 |
commit | ed9b934f65d82324506f03e2db2834682c7a8914 (patch) | |
tree | f9eb5310a278d45abf817090ac930efe6f9c42f2 /docs | |
parent | 1a4021a2be4a59e9f9010776cb6f72107241aeb5 (diff) |
Fix 9267; Add vector zext support.
The DAGCombiner folds the zext into complex load instructions. This patch
prevents this optimization on vectors since none of the supported targets
knows how to perform load+vector_zext in one instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126080 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/LangRef.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index fa6a078465..81fa8cc6e8 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -4614,10 +4614,11 @@ entry: <h5>Arguments:</h5> -<p>The '<tt>zext</tt>' instruction takes a value to cast, which must be of - <a href="#t_integer">integer</a> type, and a type to cast it to, which must - also be of <a href="#t_integer">integer</a> type. The bit size of the - <tt>value</tt> must be smaller than the bit size of the destination type, +<p>The '<tt>zext</tt>' instruction takes a value to cast, and a type to cast it to. + Both types must be of <a href="#t_integer">integer</a> types, or vectors + of the same number of integers. + The bit size of the <tt>value</tt> must be smaller than + the bit size of the destination type, <tt>ty2</tt>.</p> <h5>Semantics:</h5> @@ -4630,6 +4631,7 @@ entry: <pre> %X = zext i32 257 to i64 <i>; yields i64:257</i> %Y = zext i1 true to i32 <i>; yields i32:1</i> + %Z = zext <2 x i16> <i16 8, i16 7> to <2 x i32> <i>; yields <i32 8, i32 7></i> </pre> </div> |