From patchwork Fri Nov 24 17:31:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 169532 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp1396781vqx; Fri, 24 Nov 2023 09:31:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IETWmrI06S/DTKAnMy3j/Xt7eXjzrWfRx6RmsDkblsorMCDwIJk4e8h1dWJ5l+nlIfI2WwJ X-Received: by 2002:a05:6214:487:b0:679:d7ba:48f8 with SMTP id pt7-20020a056214048700b00679d7ba48f8mr11772788qvb.9.1700847117792; Fri, 24 Nov 2023 09:31:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700847117; cv=pass; d=google.com; s=arc-20160816; b=TMb4sTW45q8X509SMIgjc3FHhPUA0w8N5xLh8Qu5le2lkH0peGVbyqjc5982nRCf1g GxTyAZbhjeygK6h1SN8nshspFKTMPbC8Ck6o7TXNZKyp36Cb48ZaVyBXmJgtc1dL0keB KkUea7Ivfuu/ajuC9Ushau6qtmfDeCiwBdqZDRcWo/rBuIa05mPR7VYEj+GsTpr2IGCI sEpTcYVP/vkD273TAwKf+LeyCjHDZKsKJIVxlxJL7JEkP/z/GRyycQpZpHsz7MnmSHpQ llQ2HC6If5IlVtqz/W4a9NP0i11UswJOd6kQm8tILx44WGpbO1zYFWLZB8cpdvopF5EL JwEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition :mime-version:message-id:subject:to:from:date:arc-filter :dmarc-filter:delivered-to; bh=AWqbASIrOvSHN2v8mbO6alYU+VnNZkH0PKo2G8IPAns=; fh=1L2/IiukS00vgiXcKREcvt+pFBEM8GuYOng2C1a9k1k=; b=mmmZtLSwqoDQdB76ou0C8bltCVE0mwxuunL4nrOWih26LYUXUM37R9yfXcXlzYOSrX XnrQLFvs03fahdV5irPUda4DA7x3Ig2gtX6luBrrVqp3kCzjRMxBsOOz8ESrFyYBeyyL ad3I642ZRnsibVKM/h0z415nczsL8sw9aRYZaEMtEJ/NNf7aeO2WlOP5TUwrx2sn2FO9 VMBYjQasVLe+kI1D9RachLB6k7hPFqidikuiozH2T2GM1rXaK5r2D26nM0xUCGvsx++Z zYqV74picDMNbDv77s/sx4qjvQyfbK5vCP8rEX2J2t21zci/2qvCeJCTL6taEJbtd4RT FCgQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id gh14-20020a05621429ce00b0067a201977e8si695749qvb.247.2023.11.24.09.31.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 09:31:57 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8FCAC3858428 for ; Fri, 24 Nov 2023 17:31:57 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dellerweb.de (dellerweb.de [173.249.48.176]) by sourceware.org (Postfix) with ESMTPS id 803773858D32 for ; Fri, 24 Nov 2023 17:31:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 803773858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 803773858D32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=173.249.48.176 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700847094; cv=none; b=DdUBk5/nJjB43mc3PvkMCcEeABg/zr3q2re+xEX4fX5a1izx0gO4FBqMJIg7/q60c2vGUVLtTFwwEn1+McE4gTg9xYnrolx0Y8l+iOyIXKvylYEM37DQWydNAadDmD1daEWKLIvuWxATeG2pjzF+IQJa1HmyUTMkC7SFGG4Jue8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700847094; c=relaxed/simple; bh=/TRe5pwJzgyODJDtb/8381FEKg1jeMGpXxxR8cuVpuE=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=cD86Lhh/AgQco/yyZVaqXJURYaqqH04lj6nOelEFnWaTfTs/LhZ0OPV4W6hB3tDliEzCLtL9aBhn5Q6EmtY3kz+KpbpHzCvmyYRloOeFxquLnx6DvWUgkOk3n9bD5xY4I+2xE46vtgUYSdI+/ffbVCyxFscyUMRjGROzJeUlLWs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx3210.localdomain (bras-base-otwaon0906w-grc-03-142-126-114-79.dsl.bell.ca [142.126.114.79]) by dellerweb.de (Postfix) with ESMTPSA id 692431600132; Fri, 24 Nov 2023 18:31:32 +0100 (CET) Received: by mx3210.localdomain (Postfix, from userid 1000) id 14E2422012C; Fri, 24 Nov 2023 17:31:20 +0000 (UTC) Date: Fri, 24 Nov 2023 17:31:20 +0000 From: John David Anglin To: GCC Patches Subject: [committed] hppa: Use INT14_OK_STRICT in a couple of places in pa_emit_move_sequence Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-9.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783467466957772052 X-GMAIL-MSGID: 1783467466957772052 This fixes a couple of places in pa_emit_move_sequence that should be using the INT14_OK_STRICT macro. Tested on hppa-unknown-linux-gnu. Committed to trunk. Dave --- hppa: Use INT14_OK_STRICT in a couple of places in pa_emit_move_sequence 64-bit Linux target has relocation issue and can't use 14-bit offsets. 2023-11-22 John David Anglin gcc/ChangeLog: * config/pa/pa.cc (pa_emit_move_sequence): Use INT14_OK_STRICT in a couple of places. diff --git a/gcc/config/pa/pa.cc b/gcc/config/pa/pa.cc index 565c948a9e6..2ee987796f6 100644 --- a/gcc/config/pa/pa.cc +++ b/gcc/config/pa/pa.cc @@ -1872,9 +1872,7 @@ pa_emit_move_sequence (rtx *operands, machine_mode mode, rtx scratch_reg) if (reg_plus_base_memory_operand (op1, GET_MODE (op1))) { - if (!(TARGET_PA_20 - && !TARGET_ELF32 - && INT_14_BITS (XEXP (XEXP (op1, 0), 1))) + if (!(INT14_OK_STRICT && INT_14_BITS (XEXP (XEXP (op1, 0), 1))) && !INT_5_BITS (XEXP (XEXP (op1, 0), 1))) { /* SCRATCH_REG will hold an address and maybe the actual data. @@ -1923,9 +1921,7 @@ pa_emit_move_sequence (rtx *operands, machine_mode mode, rtx scratch_reg) if (reg_plus_base_memory_operand (op0, GET_MODE (op0))) { - if (!(TARGET_PA_20 - && !TARGET_ELF32 - && INT_14_BITS (XEXP (XEXP (op0, 0), 1))) + if (!(INT14_OK_STRICT && INT_14_BITS (XEXP (XEXP (op0, 0), 1))) && !INT_5_BITS (XEXP (XEXP (op0, 0), 1))) { /* SCRATCH_REG will hold an address and maybe the actual data.