From patchwork Sun Nov 13 23:05:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christoph_M=C3=BCllner?= X-Patchwork-Id: 19475 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1865619wru; Sun, 13 Nov 2022 15:09:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gxES+o3O/J3gbto4sK6tEFIbLvJtH/XOB0AckaMyQjpUlWmwhg4Ut2Fz1XkHIfiCVSfvG X-Received: by 2002:a05:6402:1949:b0:467:9864:9463 with SMTP id f9-20020a056402194900b0046798649463mr5177754edz.360.1668380945276; Sun, 13 Nov 2022 15:09:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668380945; cv=none; d=google.com; s=arc-20160816; b=zjKcHED0rL17QM8qx5u2hyuQj8wjtlAFYbURrw1uGTFIKzvi7TO2p9ttbRKwSizeKX wo7WYNvlAVxUeWNNjcsyglqwEfEIz18gObywt959VGug7/sJmXttbhbzWvU7saXsCfHI JSp4I10zgnopBvymfs8hBSZy5NRhutWzZnOPXLUDY4tKKDIff7dXT5ha/0RxmrVVr+Yf BjkcvssyWSA1BBvmBaJ5L3NWTLL7kYEuGXEH7lOImt3M4kVaanrWlmEDWM/U8f2NPZDf HNz6tOX5m4GRUpqWkuiRZHhvHdUlReW7NyKYSebONbc7SVLLBHAYcd2Hwri1ZjC6c5cQ lTSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dmarc-filter:delivered-to; bh=bjhtEefrkufDLOq14J9obOBH5W8nvfgMIKxgd2KsfsU=; b=nelvglvbsiU3ISKfdgAr+3FFTd5TwvkvwSSLDrna6Kfh0dOgIpULWEIwfEy8UHWt13 782vectFxpr7DDsTbcreJwb4entIT+Sgscd3j+aXrk692+AP311SOAdT++RTolKho7ht w5PhlkkHSUbHNK0HQ93JnsRcv45b+JKxGAYY1FiX+39oSlGIZXjS3zxmch2zep+toGdv 4UjqF8XdfRfz3WbFTuLJnKvceZHSrR67oltlf2DfHhOElEmvYu8Lt1iWMKfqEbwvukjJ hl0fso4csdoDoL0IafHToqv8lu6fWIaLPF0WDlsZFOYuyK0fKVOlvpFETmrjB4VRzj90 Iplg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b=A+UIsEmc; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id 21-20020a508e15000000b00461f44d7bfcsi6018425edw.573.2022.11.13.15.09.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 15:09:05 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b=A+UIsEmc; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 7FBBE3894C39 for ; Sun, 13 Nov 2022 23:06:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by sourceware.org (Postfix) with ESMTPS id 48C7D3856975 for ; Sun, 13 Nov 2022 23:05:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 48C7D3856975 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vrull.eu Received: by mail-ed1-x52c.google.com with SMTP id a13so14983467edj.0 for ; Sun, 13 Nov 2022 15:05:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bjhtEefrkufDLOq14J9obOBH5W8nvfgMIKxgd2KsfsU=; b=A+UIsEmcnYucC0tlylj9bZY/V2kKKvMsRsLrbIfTRq4stEhD14X50svmReLgSY/AAn 7T0YV0NNwiAwp798P7WaBvld9OUvxnJpeO032Yf35cN8S+bwEzAr13GskUYbcH1DY4eI a+dzW2LOfu7evj5fw5S71T/x4VKqIA7z1A8FAOAXNx918LW352kEOUCVeXZqVYlIiuPh K7vS1V17jXGiQ1+ethCYMY4adZj5D4jUcR1O9thVx9w1ba3FXSGYrZ1T6yy6hvRmY+RP ijWXT++okLY02D34gGeGGHjpCXZ/kcYKJlnMkbyeEv1iTEgK1H/1OMiW2VWpnSMKI6CQ Omgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bjhtEefrkufDLOq14J9obOBH5W8nvfgMIKxgd2KsfsU=; b=Xpl/f7i1gVXWDEsturAwHRNBUb8TbH2zDJh2cQ2QaJj3/kZjM8xDbqH4RCZAKZnauB 8Uq/2jP7eQnVB/MI71buTOyQ34KUDbguW9g9h/4tNhSPvjEuibMCXbwGnuDPFXZdUuaG H3Wt2+3qPJg8LSQQQnB++gNfOgt2lBwXbuX1XmsNLDWTy1ipGqpAxrPlPggYem5lJ6pc AdLuqXG/hwUYqJ2h16l4P1lFRdGL93vq9GY4BEGwCbKERnmXdICnnMjIFXhItyGjiSeN U8+I+lb2X8rKLh8kS/vyQTM/tlVgC1HLKOtmDjcXKGXIbI1oyLa6USChNBQMeUbDBktR wAbw== X-Gm-Message-State: ANoB5pnBfSvQmx5p9xvZyBRX2oRuXkljOMksxGKEXRhpgXhoT1vKpuax rxUNC50jCb3e9HRuQik9GOsNqkEKG/EY5Two X-Received: by 2002:aa7:d38b:0:b0:467:71de:fe10 with SMTP id x11-20020aa7d38b000000b0046771defe10mr7854943edq.63.1668380726814; Sun, 13 Nov 2022 15:05:26 -0800 (PST) Received: from beast.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id ku3-20020a170907788300b007ae21bbdd3fsm2361281ejc.162.2022.11.13.15.05.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 15:05:26 -0800 (PST) From: Christoph Muellner To: gcc-patches@gcc.gnu.org, Kito Cheng , Jim Wilson , Palmer Dabbelt , Andrew Waterman , Philipp Tomsich , Jeff Law , Vineet Gupta Cc: =?utf-8?q?Christoph_M=C3=BCllner?= Subject: [PATCH 2/7] riscv: bitmanip/zbb: Add prefix/postfix and enable visiblity Date: Mon, 14 Nov 2022 00:05:16 +0100 Message-Id: <20221113230521.712693-3-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221113230521.712693-1-christoph.muellner@vrull.eu> References: <20221113230521.712693-1-christoph.muellner@vrull.eu> MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_MANYTO, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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.29 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 Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749424218180526679?= X-GMAIL-MSGID: =?utf-8?q?1749424218180526679?= From: Christoph Müllner INSNs are usually postfixed by a number representing the argument count. Given the instructions will be used in a later commit, let's make them visible, but add a "riscv_" prefix to avoid conflicts with standard INSNs. gcc/ChangeLog: * config/riscv/bitmanip.md (*_not): Rename INSN. (riscv__not3): Rename INSN. (*xor_not): Rename INSN. (xor_not3): Rename INSN. Signed-off-by: Christoph Müllner --- gcc/config/riscv/bitmanip.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/riscv/bitmanip.md b/gcc/config/riscv/bitmanip.md index 3dbe6002974..d6d94e5cdf8 100644 --- a/gcc/config/riscv/bitmanip.md +++ b/gcc/config/riscv/bitmanip.md @@ -119,7 +119,7 @@ (define_insn "*slliuw" ;; ZBB extension. -(define_insn "*_not" +(define_insn "riscv__not3" [(set (match_operand:X 0 "register_operand" "=r") (bitmanip_bitwise:X (not:X (match_operand:X 1 "register_operand" "r")) (match_operand:X 2 "register_operand" "r")))] @@ -128,7 +128,7 @@ (define_insn "*_not" [(set_attr "type" "bitmanip") (set_attr "mode" "")]) -(define_insn "*xor_not" +(define_insn "riscv_xor_not3" [(set (match_operand:X 0 "register_operand" "=r") (not:X (xor:X (match_operand:X 1 "register_operand" "r") (match_operand:X 2 "register_operand" "r"))))]