From patchwork Mon Oct 23 17:20:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 116793 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4886728qgn; Mon, 23 Oct 2017 10:21:34 -0700 (PDT) X-Received: by 10.101.88.70 with SMTP id s6mr12516241pgr.216.1508779293990; Mon, 23 Oct 2017 10:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508779293; cv=none; d=google.com; s=arc-20160816; b=OHiWq0A0vmLGG1QROw1JGA4Ao/Qjwr3FWC2t5SzVQcvsawKoDBKBUZMvN1lVO4pNaP VxlU9yDNbzeW9f9/oUoLgu/1abam8UDLUOPKckz5nC5XaoWd59vwGI705OFM7e12MSm2 B8UDh0HGGC7ax476l/dsCy0G2HTZy/SJpDIkrtK9i2a7O9PzoupVPzQ1NGW1UOjdCNHE 8JTw3I7+gVv3Ws7vWOx9i36MH9QodOf+tEWxxFJq/KkS7QRLebLlgLD1ptEhiujh2eS+ QGSPmEvkqyytU0LW7fJFcoRfg/FMxBCe0B8Nt88w1+80BCrNVTUxQM86pm8RrBrF4rUm +KMw== 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=xDa+PB9eBKyTIhbvN0HgacgIOoUmSbVUjrADm/g9oGw=; b=JmDgOk2E9ZWp1AwMHI+jViUyHU1MJmDPjnknXQoREFOZon11hKkdZQ9IqX2KKlUyjj xWpW9JsXeqL03D/QH5ApkRbE9K0C8Immde8mk7NQDHwApvFXslOxiBFgX/ilPQ+vbBbQ 8JY5PQ90bkb5AOz8Fzski15LxERogbsTWccuFQ/+9x0Tl2+kZIrpqZ0BI/Jblaf1JBRq f597wt43kf/r7FHXSFTL+w7oEhhQ81pOy11InCi+lhETJ5Mywc7u7fpwp1wUf5CQ9c0v FEeqDFm0rUUv9N4oTPu0SVw61LPWIkEmvhnwXyfmr1BzlQlSrYIyYGfSBxHJQtRooNBh VO/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=OA2NcS2F; spf=pass (google.com: domain of gcc-patches-return-464825-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-464825-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 5si4284418plx.731.2017.10.23.10.21.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Oct 2017 10:21:33 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-464825-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=OA2NcS2F; spf=pass (google.com: domain of gcc-patches-return-464825-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-464825-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=mMmxfiXqa/mpECvzBSDRiCo62B9zo /tSpawzbAHc6GeVVm6a+/khWGLZC+8wYtM2HBPpRx72XkSAjD1UBmVPAaAnv7A/3 AxqUsFqNpVSGZBe8pOfANIHHlIoiw6PCz7ASFZGRSS3UDNNgymuz2Kvpju1oOF4L 0uDkli7Yem7Ki8= 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=VMm2Rg2hkGqUVylsMOwW6T3wXJs=; b=OA2 NcS2FcNWIz8/e+5+sSrnP/z4QXYLIf1auflOV+FLPem1Teo8YJbvKOUuoWi/5WzA naC4iFkY71FeEqgtFl2PdFDOQqQWBLhuE4hi6bXr2FzMRWN4x1T9xdr1lTEH0+d5 k9x1pFTN1HtiC2mruaSSY/hyqje66qqCaoyIF4RM= Received: (qmail 130566 invoked by alias); 23 Oct 2017 17:21:03 -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 130325 invoked by uid 89); 23 Oct 2017 17:21:02 -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=049 X-HELO: mail-wr0-f177.google.com Received: from mail-wr0-f177.google.com (HELO mail-wr0-f177.google.com) (209.85.128.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Oct 2017 17:21:01 +0000 Received: by mail-wr0-f177.google.com with SMTP id k62so18151277wrc.9 for ; Mon, 23 Oct 2017 10:21:00 -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=xDa+PB9eBKyTIhbvN0HgacgIOoUmSbVUjrADm/g9oGw=; b=CKhzQfjQXTnGeH8ju3/xgkoUKkVp3iESCB/JXN7n433h1YePXXEHR8Fw/e3ZkcRo4Q VxESwLW/Mjx7MCl/Jn+G+SPVzrSVabx8pRGI7C3uvhigFINX7pKjaPtI4yTEQsBmJ+0R fDBoHGWSXkdwEIGQ42KMQKntZQ7PWoxalzpkkn1DvyF9iU+RpAJL/s+9CCAqvaJJ3dS0 exkuHFQBg6xI17aMRmrnW1oDtRRwqTNBkjhJgenT50HwmnrTsyItIm+vuN63PyDNDMgc PfgGRwruP9aju7ON4lcW2c2js9zSioLwQ8XSMmX8jhOC5dTzbCe888cERQzkioQvVLgx U6KA== X-Gm-Message-State: AMCzsaVFkglMpygLFE2pnM3ZHvvDe2XIx1WPbvQiA0IVIW13ME8O7ntd PT/5FvEDinZbLVphw4bclI5P51yRcs4= X-Google-Smtp-Source: ABhQp+R0/SNn22Uka++Bt2Pn/NApoX2GaHShMhcfhZJaHvLWRqgICPjmDvTmm7d7SGnqB+qG4p6uRA== X-Received: by 10.223.161.210 with SMTP id v18mr3695495wrv.76.1508779259142; Mon, 23 Oct 2017 10:20:59 -0700 (PDT) Received: from localhost ([2.26.27.199]) by smtp.gmail.com with ESMTPSA id p20sm4727650wma.0.2017.10.23.10.20.58 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Oct 2017 10:20:58 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: [049/nnn] poly_int: emit_inc References: <871sltvm7r.fsf@linaro.org> Date: Mon, 23 Oct 2017 18:20:57 +0100 In-Reply-To: <871sltvm7r.fsf@linaro.org> (Richard Sandiford's message of "Mon, 23 Oct 2017 17:54:32 +0100") Message-ID: <87zi8hlr0m.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 This patch changes the LRA emit_inc routine so that it takes a poly_int64 rather than an int. 2017-10-23 Richard Sandiford Alan Hayward David Sherwood gcc/ * lra-constraints.c (emit_inc): Change inc_amount from an int to a poly_int64. Index: gcc/lra-constraints.c =================================================================== --- gcc/lra-constraints.c 2017-10-23 17:19:21.001863152 +0100 +++ gcc/lra-constraints.c 2017-10-23 17:20:47.003797985 +0100 @@ -3533,7 +3533,7 @@ process_address (int nop, bool check_onl Return pseudo containing the result. */ static rtx -emit_inc (enum reg_class new_rclass, rtx in, rtx value, int inc_amount) +emit_inc (enum reg_class new_rclass, rtx in, rtx value, poly_int64 inc_amount) { /* REG or MEM to be copied and incremented. */ rtx incloc = XEXP (value, 0); @@ -3561,7 +3561,7 @@ emit_inc (enum reg_class new_rclass, rtx if (GET_CODE (value) == PRE_DEC || GET_CODE (value) == POST_DEC) inc_amount = -inc_amount; - inc = GEN_INT (inc_amount); + inc = gen_int_mode (inc_amount, GET_MODE (value)); } if (! post && REG_P (incloc))