From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:47296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGKN4-0003Qs-VN for qemu-devel@nongnu.org; Tue, 16 Apr 2019 05:27:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGKN4-00055q-1s for qemu-devel@nongnu.org; Tue, 16 Apr 2019 05:27:18 -0400 References: <20190411100836.646-1-david@redhat.com> <20190411100836.646-28-david@redhat.com> <0f53d073-92ba-87e3-2dd4-4e4629ead801@linaro.org> From: David Hildenbrand Message-ID: <0ab17af4-e96c-8550-9b93-3d1a6fb2a231@redhat.com> Date: Tue, 16 Apr 2019 11:27:14 +0200 MIME-Version: 1.0 In-Reply-To: <0f53d073-92ba-87e3-2dd4-4e4629ead801@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v1 27/41] s390x/tcg: Implement VECTOR ELEMENT ROTATE LEFT LOGICAL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, Cornelia Huck , Thomas Huth , Richard Henderson On 13.04.19 02:15, Richard Henderson wrote: > On 4/11/19 12:08 AM, David Hildenbrand wrote: >> +#define DEF_ROTL(BITS) \ >> +static uint##BITS##_t rotl##BITS(uint##BITS##_t a, uint8_t count) \ >> +{ \ >> + count &= BITS - 1; \ >> + return (a << count) | (a >> (BITS - count)); \ >> +} >> +DEF_ROTL(8) >> +DEF_ROTL(16) > > We already have rol8 and rol16 in for this. > Otherwise, > Thanks, missed these helpers! > Reviewed-by: Richard Henderson > > This does point out that I should go ahead and fill out the > variable shift and rotate patterns in gvec... > > > r~ > -- Thanks, David / dhildenb