From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Archive: List-Post: List-Help: Sender: gcc-patches-owner@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 17:21:00 -0000 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 Content-Type: text/plain X-SW-Source: 2017-10/txt/msg01550.txt.bz2 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))