From patchwork Thu Feb 29 11:45:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lulu Cai X-Patchwork-Id: 21146 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp333281dyb; Thu, 29 Feb 2024 03:45:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUaZnyG4AzD+OOIGz00GIDYUiAOB8DwSRAEJPgj457XkDNIo8LpTYIB/woo3XHIngFIDCdmqFcRMxuOCwcC/KnIPetl4Q== X-Google-Smtp-Source: AGHT+IFstMgKQMzbjnwJA2Qfc+GKmf7KTu6kckxgo4S/aezqb7f4IkgmFgKpNMcCYYuiG4XjuUGG X-Received: by 2002:a05:620a:c07:b0:787:f88e:251 with SMTP id l7-20020a05620a0c0700b00787f88e0251mr1725315qki.15.1709207136552; Thu, 29 Feb 2024 03:45:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709207136; cv=pass; d=google.com; s=arc-20160816; b=bVU+G8llDaI/ZzY+/+FO4cFJP0QM9wNeF3v5cbksd84iEp06VInEM5+myUomelR0lB glF4hbsVOz8/PJgOxzVKrlblhoh3Y7qYZjVpynH+umKxJZ+n7CtXuekVyhnjl4d4IalM MQsKYrBQ0yug7GjOxFDx57k9F8tbFKPF87jDPeiUsUUIyByyfaFCziuiDAw++XLnIA68 bq0MD2tdBaNwKYaLPZhEeR6rCks5rBQ81dikSO18O3yn4ZiO2u7qUbD622tqqeuCaTeR 1rREE/2+0vyYTEomZCsnV7OO5GJMGC5WFetL9WyVsPXOTGS6hGzDxQ38oGP4AQ5xuobg k2Kg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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:arc-filter :dmarc-filter:delivered-to; bh=gHmPOt6moyLVXkmE/jjPC1BPxbSyAEbWNmUVXxi6He0=; fh=FvlVQEmCpm5H8oBXQswexzCupeeQXnbssobXN+3R2Wg=; b=vvYZGEkpM8ChpIkfN+4aHEeaE4jWFuX7RbSZVPtWAVyUTk6katUKkcDVu2IBymuEFD JNwmEIYJIccNj8SrqrNKSaX+NZeF3ZsH14fqeVJhTWCWk+wjHYE/3RN+XCpT1+rPEO4T dVGZQadlvMbuRonWEC8MGt9ybD34grft+K8v4bfSRCvbAzNnbIK8wv9/5xf1Xytfvul8 xQawsh1YF5sW66IBXZVt7XTX0asU+o3nTA6Spu11By9VeeIXIfPjKeOHKpMNJjyh8Cic duWZDep/EzB87pPGhdP1AN9Rj/6KBToDIMeMxsvIUexu363CSBLCIMxZdofu6j9jez1L IZMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id u9-20020a05620a022900b00787b5a4160fsi1199741qkm.166.2024.02.29.03.45.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 03:45:36 -0800 (PST) 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; arc=pass (i=1); 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 41964385840E for ; Thu, 29 Feb 2024 11:45:36 +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 79C2B3858C5F for ; Thu, 29 Feb 2024 11:45:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 79C2B3858C5F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 79C2B3858C5F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=114.242.206.163 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709207129; cv=none; b=rKAxAPVJKDJ67sWARwU/fl504rb/2z0jvsKzFHLKCRY/vblmlLBUUeryXBgzEy4r2NWG7hn+gLP/TZkN96VCRe9jKCYl4BPvH8BYMu1rr2teh/63EGgOdl0ufpreOI+j+ji63w2GT2gDPv6BmdI20G17dnrrd6vWcjHsV6GU+co= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709207129; c=relaxed/simple; bh=2Qab1jAbjRgZHpokASWGINo3kt+8xEjODLSdSfI3zCA=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=sPYFKaTbM9QTZqyvNOx1/JMDLLRRzEESo0ZasUDZ5PexyFvuOQ/o5pS9A/dfqQBd1NbPr4M01LSDERYjwpJg//ATyHJUqUFZ9XQr2De3Bs9Cd5LjPLjSmiN4PG74PnekSQHVoW7oa/zVmKtID8alSAOc5bj3ZuR+YdbGep65XFI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from loongson.cn (unknown [10.2.6.5]) by gateway (Coremail) with SMTP id _____8BxHOtRbuBlj+ISAA--.37879S3; Thu, 29 Feb 2024 19:45:22 +0800 (CST) Received: from 5.5.5 (unknown [10.2.6.5]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxX89RbuBlRb9KAA--.1626S4; Thu, 29 Feb 2024 19:45:21 +0800 (CST) From: Lulu Cai To: binutils@sourceware.org Cc: xuchenghua@loongson.cn, chenglulu@loongson.cn, liuzhensong@loongson.cn, mengqinggang@loongson.cn, xry111@xry111.site, i.swmail@xen0n.name, maskray@google.com, luweining@loongson.cn, wanglei@loongson.cn, hejinyang@loongson.cn, Lulu Cai Subject: [PATCH v1 0/7] Organize instructions and relocations test cases in gas Date: Thu, 29 Feb 2024 19:45:12 +0800 Message-Id: <20240229114519.1552207-1-cailulu@loongson.cn> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8AxX89RbuBlRb9KAA--.1626S4 X-CM-SenderInfo: xfdlz3tox6z05rqj20fqof0/1tbiAQACB2XgQGUEeAARsJ X-Coremail-Antispam: 1Uk129KBj93XoWxAw15Zw1rCF4UGFyxtr1fGrX_yoWrCr4DpF W7ZrnYkr48GFs7JrnxKa45uFn3Jw4xCr4a9FWft3WakrySqr90y3Wktr9xJFW5t3yDW34f Zw4Svr45uF15t3cCm3ZEXasCq-sJn29KB7ZKAUJUUUUx529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUBIb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2kKe7AKxVWUAVWUtwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07 AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWU tVWrXwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7V AKI48JMxkF7I0En4kS14v26r126r1DMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY 6r1j6r4UMxCIbckI1I0E14v26r126r1DMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7 xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xII jxv20xvE14v26r4j6ryUMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw2 0EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x02 67AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8KNt3UUUUU== X-Spam-Status: No, score=-7.0 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.30 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792233582229837097 X-GMAIL-MSGID: 1792233582229837097 For the test cases of instructions, we distinguished them according to the classification method in the instruction manual. Instruction test case classification: For the basic instruction set, there are LA32 and LA64 classes, which contain int, float, and privilege, respectively. For the extended instruction set, only LA64 versions are available, including lsx, lasx, lvz, and lbt. For other instructions not defined in the manual, LA32 and LA64 are distinguished, Includes macros and alias instructions. The relocations of LA32 are those used by instructions that exist in the instruction manual of LA32. Relocation the test case classification: There are two types of LA32 and LA64. Lulu Cai (7): LoongArch: Add gas testsuit for alias instructions LoongArch: Add gas testsuit for lbt/lvz instructions LoongArch: Add gas testsuit for lsx/lasx instructions LoongArch: Add gas testsuit for LA64 int/float instructions LoongArch: Add gas testsuit for LA32 int/float instructions LoongArch: Add gas testsuit for LA64 relocations LoongArch: Add gas testsuit for LA32 relocations gas/testsuite/gas/loongarch/insn_alias_32.d | 19 + gas/testsuite/gas/loongarch/insn_alias_32.s | 10 + gas/testsuite/gas/loongarch/insn_alias_64.d | 20 + gas/testsuite/gas/loongarch/insn_alias_64.s | 11 + gas/testsuite/gas/loongarch/insn_float32.d | 157 +++++ gas/testsuite/gas/loongarch/insn_float32.s | 149 ++++ gas/testsuite/gas/loongarch/insn_float64.d | 165 +++++ gas/testsuite/gas/loongarch/insn_float64.s | 157 +++++ gas/testsuite/gas/loongarch/insn_int32.d | 147 ++++ gas/testsuite/gas/loongarch/insn_int32.s | 156 ++++ gas/testsuite/gas/loongarch/insn_int64.d | 430 ++++++++++++ gas/testsuite/gas/loongarch/insn_int64.s | 440 ++++++++++++ gas/testsuite/gas/loongarch/insn_lasx.d | 737 +++++++++++++++++++ gas/testsuite/gas/loongarch/insn_lasx.s | 727 +++++++++++++++++++ gas/testsuite/gas/loongarch/insn_lbt.d | 186 +++++ gas/testsuite/gas/loongarch/insn_lbt.s | 176 +++++ gas/testsuite/gas/loongarch/insn_lsx.d | 742 ++++++++++++++++++++ gas/testsuite/gas/loongarch/insn_lsx.s | 732 +++++++++++++++++++ gas/testsuite/gas/loongarch/insn_lvz.d | 15 + gas/testsuite/gas/loongarch/insn_lvz.s | 5 + gas/testsuite/gas/loongarch/relocs_32.d | 75 ++ gas/testsuite/gas/loongarch/relocs_32.s | 61 ++ gas/testsuite/gas/loongarch/relocs_64.d | 144 ++++ gas/testsuite/gas/loongarch/relocs_64.s | 109 +++ 24 files changed, 5570 insertions(+) create mode 100644 gas/testsuite/gas/loongarch/insn_alias_32.d create mode 100644 gas/testsuite/gas/loongarch/insn_alias_32.s create mode 100644 gas/testsuite/gas/loongarch/insn_alias_64.d create mode 100644 gas/testsuite/gas/loongarch/insn_alias_64.s create mode 100644 gas/testsuite/gas/loongarch/insn_float32.d create mode 100644 gas/testsuite/gas/loongarch/insn_float32.s create mode 100644 gas/testsuite/gas/loongarch/insn_float64.d create mode 100644 gas/testsuite/gas/loongarch/insn_float64.s create mode 100644 gas/testsuite/gas/loongarch/insn_int32.d create mode 100644 gas/testsuite/gas/loongarch/insn_int32.s create mode 100644 gas/testsuite/gas/loongarch/insn_int64.d create mode 100644 gas/testsuite/gas/loongarch/insn_int64.s create mode 100644 gas/testsuite/gas/loongarch/insn_lasx.d create mode 100644 gas/testsuite/gas/loongarch/insn_lasx.s create mode 100644 gas/testsuite/gas/loongarch/insn_lbt.d create mode 100644 gas/testsuite/gas/loongarch/insn_lbt.s create mode 100644 gas/testsuite/gas/loongarch/insn_lsx.d create mode 100644 gas/testsuite/gas/loongarch/insn_lsx.s create mode 100644 gas/testsuite/gas/loongarch/insn_lvz.d create mode 100644 gas/testsuite/gas/loongarch/insn_lvz.s create mode 100644 gas/testsuite/gas/loongarch/relocs_32.d create mode 100644 gas/testsuite/gas/loongarch/relocs_32.s create mode 100644 gas/testsuite/gas/loongarch/relocs_64.d create mode 100644 gas/testsuite/gas/loongarch/relocs_64.s