From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) by sourceware.org (Postfix) with ESMTPS id 4259A3858407 for ; Fri, 12 Jan 2024 03:18:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4259A3858407 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.alibaba.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4259A3858407 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=115.124.30.101 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705029539; cv=none; b=xqTTSaxdj9JJtSjV/puXGVb0kbKW5NrKVefiHj1jCwzeM6lhWnxZLOirUOaG3crFDW/Ghx3i4YGHVRo/izTyvxEup22hYXUVLE7+qVENOLbrjCc2zsm//gUopMwa45c7z4dMH7m/DbGXKuU0Lacg95RYCR7BOB5DccSeFRDbAcY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705029539; c=relaxed/simple; bh=m2lGJx7NZFQXijQLZiarGv1MhV9zhan/h/EgWyTCyQ0=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=S49QFMpaA5XZMh3A9CDcn9CBbEsd/IZup/ZFD0tN7SrH4hEPP8fmyGLPvGEh+OLWBFYNku3ecwWhr+hB26Yvp9f9bYgRcSmQWdW2n2StNG20Fz2xU9E9tJhjWeqtgMrHKfwR1rkPKYHsyEJhlZf54WfFFNX1w1Ao6Zp3Wc5ywSk= ARC-Authentication-Results: i=1; server2.sourceware.org X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=cooper.joshua@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0W-RP9Ay_1705029530; Received: from localhost.localdomain(mailfrom:cooper.joshua@linux.alibaba.com fp:SMTPD_---0W-RP9Ay_1705029530) by smtp.aliyun-inc.com; Fri, 12 Jan 2024 11:18:52 +0800 From: "Jun Sha (Joshua)" To: gcc-patches@gcc.gnu.org Cc: jim.wilson.gcc@gmail.com, palmer@dabbelt.com, andrew@sifive.com, philipp.tomsich@vrull.eu, jeffreyalaw@gmail.com, christoph.muellner@vrull.eu, juzhe.zhong@rivai.ai, kito.cheng@gmail.com, "Jun Sha (Joshua)" , Jin Ma , Xianmiao Qu Subject: [PATCH v5] RISC-V: Support XTheadVector extension Date: Fri, 12 Jan 2024 11:18:40 +0800 Message-Id: <20240112031840.1556-1-cooper.joshua@linux.alibaba.com> X-Mailer: git-send-email 2.27.0.windows.1 In-Reply-To: <20231229040310.1047-1-cooper.joshua@linux.alibaba.com> References: <20231229040310.1047-1-cooper.joshua@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.9 required=5.0 tests=BAYES_00,ENV_AND_HDR_SPF_MATCH,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This patch series presents gcc implementation of the XTheadVector extension [1]. [1] https://github.com/T-head-Semi/thead-extension-spec/ For some vector patterns that cannot be avoided, we use "!TARGET_XTHEADVECTOR" to disable them in order not to generate instructions that xtheadvector does not support, causing 10 changes in vector.md. For the th. prefix issue, we use current_output_insn and the ASM_OUTPUT_OPCODE hook instead of directly modifying patterns in vector.md. We have run the GCC test suite and can confirm that there are no regressions. Furthermore, we have run the tests in https://github.com/riscv-non-isa/rvv-intrinsic-doc/tree/main/examples, and all the tests passed. Co-authored-by: Jin Ma Co-authored-by: Xianmiao Qu Co-authored-by: Christoph Müllner [PATCH v4] RISC-V: Introduce XTheadVector as a subset of V1.0.0 [PATCH v5] RISC-V: Adds the prefix "th." for the instructions of XTheadVector [PATCH v6] RISC-V: Handle differences between XTheadvector and Vector [PATCH v6] RISC-V: Add support for xtheadvector-specific intrinsics [PATCH v6] RISC-V: Fix register overlap issue for some xtheadvector instructions [PATCH v5] RISC-V: Rewrite some instructions using ASM targethook