From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22456 invoked by alias); 9 Oct 2014 07:55:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 22446 invoked by uid 89); 9 Oct 2014 07:55:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 Oct 2014 07:55:40 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Thu, 09 Oct 2014 08:55:37 +0100 Received: from [10.1.203.42] ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 9 Oct 2014 08:55:36 +0100 Message-ID: <54363F8A.8020501@arm.com> Date: Thu, 09 Oct 2014 07:55:00 -0000 From: Tejas Belagod User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Michael Collison , "gcc-patches@gcc.gnu.org" Subject: Re: [ARM] Fix CLZ_DEFINED_VALUE_AT_ZERO for vector modes References: <543633BD.9030004@linaro.org> In-Reply-To: <543633BD.9030004@linaro.org> X-MC-Unique: 114100908553704401 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00740.txt.bz2 On 09/10/14 08:05, Michael Collison wrote: > > The CLZ_DEFINED_VALUE_AT_ZERO macro is harded to return 32. For the > vector intrinsic vclz this is incorrect and should return the value > eight. The CTZ_DEFINED_VALUE_AT_ZERO has the same issue. > > Tested on arm-linux-gnueabihf, arm-linux-gnueabi. > > 2014-10-08 Michael Collison > > * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update > to support vector modes > (CTZ_DEFINED_VALUE_AT_ZERO): Ditto > Update comment? /* The arm5 clz instruction returns 32. */ Thanks, Tejas.