From patchwork Mon May 1 13:42:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 1775503 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=KLuw1Ddj; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q94Cd16Ntz1ydX for ; Mon, 1 May 2023 23:42:51 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AB043385841D for ; Mon, 1 May 2023 13:42:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB043385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682948569; bh=Z4VJMzFrrngd5EtYHdqRi06Oe44vxf85gOFBxBOBqsM=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=KLuw1DdjkiUDQqhzrKJSBz2OuEk1E9ZQmqtj1q21htlMCUuWGnQW35lkxvMd6etaF ijojVPYZbsfcbFJVkOk8b1QyjQorhp+AOTCnbVwN3q25JOmoMqb+BMgtE3jfPRetjx n6ezC658zmciHw/ymrTpT89bksh/GihZGUSAvlug= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by sourceware.org (Postfix) with ESMTPS id 883183858D28 for ; Mon, 1 May 2023 13:42:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 883183858D28 Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-24de9c66559so1115203a91.0 for ; Mon, 01 May 2023 06:42:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682948548; x=1685540548; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Z4VJMzFrrngd5EtYHdqRi06Oe44vxf85gOFBxBOBqsM=; b=eJdqbPbIL/qp0FuOqIo0bJ4kBj+5HQ1oCLDnAK4V/ftv55sJrdP2IN2GBZmpw5WPez 6m0pusuN7ll09cKrPPW1H3OpAsgsF1WwsjQGbQ9lR1/S2LCcgJwoW29poyHTRmz9tc80 8LteLlN325/ZeexuPVe0v2MUHQRTjQ3bdR4T2fY6g4qQcReM/RaFHuuz0l/qmMNn4onz jCC0ed/ixumOq//kxVGRtDtRmMjR3pejot2WU9HjPkz7cO+ULX7yeou5QC0IBmPfw6gT FdHB2MtfrviRUMsfFk2daFSLahBzyrSEsbb3c0Ko3O9Lmk47bbG53rqrBRzBtiLzhLX8 QO9w== X-Gm-Message-State: AC+VfDwH2xT4oE2MlmDOE+quCwEeXpQp0GRevylBx8GE4I0LBF0Vox/0 Z5bhzmNCmGKIbXdmYxFVES1c62/jfQY= X-Google-Smtp-Source: ACHHUZ5bDnuddTeZizGiQGC66qlpSgP7k8XyJI+U0kSj0BYFqNF5WO7aamg+brF6OTJ39UVTqTD4uA== X-Received: by 2002:a17:90b:33c6:b0:246:8193:1fdc with SMTP id lk6-20020a17090b33c600b0024681931fdcmr14698587pjb.3.1682948547674; Mon, 01 May 2023 06:42:27 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::99f? ([2601:681:8600:13d0::99f]) by smtp.gmail.com with ESMTPSA id j24-20020a17090a589800b002465e66256asm5929375pji.11.2023.05.01.06.42.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 May 2023 06:42:26 -0700 (PDT) Message-ID: <0beb8b43-2acf-6dcc-7a10-4f2a415c6f6d@gmail.com> Date: Mon, 1 May 2023 07:42:25 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Content-Language: en-US To: "gcc-patches@gcc.gnu.org" Subject: [committed] Convert xstormy16 to LRA X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jeff Law via Gcc-patches From: Jeff Law Reply-To: Jeff Law Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" This patch converts the xstormy16 patch to LRA. It introduces a code quality regression in the shiftsi testcase, but it also fixes numerous aborts/errors. IMHO it's a good tradeoff. Committed to the trunk, Jeff commit 977a3be3ccbc7f177316b2b349523023cac37bcd Author: Jeff Law Date: Mon May 1 07:40:38 2023 -0600 Convert xstormy16 to LRA This patch converts the xstormy16 patch to LRA. It introduces a code quality regression in the shiftsi testcase, but it also fixes numerous aborts/errors. IMHO it's a good tradeoff. gcc/ * config/stormy16/stormy16.cc (TARGET_LRA_P): Remove defintion. diff --git a/gcc/config/stormy16/stormy16.cc b/gcc/config/stormy16/stormy16.cc index 98f87fa8251..81b32dbc958 100644 --- a/gcc/config/stormy16/stormy16.cc +++ b/gcc/config/stormy16/stormy16.cc @@ -2894,9 +2894,6 @@ xstormy16_push_rounding (poly_int64 bytes) #undef TARGET_PREFERRED_OUTPUT_RELOAD_CLASS #define TARGET_PREFERRED_OUTPUT_RELOAD_CLASS xstormy16_preferred_reload_class -#undef TARGET_LRA_P -#define TARGET_LRA_P hook_bool_void_false - #undef TARGET_LEGITIMATE_ADDRESS_P #define TARGET_LEGITIMATE_ADDRESS_P xstormy16_legitimate_address_p #undef TARGET_MODE_DEPENDENT_ADDRESS_P