From patchwork Mon Oct 23 17:36:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 116835 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4899735qgn; Mon, 23 Oct 2017 10:36:25 -0700 (PDT) X-Received: by 10.84.173.195 with SMTP id p61mr1033847plb.138.1508780185793; Mon, 23 Oct 2017 10:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508780185; cv=none; d=google.com; s=arc-20160816; b=engntUPtdKq1Rd87D9b13mldHSZ4ikkkLepJYBTf0exVbl8tvyWIvR6MZaVRtcs1sz HVL6MSeTEvyQxH86WOIpIkqeBwHyeJgb3nda4yIh5fRBytuQc5E+HSTUhQJx6zlOXHcm Jh35VJsLqOFJE2irGhs4orUA9G6t1qsq6mbjLbtpd3TuZnPPymURGxpxyGsHVc2banD2 RCraCRbCDOSkAAoa54Rb/FJH/RhCrFnvkcMHa3v9KfSp1YmmXCw1kwa9/3juxQLJqhGx IcSGAmbzKiUBHmzrWu4EFEzXv2fWVIx2OLnkgS7BlhOc5mNg/qP3oJ5Nk2ZtoNblvVkG +15Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:message-id:in-reply-to:date:references :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=r4ue2YEIRz5WFT1hPXSLbIwN6/QKTKMh5ir0O6ToghU=; b=vSKK7Oyx6iAcB1OD6klEKsaU3auOOKyvi8y4rEf36LDoIZJDVN7q+9/BtV37ZpBEAr 4xufh8dLPfMljKeFWqy6K6AWMa+PGByxVE7r8S6WEXdDjUHgiz0Q1pi4c36DtkPLzkHt 6fiQRiZla9SEEK0Nt6GdAWw6fcvSfud0/7FqJArXt1H2fElpbh2y6MyqzJ6A3Pj4CwY9 OK0UmZA9xstKS2wJSXrVRij6s1IiMs8ETIU48g1c8RjCy5eU71voI6Z304RyTzw5rMh0 8c2Dx5Bhs4I9L3ZVEiwKD5yvNlRXuTIr3dZXpEzTG+DB95yYFA7jKnDRFFH8cApkNjET IQrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=WKIbJ2v5; spf=pass (google.com: domain of gcc-patches-return-464866-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-464866-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 o14si4273297pli.593.2017.10.23.10.36.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Oct 2017 10:36:25 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-464866-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=WKIbJ2v5; spf=pass (google.com: domain of gcc-patches-return-464866-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-464866-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:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=default; b=vkGg5NbHFGnbJ3jSprTmw4aT33/9W 7NLSQzm3xBCUxP/KJxSnd/tZzFMo1y02nlBygfTeL7q39SPIXqoH4KNKOuNXnXdu ewLHqP+pe+b24lpiQy8RuOxJZbk35c5UohdV2/tFXfIJnX6y2ozdA7t8BxRtqyu3 E9///LGgHtaa8M= 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:references:date:in-reply-to:message-id:mime-version :content-type; s=default; bh=CHKgI6mqhgM3EQ0LldjiV249Jpo=; b=WKI bJ2v5Wo/y7O3icqdDfWmQL/KfpO+PcER+6nXqKLdZGp9hh0+WlK3FL2FKqrXEGWM nfjypsYYKFLuqQt7457t/giBYKPIPPpChbfe7Sl3RagiX7ADzVqjgFzQpXMYCeGs bjZpucr3Qotue3KWHo9CqNLXlrnhSf+lUinyZA9A= Received: (qmail 68980 invoked by alias); 23 Oct 2017 17:36:12 -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 68966 invoked by uid 89); 23 Oct 2017 17:36:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=090 X-HELO: mail-wm0-f43.google.com Received: from mail-wm0-f43.google.com (HELO mail-wm0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Oct 2017 17:36:10 +0000 Received: by mail-wm0-f43.google.com with SMTP id z3so4376310wme.5 for ; Mon, 23 Oct 2017 10:36:10 -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:references:date :in-reply-to:message-id:user-agent:mime-version; bh=r4ue2YEIRz5WFT1hPXSLbIwN6/QKTKMh5ir0O6ToghU=; b=Y303aefawpjw4Cm2Pzjk+csK5FW8Ut2LiY4T87FNUMyUJ/MzToYeMxYpDZDNWTNKYT WtFUJ4dd+D7/7QU1qKsnA+5jg0zLKnqiYLpKSNaPXk5gl3u7GMBlYrNSAKzNFdVunFNN J9YDUwtidSUDDlmIdf/F8FnDNDHwf6ruqgUGsrlyNNI/BP5a+yvzb11385C1LVa+euAT MvzLtqeyKKJyONzxmzFESU4LW4sdUrCDujcofIzfI3b8uA2upFN+N+1KOQ1p7Sif07Mr QUioQiK8ga0krZ0rbV6PffSIiJOpMdND98SLSq7RcvlJbhPuTsJBzPfOYZNmt3O3fHzp /l6A== X-Gm-Message-State: AMCzsaUXvO+ZDVogsIKgc0Y32TkpaDXrb+41/PLxCzRAr/wqyevLuyX0 nbMCnb6VnJ75ppUpuqTyJ4gH67eNzQ0= X-Google-Smtp-Source: ABhQp+S15EHZpU6kbss1bGHqhvK8xRc5ZOvbQo1QiiZcnJG+jmXqPGj5s6qWj1CeACTuksn+hBQMxA== X-Received: by 10.28.184.143 with SMTP id i137mr6450330wmf.143.1508780168194; Mon, 23 Oct 2017 10:36:08 -0700 (PDT) Received: from localhost ([2.26.27.199]) by smtp.gmail.com with ESMTPSA id e77sm9654930wmi.16.2017.10.23.10.36.07 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Oct 2017 10:36:07 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: [090/nnn] poly_int: set_inc_state References: <871sltvm7r.fsf@linaro.org> Date: Mon, 23 Oct 2017 18:36:06 +0100 In-Reply-To: <871sltvm7r.fsf@linaro.org> (Richard Sandiford's message of "Mon, 23 Oct 2017 17:54:32 +0100") Message-ID: <87zi8heph5.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 This trivial patch makes auto-inc-dec.c:set_inc_state take a poly_int64. 2017-10-23 Richard Sandiford Alan Hayward David Sherwood gcc/ * auto-inc-dec.c (set_inc_state): Take the mode size as a poly_int64 rather than an int. Index: gcc/auto-inc-dec.c =================================================================== --- gcc/auto-inc-dec.c 2017-07-27 10:37:54.907033464 +0100 +++ gcc/auto-inc-dec.c 2017-10-23 17:25:36.142940510 +0100 @@ -152,14 +152,14 @@ enum gen_form static rtx mem_tmp; static enum inc_state -set_inc_state (HOST_WIDE_INT val, int size) +set_inc_state (HOST_WIDE_INT val, poly_int64 size) { if (val == 0) return INC_ZERO; if (val < 0) - return (val == -size) ? INC_NEG_SIZE : INC_NEG_ANY; + return must_eq (val, -size) ? INC_NEG_SIZE : INC_NEG_ANY; else - return (val == size) ? INC_POS_SIZE : INC_POS_ANY; + return must_eq (val, size) ? INC_POS_SIZE : INC_POS_ANY; } /* The DECISION_TABLE that describes what form, if any, the increment