From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1216 invoked by alias); 9 Nov 2015 22:30:30 -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 1198 invoked by uid 89); 9 Nov 2015 22:30:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 09 Nov 2015 22:30:29 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 54B68372584; Mon, 9 Nov 2015 22:30:28 +0000 (UTC) Received: from localhost.localdomain (ovpn-113-142.phx2.redhat.com [10.3.113.142]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tA9MUR1W027321; Mon, 9 Nov 2015 17:30:28 -0500 Subject: Re: Add internal bitcount functions To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com References: <8737wirnvi.fsf@e105548-lin.cambridge.arm.com> From: Jeff Law Message-ID: <56411E83.8040304@redhat.com> Date: Mon, 09 Nov 2015 22:30:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <8737wirnvi.fsf@e105548-lin.cambridge.arm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg01115.txt.bz2 On 11/07/2015 05:32 AM, Richard Sandiford wrote: > This patch adds internal function equivalents of all the INT_FN functions. > Unlike the math functions, these functions never set errno and the internal > functions should be exactly equivalent to the built-in ones. The reason > for defining the internal functions is so that we can extend the > functionality to other modes, in particular vector modes. > > Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi. > OK to install? > > Thanks, > Richard > > > gcc/ > * internal-fn.def (DEF_INTERNAL_INT_FN): New macro. > (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions. > * builtins.c (associated_internal_fn): Handle them. OK. jeff