From patchwork Mon May 8 08:54:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2 via Gcc-patches" X-Patchwork-Id: 91031 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2006146vqo; Mon, 8 May 2023 01:55:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ40k7wLhYFkV3hj6qz6B6p2nKQDYBBVh7ryK2Nh8eeR5VqwuZ64Od5jt5u1vhOFhFPzjPEa X-Received: by 2002:a17:907:94cf:b0:8b8:c06e:52d8 with SMTP id dn15-20020a17090794cf00b008b8c06e52d8mr9292273ejc.36.1683536148172; Mon, 08 May 2023 01:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683536148; cv=none; d=google.com; s=arc-20160816; b=nmG6h9TLTnke01jUb5Pxh7rdIt2hqBZsu1b9Em/HIY4ZB/l7W5RBG19aRRkQv1dYvY CmQprnuGTZrSXbbnSL+mGxc0XG7ObdjZTB4YxFDdPZEZ9N6Dd159wVycl57PUKhP3KyM LmGmYTTooMw2AJfTXSH/cG8783HgBHADulLunodckV1XPuMsM1Z5cdh5/HNlYMd9dny9 qj/UnzhWzPfqjRqjPeFyIhLccsSfxamVc5RrheJlVEysVn4bgCMPnVUmEkaQCoFwBB2c 9gHIfgvkuCm6etDU76Xm6dUPuZvH97NFiVxC74YO9gFSl60tfcxBOEAnQZM4YgSMCqwq jyKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=aYdiPgVNj4pSq4VEw9oNNK8NwuhObrgYAa41Ll2a/IE=; b=Gp7ZC1A/VStg15isWMuN0sK8d+YV4lqJ/m8eyqG1WfOYqJhhaxTrUVf/6iaCIvIax7 h92yjS8RDtIpbbg0xZCjlXR0gtc4wA7V9+HwRJ++WQWQI2jMtzcUxeVE5nTX9abPcA4p 4OVjaDhOj0keK2iOIztknKN9ajtLS6RzplLsr3PTwuswlDvatjFoZlTfptvCuIIFE7u8 Oj6O8X7stH4+cH9dgLnyfA/3l6Fuoh13HDQOauOgHp5plTFFkZtNrDcJax8Slg/OGpnz R9/f7/9op8VJVmrDCj7RlRPdDgrlD9mgWeWtpvn5BkfqUCSgH0o+oLKkNfkXQCmrvqwh PMzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=io5YB0Ro; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id k11-20020a17090646cb00b0094ee5fea326si5560949ejs.636.2023.05.08.01.55.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 01:55:48 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=io5YB0Ro; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 811853857030 for ; Mon, 8 May 2023 08:55:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 811853857030 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683536134; bh=aYdiPgVNj4pSq4VEw9oNNK8NwuhObrgYAa41Ll2a/IE=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=io5YB0Roc8ikHpWoc2VohwbTEEJq9GO5jUAhMfjKRh4TytuEKowraMajhxl+m9j25 IEeMVhJMUFI8ry1dra24Gbc/ZsBg0s0ZegEJn6GS7GHUUx8KvWS7yVMbnF4OIuD7SA 9UlBjbUb4AV0vG/xXqu9J6LdzzEWpaD72+sxAMdE= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by sourceware.org (Postfix) with ESMTPS id 2DF77385735D for ; Mon, 8 May 2023 08:54:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2DF77385735D X-IronPort-AV: E=McAfee;i="6600,9927,10703"; a="334033832" X-IronPort-AV: E=Sophos;i="5.99,258,1677571200"; d="scan'208";a="334033832" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 01:54:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10703"; a="944772540" X-IronPort-AV: E=Sophos;i="5.99,258,1677571200"; d="scan'208";a="944772540" Received: from shvmail02.sh.intel.com ([10.239.244.9]) by fmsmga006.fm.intel.com with ESMTP; 08 May 2023 01:54:31 -0700 Received: from pli-ubuntu.sh.intel.com (pli-ubuntu.sh.intel.com [10.239.159.47]) by shvmail02.sh.intel.com (Postfix) with ESMTP id 2B2C51006F1E; Mon, 8 May 2023 16:54:30 +0800 (CST) To: gcc-patches@gcc.gnu.org Cc: juzhe.zhong@rivai.ai, kito.cheng@sifive.com, pan2.li@intel.com, yanzhang.wang@intel.com Subject: [PATCH] RISC-V: Update RVV integer compare simplification comments Date: Mon, 8 May 2023 16:54:28 +0800 Message-Id: <20230508085428.4074457-1-pan2.li@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_ASCII_DIVIDERS, SPF_HELO_NONE, SPF_NONE, 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: 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: , X-Patchwork-Original-From: Pan Li via Gcc-patches From: "Li, Pan2 via Gcc-patches" Reply-To: pan2.li@intel.com 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?1765315600073514668?= X-GMAIL-MSGID: =?utf-8?q?1765315600073514668?= From: Pan Li The VMSET simplification RVV integer comparision has merged already. This patch would like to update the comments for the cases that the define_split will act on. Signed-off-by: Pan Li gcc/ChangeLog: * config/riscv/vector.md: Add comments for simplifying to vmset. Signed-off-by: Pan Li --- gcc/config/riscv/vector.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md index 9ccc0d6a513..9904d4ca5e2 100644 --- a/gcc/config/riscv/vector.md +++ b/gcc/config/riscv/vector.md @@ -8159,13 +8159,20 @@ (define_insn "@pred_indexed_store" ;; ----------------------------------------------------------------------------- ;; ---- Integer Compare Instructions Simplification ;; ----------------------------------------------------------------------------- -;; Simplify to VMCLR.m Includes: +;; Simplify OP(V, V) Instructions to VMCLR.m Includes: ;; - 1. VMSNE ;; - 2. VMSLT ;; - 3. VMSLTU ;; - 4. VMSGT ;; - 5. VMSGTU ;; ----------------------------------------------------------------------------- +;; Simplify OP(V, V) Instructions to VMSET.m Includes: +;; - 1. VMSEQ +;; - 2. VMSLE +;; - 3. VMSLEU +;; - 4. VMSGE +;; - 5. VMSGEU +;; ----------------------------------------------------------------------------- (define_split [(set (match_operand:VB 0 "register_operand") (if_then_else:VB