From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by sourceware.org (Postfix) with ESMTPS id 5836E3858C50 for ; Tue, 12 Jul 2022 13:51:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5836E3858C50 Received: by mail-lf1-x133.google.com with SMTP id o7so14029488lfq.9 for ; Tue, 12 Jul 2022 06:51:29 -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 :mime-version:content-transfer-encoding; bh=zjk8CejYZX0QPCoGU+4NEZGlNF5sFHACRKiz9oF52M4=; b=Zg9gvjYJOqbD4Kz+Ck7ADLgqRt5pA44sU2Z7IonGLcvaDw7tTdHlVRHHDciNqT1UUc F2iy3mWFbbUeuQGP7bdYBj7i3L4HbrPXLz8matSY23PME9I+pA9jLp+/AfSAyMsmL5Fu gHNXH4Kd3ivXHSo2QTZwptQVL7uZY/8GrqsoccIpAqYJNY1ltUyvgWgQHKHLSahglomZ PNJ9UMhfb5HzLki1DXvA3qIP0h7RR90h8c3Oafy4wmMLHac0ZEEH3i4EH/ZZPkyoMdZQ MSY1dL5VCuNl3DlXtT6IikalkPGzSg5uVM49F4GQqHCouwk/yzEcpvUJxQnCHzTGNZYo 3BwQ== X-Gm-Message-State: AJIora+MU+BR/rDgtVRsKbY7pym1nP0vDT3CGWI1eqU2tYx/fmoqY1OL Rnw7xMCxi4mbBjKsTk2FwAFCrCmEQhc= X-Google-Smtp-Source: AGRyM1ukT1Y8IH05j3oXVZ47FtuaGt/FFJfhBm6fhpe1Fw2bTk6z0oc4xTDdMN32om5IczvjDVx2Fw== X-Received: by 2002:a05:6512:1090:b0:489:d620:44b7 with SMTP id j16-20020a056512109000b00489d62044b7mr9317588lfg.554.1657633887579; Tue, 12 Jul 2022 06:51:27 -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 o28-20020a198c1c000000b00482bb812713sm2194642lfd.94.2022.07.12.06.51.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 06:51:27 -0700 (PDT) Sender: Dmitry Selyutin From: Dmitry Selyutin To: binutils@sourceware.org Cc: Alan Modra , Luke Leighton , Jan Beulich , Dmitry Selyutin Subject: [PATCH 0/1] ppc: support register names in macros Date: Tue, 12 Jul 2022 16:50:56 +0300 Message-Id: <20220712135057.170969-1-ghostmansd@gmail.com> X-Mailer: git-send-email 2.37.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 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 13:51:31 -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. Dmitry Selyutin (1): ppc: support register names in macros gas/config/tc-ppc.c | 206 +++++++++++++++++--------------------------- gas/config/tc-ppc.h | 9 +- 2 files changed, 86 insertions(+), 129 deletions(-) -- 2.37.0