From 4dd832d24133612f09af3c4fb0d36e63fb5ee6f3 Mon Sep 17 00:00:00 2001
From: Mon P Wang
Date: Tue, 9 Dec 2008 05:46:39 +0000
Subject: Fix getNode to allow a vector for the shift amount for shifts of
vectors. Fix the shift amount when unrolling a vector shift into scalar
shifts. Fix problem in getShuffleScalarElt where it assumes that the input of
a bit convert must be a vector.
llvm-svn: 60740
---
llvm/docs/LangRef.html | 3 +++
1 file changed, 3 insertions(+)
(limited to 'llvm/docs')
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html
index 74027cebe6d..48b619a74ba 100644
--- a/llvm/docs/LangRef.html
+++ b/llvm/docs/LangRef.html
@@ -2591,6 +2591,7 @@ equal to or larger than the number of bits in op1, the result is undefi
<result> = shl i32 4, 2 ; yields {i32}: 16
<result> = shl i32 1, 10 ; yields {i32}: 1024
<result> = shl i32 1, 32 ; undefined
+ <result> = shl <2 x i32> < i32 1, i32 1>, < i32 1, i32 2> ; yields: result=<2 x i32> < i32 2, i32 4>
@@ -2624,6 +2625,7 @@ the number of bits in op1, the result is undefined.
<result> = lshr i8 4, 3 ; yields {i8}:result = 0
<result> = lshr i8 -2, 1 ; yields {i8}:result = 0x7FFFFFFF
<result> = lshr i32 1, 32 ; undefined
+ <result> = lshr <2 x i32> < i32 -2, i32 4>, < i32 1, i32 2> ; yields: result=<2 x i32> < i32 0x7FFFFFFF, i32 1>
@@ -2659,6 +2661,7 @@ larger than the number of bits in op1, the result is undefined.
<result> = ashr i8 4, 3 ; yields {i8}:result = 0
<result> = ashr i8 -2, 1 ; yields {i8}:result = -1
<result> = ashr i32 1, 32 ; undefined
+ <result> = ashr <2 x i32> < i32 -2, i32 4>, < i32 1, i32 3> ; yields: result=<2 x i32> < i32 -1, i32 0>
--
cgit v1.2.3