From patchwork Fri Jun 30 03:34:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mengqinggang X-Patchwork-Id: 11463 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10076172vqr; Thu, 29 Jun 2023 20:34:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlEhhTXiffhoNmnfvVncjmQJvbTQS//NTWY5L4c4srb8aPFk111guwINXwFZCw+pl7Kef020 X-Received: by 2002:a17:906:b259:b0:969:813c:9868 with SMTP id ce25-20020a170906b25900b00969813c9868mr820322ejb.18.1688096094438; Thu, 29 Jun 2023 20:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688096094; cv=none; d=google.com; s=arc-20160816; b=wZfVF8Q5zM4FdJgy7NdpRQBhdbnuhJKAPF2y1IraeMrSPoVEyU3b4PyxOoSLYUc8g0 QMzrevBnSL1zba1N2m4o+OZnuRZOBEaTbRW5iiXgpPFvTfbnEXzCdbyGWcf6TLbrgOrn JzBIT56ZGceSRjcYERdpRpD4008z+dWQr3fMVn7ofeobgZAQ5qeX8gax4HgyMBb4BNnB SpWDJNuSsZK6ok3BOkRWnxDS+4FOkxV7sK++iDK0BuFl63D9AEfojLgt81N4Zk3/JgW+ S+UCu50dswOteWdWrtr2fX1jesjYKkpvX4tO0TXotNt69shQjdTPRPBKGDgzTLYg2QS8 nI1g== 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:message-id:date:subject:cc:to:from:dmarc-filter :delivered-to; bh=jZKNYABxjHWK+rtCCb4tfuR0J0Regwh0FbrglEnFc/k=; fh=E++1HYE07Ug0Tb3mwOoH2gQvrrmpXVdxZHa97F1+u1A=; b=EDrGPE/oEuckPBk/gBPTU7VJbsfJey0c/7AmZzBhVcHQyxrvGrMVD01wogT33+c3pm 78pzm3Y9/SCewzKLEx1dDUYfpDmQzWQqoF0I5hJSxK1B16DVV23FbeyeUjCn6/dJUu8o r4AJHkAo2oAB/XBYZZna9Ho3MYOuiyU/9btRnKI0l91r3gkV81MrkDEk9302vYZVs1Xy AmY78alrMqJMSe1tRdl+TYbfOE0ovL3gEh3dPjkpHZGDlKwXEDJSouuwI6ZKyoPOqGGN LVsZqpF9gCgpq78txeWLtfe8HZFtF9CJdOCxeRPMqg53LAdMXq5gDNEheaE+lXNfYQdC g+Gg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id re3-20020a170906d8c300b0098dd6a1e775si7452218ejb.811.2023.06.29.20.34.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 20:34:54 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.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; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0CE26385841C for ; Fri, 30 Jun 2023 03:34:53 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id C6D033858410 for ; Fri, 30 Jun 2023 03:34:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C6D033858410 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.2.5.5]) by gateway (Coremail) with SMTP id _____8Axz8dUTZ5kMSMEAA--.6610S3; Fri, 30 Jun 2023 11:34:44 +0800 (CST) Received: from 5.5.5 (unknown [10.2.5.5]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxWM1UTZ5knqESAA--.64772S2; Fri, 30 Jun 2023 11:34:44 +0800 (CST) From: mengqinggang To: binutils@sourceware.org Cc: xuchenghua@loongson.cn, chenglulu@loongson.cn, liuzhensong@loongson.cn, xry111@xry111.site, i.swmail@xen0n.name, maskray@google.com, mengqinggang Subject: [PATCH v1 0/2] LoongArch: gas: Add LVZ and LBT instructions support Date: Fri, 30 Jun 2023 11:34:41 +0800 Message-Id: <20230630033443.2359278-1-mengqinggang@loongson.cn> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxWM1UTZ5knqESAA--.64772S2 X-CM-SenderInfo: 5phqw15lqjwttqj6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29K BjDU0xBIdaVrnRJUUUkFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26c xKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vE j48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxV AFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x02 67AKxVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6x ACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E 87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82 IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC2 0s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMI IF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF 0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87 Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07j0FALUUUUU= X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, 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: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770097050150433048?= X-GMAIL-MSGID: =?utf-8?q?1770097050150433048?= 1. Add LVZ and LBT instructions support. 2. Fix code style issues. mengqinggang (2): LoongArch: gas: Add LVZ and LBT instructions support LoongArch: gas: Fix code style issues gas/testsuite/gas/loongarch/lvz-lbt.d | 191 ++ gas/testsuite/gas/loongarch/lvz-lbt.s | 181 ++ gas/testsuite/gas/loongarch/uleb128.d | 52 +- opcodes/loongarch-opc.c | 3195 +++++++++++++------------ 4 files changed, 2093 insertions(+), 1526 deletions(-) create mode 100644 gas/testsuite/gas/loongarch/lvz-lbt.d create mode 100644 gas/testsuite/gas/loongarch/lvz-lbt.s