From patchwork Thu Aug 17 09:47:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 110304 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1955527qge; Thu, 17 Aug 2017 02:47:23 -0700 (PDT) X-Received: by 10.99.107.193 with SMTP id g184mr4358970pgc.167.1502963243334; Thu, 17 Aug 2017 02:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502963243; cv=none; d=google.com; s=arc-20160816; b=pjEpmOUJGRgpxd6zlaJf3Xknp97QABIUI92i1aYsbTkuQ8gPDHZttFREKfeRMVY1Ci 3+UbQfERfA3sI1AR2EqfJjWkcgRsf3rDWVqb9JkxuPYduv3uv8ILN/6FqJytnb5+PqiH cQlAQmX7+v0hoG6CSP9ufXVAmAPJUVMaD2teO8ZQUl/ggWjSeJgub/MXg4t0vILxI7rL rmcfYxW1wRzZ7nvd9G7ySxAeik0BLagdGOIqDAlYbdMpH8cIjtEKJrHISaNvN0rJYwlL vSLI3ATIHMmVS07214/wb8NL4yp3EC5u4AT5EIuSKj0T4gIuDeLQYEEaBDLxNWivIbau FFYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:message-id:date:subject:mail-followup-to:to :from:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=7N113y+iR5Yfeuukg3gHnWa90u73xfLTemj85Hq1wTk=; b=NAEYp9n108g6XUa6k1pY0zkAxMMtOX13EWt9KxbNrbEzfGDcDnQqnaKBrRo1RaT7QM DsK6PhU7VITHt3BZNzojzwOMoiG/F1iBbVqW7jMAVsnhN5FvmZh7QEVkR9o6476RIftn 6kA+bLEkNciZEeEuspagFgPgUAFstUCKdJAsr/2l5ElOrOKb4aywD8qUqhNBNO6WVGQb LRURMNXQETuN53J4PMfwdoCPlpZ5lMgrt6zZ7UKT8aj5dEsboZu5VFj7g+u+8kJGUtBe Hv+N38qUfEbNpltgGFr92HTAk5ZiJX0aUL5pcFOgFihw0xvRYzQYoB9QTKhmaM5QPkKu 9MMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=pOfIQU8R; spf=pass (google.com: domain of gcc-patches-return-460486-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-460486-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id g193si1759953pgc.772.2017.08.17.02.47.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Aug 2017 02:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-460486-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=pOfIQU8R; spf=pass (google.com: domain of gcc-patches-return-460486-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-460486-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=ioWKVn9hJWZ51+S0VAYdLVnzCX8AwtyxFq734uZkk57TGLsWcsX/k xa8PnEzWm4L8kU5Ouz8wwoeNDVHckq4PtQFgVHan5CWJ4YOT4dUl0vDlhhkyjYMg ukJ+k5iwdL0dgOpGuLrBeKY7CcSeYnDeokTa0IqQ2pnHfen1gEmmP0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=5RwAqfwoIBb05/BBeGF1ak3LQnU=; b=pOfIQU8RdieX240VZmT2 tvuUXkgaUSUDWtPbTDZN6hWsIcY6/Ba0INqPRPvaAyK8+KvN4JE8SuOQCGvgkOWv 7OCwLjE/ZtGi+fr/QACK27kSac/D+bbzJWmVPPxaYUOoN7sVUARB69N2SbS2rdE3 m8S4DsMiGuNKYXh//pq7FVM= Received: (qmail 98059 invoked by alias); 17 Aug 2017 09:47:09 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 98030 invoked by uid 89); 17 Aug 2017 09:47:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS, UPPERCASE_50_75 autolearn=ham version=3.3.2 spammy=H*r:threembb.co.uk, HX-Received:10.28.169.70 X-HELO: mail-wr0-f170.google.com Received: from mail-wr0-f170.google.com (HELO mail-wr0-f170.google.com) (209.85.128.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Aug 2017 09:47:06 +0000 Received: by mail-wr0-f170.google.com with SMTP id 49so29982764wrw.2 for ; Thu, 17 Aug 2017 02:47:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:mail-followup-to:subject:date:message-id :user-agent:mime-version; bh=7N113y+iR5Yfeuukg3gHnWa90u73xfLTemj85Hq1wTk=; b=M2iASf2aryittsBL/pEo9mQLfLn3zXsQEDVZUlnpzQJ6R/iBXqnCERJuyiIgzNJJBU volfrehTxJXf0dYNrUbkG5jm56erl7CxbHtXDFhcuPcpBWjiz/Ah9CmmeR7IYebY5kix jluuL8hVzrxywuJalX6Vv2m+367OwG6hmCBs2EQ5tm+NZdLcZg/WTvb/sJRNuKtq+c9W YZeRo2kNJtDLmy+eRciu1/oUGA682/s/0UHR3IJyBxtUdqqGh1WKtwFTt/lG395s4cCj NtBNsTTDgAPgtvQBJ8FAfPrDvizZH0B7Io7bZiKl1++fbOCEaqeY4OtkEsu+CVOOPu/p uBjg== X-Gm-Message-State: AHYfb5jU0Jr7+mZhNANaDlWKuHSRkNKrZ7QExbhpMLMwEic4PYZn3Idp 5w/EbnI/YshGagvpSu6+pA== X-Received: by 10.28.169.70 with SMTP id s67mr1004253wme.47.1502963224268; Thu, 17 Aug 2017 02:47:04 -0700 (PDT) Received: from localhost (92.40.248.210.threembb.co.uk. [92.40.248.210]) by smtp.gmail.com with ESMTPSA id g17sm3382937wmc.44.2017.08.17.02.47.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Aug 2017 02:47:03 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: Add missing ECF_NOTHROW flags to internal.def Date: Thu, 17 Aug 2017 10:47:00 +0100 Message-ID: <87o9refrvv.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 This patch adds missing ECF_NOTHROW flags to the vectorisable integer internal functions. I noticed it while doing some SVE work but don't have a testcase that's useful now. Tested on aarch64-linux-gnu and x86_64-linux-gnu. OK to install? Richard 2017-08-17 Richard Sandiford gcc/ * internal-fn.def (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): Add missing ECF_NOTHROW flags. Index: gcc/internal-fn.def =================================================================== --- gcc/internal-fn.def 2017-08-10 14:36:08.046471664 +0100 +++ gcc/internal-fn.def 2017-08-17 09:05:10.128942687 +0100 @@ -135,12 +135,12 @@ DEF_INTERNAL_OPTAB_FN (XORSIGN, ECF_CONS DEF_INTERNAL_FLT_FN (LDEXP, ECF_CONST, ldexp, binary) /* Unary integer ops. */ -DEF_INTERNAL_INT_FN (CLRSB, ECF_CONST, clrsb, unary) -DEF_INTERNAL_INT_FN (CLZ, ECF_CONST, clz, unary) -DEF_INTERNAL_INT_FN (CTZ, ECF_CONST, ctz, unary) -DEF_INTERNAL_INT_FN (FFS, ECF_CONST, ffs, unary) -DEF_INTERNAL_INT_FN (PARITY, ECF_CONST, parity, unary) -DEF_INTERNAL_INT_FN (POPCOUNT, ECF_CONST, popcount, unary) +DEF_INTERNAL_INT_FN (CLRSB, ECF_CONST | ECF_NOTHROW, clrsb, unary) +DEF_INTERNAL_INT_FN (CLZ, ECF_CONST | ECF_NOTHROW, clz, unary) +DEF_INTERNAL_INT_FN (CTZ, ECF_CONST | ECF_NOTHROW, ctz, unary) +DEF_INTERNAL_INT_FN (FFS, ECF_CONST | ECF_NOTHROW, ffs, unary) +DEF_INTERNAL_INT_FN (PARITY, ECF_CONST | ECF_NOTHROW, parity, unary) +DEF_INTERNAL_INT_FN (POPCOUNT, ECF_CONST | ECF_NOTHROW, popcount, unary) DEF_INTERNAL_FN (GOMP_USE_SIMT, ECF_NOVOPS | ECF_LEAF | ECF_NOTHROW, NULL) DEF_INTERNAL_FN (GOMP_SIMT_ENTER, ECF_LEAF | ECF_NOTHROW, NULL)