From 01f8d09dd327a8534dac1d373a7ba52af91dd378 Mon Sep 17 00:00:00 2001 From: Mon P Wang Date: Wed, 10 Dec 2008 08:55:09 +0000 Subject: [PATCH] Added a little more information that vector shifts require vector shift amount. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60831 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index 48b619a74ba..384856043ca 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -2584,7 +2584,9 @@ type. 'op2' is treated as an unsigned value.

The value produced is op1 * 2op2 mod 2n, where n is the width of the result. If op2 is (statically or dynamically) negative or -equal to or larger than the number of bits in op1, the result is undefined.

+equal to or larger than the number of bits in op1, the result is undefined. +If the arguments are vectors, each vector element of op1 is shifted by the +corresponding shift amount in op2.

Example:
   <result> = shl i32 4, %var   ; yields {i32}: 4 << %var
@@ -2616,7 +2618,9 @@ type.  'op2' is treated as an unsigned value.

This instruction always performs a logical shift right operation. The most significant bits of the result will be filled with zero bits after the shift. If op2 is (statically or dynamically) equal to or larger than -the number of bits in op1, the result is undefined.

+the number of bits in op1, the result is undefined. If the arguments are +vectors, each vector element of op1 is shifted by the corresponding shift +amount in op2.

Example:
@@ -2651,8 +2655,9 @@ type.  'op2' is treated as an unsigned value.

This instruction always performs an arithmetic shift right operation, The most significant bits of the result will be filled with the sign bit of op1. If op2 is (statically or dynamically) equal to or -larger than the number of bits in op1, the result is undefined. -

+larger than the number of bits in op1, the result is undefined. If the +arguments are vectors, each vector element of op1 is shifted by the +corresponding shift amount in op2.

Example: