From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by sourceware.org (Postfix) with ESMTPS id A510A385AC3E for ; Tue, 12 Jul 2022 21:30:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A510A385AC3E Received: by mail-lf1-x12b.google.com with SMTP id a9so16047754lfk.11 for ; Tue, 12 Jul 2022 14:30:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=tp2dKGLLzJx3R+OHAiUHY4Lbxp7xyCtSuuiyBhecPrE=; b=Q9bbGW6Ba55GW4jlA80UjOwJXvN4jioiK4B4j0h32hwcz82avQzI7GrastJ3TnuTiQ y2F/dFMdU51BpoQrWK5PxBz9kissNfCifTnwC8Lr0Ok46SKRktsuqr/jQ5Xr6qZQhuC/ QZUJ1m3zLvUwIeZz6nxjVJ3a/E8jijTJ3hk/amek9kdi+sNOIQUxuaOuNld4WGV7wbBE uPTCUGAlzb+1BwaHqi1McUfvp2vmpCmOijW+Gitag4UXgPjCwoxqmxcRwY2yyKQCYH5i d9N6SOJpUQeyCkD7kLxwF0NVI7o6xU20rj3zZSc3t2lMN82jFDOGkhQeY3JahfZ2GuKt SCDg== X-Gm-Message-State: AJIora9fkOgDTgfSbxkOrEmzWBQejMmdJLs94CF7BrLJIGIQp6kt4wiJ XCzgSdlSkwdiPC0BCWXCi4GbZNBYXXY= X-Google-Smtp-Source: AGRyM1vnAukprkFwXL3LvYLmOtuZepkbAxrE00ea/1STAc/TsIvx6+2gdv5nht+/nFW3RXY5nQx1kQ== X-Received: by 2002:a05:6512:3e06:b0:47f:7928:a578 with SMTP id i6-20020a0565123e0600b0047f7928a578mr20671lfv.406.1657661401582; Tue, 12 Jul 2022 14:30:01 -0700 (PDT) Received: from localhost.localdomain (broadband-188-32-220-156.ip.moscow.rt.ru. [188.32.220.156]) by smtp.gmail.com with ESMTPSA id a24-20020a19ca18000000b0047f86b503absm2405344lfg.16.2022.07.12.14.30.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 14:30:01 -0700 (PDT) Sender: Dmitry Selyutin From: Dmitry Selyutin To: binutils@sourceware.org Cc: Alan Modra , Luke Leighton , Jan Beulich , Dmitry Selyutin Subject: [PATCH v3 0/1] ppc: support register names in macros Date: Wed, 13 Jul 2022 00:29:58 +0300 Message-Id: <20220712212959.94767-1-ghostmansd@gmail.com> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220712212223.87226-2-ghostmansd@gmail.com> References: <20220712212223.87226-2-ghostmansd@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2022 21:30:05 -0000 This patch is a follow-up of discussion: https://sourceware.org/pipermail/binutils/2022-July/121719.html Form now on, PPC assembly becomes capable of compiling such code: .set VREG, %r0 .set REG, VREG extsw REG, 2 extsw %r1, 1 The custom register_name() code path, as well as checks for CRs, are deprecated; from now on, we use md_operand() routine everywhere. Whilst we're here, let's also reuse register lookup for CFI. Changes since v2: - Moved reg_name_search to the correct place. Changes since v1: - Dropped incorrect and redundant logic regarding symbol lookup. - Added restoring of input line pointer on failure. - Refactored the patch so that it shows less changes. Dmitry Selyutin (1): ppc: support register names in macros gas/config/tc-ppc.c | 204 +++++++++++++++++--------------------------- gas/config/tc-ppc.h | 9 +- 2 files changed, 82 insertions(+), 131 deletions(-) -- 2.37.0