From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender-0.a4lg.com [IPv6:2401:2500:203:30b:4000:6bfe:4757:0]) by sourceware.org (Postfix) with ESMTPS id 3A40A3858D28 for ; Wed, 6 Sep 2023 05:47:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3A40A3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=irq.a4lg.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=irq.a4lg.com Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 89DBB300089; Wed, 6 Sep 2023 05:47:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irq.a4lg.com; s=2017s01; t=1693979231; bh=CWMB7x9BT87WUCLwue9FiDRitPLCoAGGfywXJvxJxzY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Mime-Version:Content-Transfer-Encoding; b=CskF3cqZndIfT3RIsYEvmztgW/CKXi0Uay+yIRK4nXn56550hqy5+klIpVJ2cKKkq WC1ABDLSRTQX9S3RZG+q6TwUSnQJ1xPe2IjX8ZPtlEEfxdeN+EFCUmCkktx/UVI10u p2OjGeuLaMm2JsY+xVJFYYwz/fhxlCXSjkvZ9GJQ= From: Tsukasa OI To: Tsukasa OI , Kito Cheng , Palmer Dabbelt , Andrew Waterman , Jim Wilson , Jeff Law Cc: gcc-patches@gcc.gnu.org Subject: [PATCH v4 0/1] RISC-V: Add support for 'XVentanaCondOps' reusing 'Zicond' support Date: Wed, 6 Sep 2023 05:47:06 +0000 Message-ID: In-Reply-To: References: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KAM_MANYTO,KAM_SHORT,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: PATCH v1: PATCH v2: PATCH v3: Changes: v1 -> v2 * Removed bogus opt2 pattern as pointed out in: note that this is not in the ChangeLog expecting the patch above applies first. Changes: v2 -> v3 * Instead of removing opt2 pattern, fix opt2 pattern: Changes: v3 -> v4 * Leave only specific condition on {eq,ne}z_ventana code_attr. (eqz_ventana, nez_ventana): "maskcn" -> "n", "maskc" -> "" (*czero..) "vt." -> "vt.maskc" (*czero..) "vt." -> "vt.maskc" * Testsuite: Reuse "zicond-*.c" (#include from "xventanacondops-*.c") * Minor Comment: ";; Zicond" -> ";; Zicond / XVentanaCondOps" * Rebase against commit e87212ead5e9 ("RISC-V: zicond: Fix opt2 pattern") On 2023/09/06 12:07, Jeff Law wrote: > You actually don't even have to break out the common parts. The dg- > directives in an included file aren't parsed by the dg framework. Wow, that was right. It can be sometimes confusing but very useful in this case. Thanks for the info! Sincerely, Tsukasa Tsukasa OI (1): RISC-V: Add support for 'XVentanaCondOps' reusing 'Zicond' support gcc/common/config/riscv/riscv-common.cc | 2 + gcc/config/riscv/riscv-opts.h | 6 +++ gcc/config/riscv/riscv.cc | 4 +- gcc/config/riscv/riscv.md | 2 +- gcc/config/riscv/riscv.opt | 3 ++ gcc/config/riscv/zicond.md | 53 +++++++++++++++---- .../xventanacondops-primitiveSemantics-rv32.c | 8 +++ .../xventanacondops-primitiveSemantics.c | 10 ++++ .../gcc.target/riscv/xventanacondops-xor-01.c | 8 +++ 9 files changed, 82 insertions(+), 14 deletions(-) create mode 100644 gcc/testsuite/gcc.target/riscv/xventanacondops-primitiveSemantics-rv32.c create mode 100644 gcc/testsuite/gcc.target/riscv/xventanacondops-primitiveSemantics.c create mode 100644 gcc/testsuite/gcc.target/riscv/xventanacondops-xor-01.c base-commit: c1597e7fb9f9ecb9d7c33b5afa48031f284375de -- 2.42.0