From patchwork Tue Oct 15 09:08:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Paul Adrian Glaubitz X-Patchwork-Id: 1997281 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=fu-berlin.de header.i=@fu-berlin.de header.a=rsa-sha256 header.s=fub01 header.b=QvqRCCNj; dkim-atps=neutral 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=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XSSwN1Szpz1xsc for ; Tue, 15 Oct 2024 20:09:40 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 591E23858C48 for ; Tue, 15 Oct 2024 09:09:38 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by sourceware.org (Postfix) with ESMTPS id C95743858D20; Tue, 15 Oct 2024 09:09:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C95743858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=physik.fu-berlin.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=zedat.fu-berlin.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C95743858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=130.133.4.66 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728983360; cv=none; b=ndYQs/K6n6hryOmZyiBSL9Yu5YAzk/z6NEDDd1etcD9NZCZuZs8LZdyzElx+bBN6sPctsDX5DlLdkyWpVWTLGyYbXGUqs7ziCpuEA3SB1H+eXOfpIsk9v75UUJGNr7QjsEDj+MyKSHO6HJc8FKl7ScjqKxlzzh5XplwCfXdU2wI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728983360; c=relaxed/simple; bh=WpEiuiOwBiKkcNVcI9VYGQuA36Na5OwJXDVe7J2205w=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=OztKvmchem7eFUUF2AHduVV0g2ulFWR4EwLWhfVecuWHTfd1cYRjkODn9sz9mYdfssi08T2uLH2+2gmqhyvz00Ar32U/muFeSLx0JIjdU0P4EyYR/J3QaQhAJfTp1oWRLQsXfPdtOleghPvxGcb5dwTiLks+dKXBm7ofLUMqego= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fu-berlin.de; s=fub01; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NDsUnA8v7DMR0Jhw9iOtXpA0KKv9IXiNPLwqN6m4oMQ=; t=1728983349; x=1729588149; b=QvqRCCNjjGC4QvdllD5nO5K2uzXDRG5lE/r2EYpb3Ez/6IB8QNS/jjXJL1dyYTvgS9igwPyxaWt QpjuGSKyEAj+P2r9hUKZa59lZMtr5oVeV/X+eIQaJ7vYHvLXBa1qYUohQ/u35/864fPCV0lCYwYRE aLxNV2Pp8c5OjCzHDr34t7UqPNJaI7lo+N5kRI8lf/Y/Ii3iR+pLntd6YxQnyhV2x8kclRirV0Ulj mkKSTo8kQ480OoxccEPA5MX/3u83XmJGNFM7OoeaQhydF1sqF4SOOThiA/qUGWYZk+MaHYjlzDcjP iAzeQy7vIYvZ8BFbq0hWAZv+a7LWmNTorZvQ==; Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.98) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1t0dYC-000000045fl-3qgL; Tue, 15 Oct 2024 11:09:08 +0200 Received: from p57bd904e.dip0.t-ipconnect.de ([87.189.144.78] helo=z6.fritz.box) by inpost2.zedat.fu-berlin.de (Exim 4.98) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1t0dYC-00000003v14-2zig; Tue, 15 Oct 2024 11:09:08 +0200 Received: from glaubitz by z6.fritz.box with local (Exim 4.96) (envelope-from ) id 1t0dYC-00Eah5-1K; Tue, 15 Oct 2024 11:09:08 +0200 From: John Paul Adrian Glaubitz To: gcc-patches@gcc.gnu.org Cc: Richard Henderson , John Paul Adrian Glaubitz Subject: [PATCH v2] alpha: Add -mlra option Date: Tue, 15 Oct 2024 11:08:36 +0200 Message-Id: <20241015090835.3477629-1-glaubitz@physik.fu-berlin.de> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 87.189.144.78 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-8.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP 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~incoming=patchwork.ozlabs.org@gcc.gnu.org PR target/66207 * config/alpha/alpha.opt (mlra): New target option. * config/alpha/alpha.cc (alpha_use_lra_p): New function. (TARGET_LRA_P): Use it. * config/alpha/alpha.opt.urls: Regenerate. Signed-off-by: John Paul Adrian Glaubitz --- gcc/config/alpha/alpha.cc | 10 +++++++++- gcc/config/alpha/alpha.opt | 5 +++++ gcc/config/alpha/alpha.opt.urls | 2 ++ 3 files changed, 16 insertions(+), 1 deletion(-) v2: - Rephrase patch short summary diff --git a/gcc/config/alpha/alpha.cc b/gcc/config/alpha/alpha.cc index 74631a41693..218c66b6090 100644 --- a/gcc/config/alpha/alpha.cc +++ b/gcc/config/alpha/alpha.cc @@ -9941,6 +9941,14 @@ alpha_c_mode_for_floating_type (enum tree_index ti) return default_mode_for_floating_type (ti); } +/* Implement TARGET_LRA_P. */ + +static bool +alpha_use_lra_p () +{ + return alpha_lra_p; +} + /* Initialize the GCC target structure. */ #if TARGET_ABI_OPEN_VMS # undef TARGET_ATTRIBUTE_TABLE @@ -10124,7 +10132,7 @@ alpha_c_mode_for_floating_type (enum tree_index ti) #endif #undef TARGET_LRA_P -#define TARGET_LRA_P hook_bool_void_false +#define TARGET_LRA_P alpha_use_lra_p #undef TARGET_LEGITIMATE_ADDRESS_P #define TARGET_LEGITIMATE_ADDRESS_P alpha_legitimate_address_p diff --git a/gcc/config/alpha/alpha.opt b/gcc/config/alpha/alpha.opt index 62543d2689c..a4d6d58724a 100644 --- a/gcc/config/alpha/alpha.opt +++ b/gcc/config/alpha/alpha.opt @@ -89,6 +89,11 @@ mlarge-text Target RejectNegative InverseMask(SMALL_TEXT) Emit indirect branches to local functions. +mlra +Target Var(alpha_lra_p) Undocumented +Usa LRA for reload instead of the old reload framework. This option is +experimental, and it may be removed in future versions of the compiler. + mtls-kernel Target Mask(TLS_KERNEL) Emit rdval instead of rduniq for thread pointer. diff --git a/gcc/config/alpha/alpha.opt.urls b/gcc/config/alpha/alpha.opt.urls index a55c08328c3..916a3013f63 100644 --- a/gcc/config/alpha/alpha.opt.urls +++ b/gcc/config/alpha/alpha.opt.urls @@ -44,6 +44,8 @@ UrlSuffix(gcc/DEC-Alpha-Options.html#index-msmall-data) mlarge-data UrlSuffix(gcc/DEC-Alpha-Options.html#index-mlarge-data) +; skipping UrlSuffix for 'mlra' due to finding no URLs + msmall-text UrlSuffix(gcc/DEC-Alpha-Options.html#index-msmall-text)