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: 829474 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-464825-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="g6Iw+0y7"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yLNVK302Rz9t6C for ; Tue, 24 Oct 2017 04:21:28 +1100 (AEDT) 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=UpeXGB6UL9MXxnBkpb/V+vdAFtIJL xUTC/kfPOs5SQCGFVrDkimmn67f68S1H8tSKJlyBolQqdT0E+q+/AYX0QjWfyn3n u5tCA6qY9iYe9UVhWgVkSyX44NtM1LL3evD5qVY2qiBtFY22FAt/iiJxSszNHFNt AUZQI+XE0QYPoU= 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=g6I w+0y7XxMDbtZnWu4AU0f5ks7nWIQsGwcu3Ry74c6HTlADYfGmXopZBz1P+WFO/1g ngjeIKL/8dCbj38UDpsMmH7EkGunsaQR6MUnfimKlWSm0I0B6SnHrvdzivlfqpWT cbVcgF7aQP435OXu3maKOq+PUbtASOtSfV304x24= 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))