[v4,09/10] This patch adds a guard for VNx1 vectors that are present in ports like riscv.
Message ID | 20230417183701.2249183-10-collison@rivosinc.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2329091vqo; Mon, 17 Apr 2023 11:41:29 -0700 (PDT) X-Google-Smtp-Source: AKy350Z04M9oyv70z5Rt1ayYsf+c4mt566dHFHNlenLmkAg2FZDIjGBZ2uHvtbn7W3NBFv4Rw77p X-Received: by 2002:aa7:d7d5:0:b0:506:ad45:49b1 with SMTP id e21-20020aa7d7d5000000b00506ad4549b1mr2840372eds.42.1681756889183; Mon, 17 Apr 2023 11:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681756889; cv=none; d=google.com; s=arc-20160816; b=YPPzoD1i1XgPQC2t4oLY2eLf1qi1fjHXVNEx8nbCt6e4FcExR4qO1nN/mkw5HdnfyA 9ybaFJvwaWVDMAsUj2y5RRH8+CvX92tMFucOXsog3fIvu9L7FbxSbya2gCBa24/hquu8 Sq66+LFVWFySUN5B0jI/5YC7ZKZp88XkAbhMltnm0+6bykXPzm0DSbsW3Y1rKOgBKKwI L48YrAzffC8jK67WwF2uGD59ObPQljIaa9ko7g9bYBMSdyIA9VSqE76Xu0p4gakX7J8r cQasPTqEqdtq7+2HEj5la+sow0jxxbFGYOtThFzBVvjKiEd1yWlVx1Sf4JGr4QUClB4r f2BA== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:dmarc-filter:delivered-to; bh=3UyxEYbY1lHxXBiydL8RZMJ4aK38w5sY/3i6sxcAAwg=; b=ZfBWfBNE4skjLxp8D3caJSJElzn+2LDfDF+TNPunaEomuWqTepF/QVkN0CsQe2ZH9o ogsSjgeAfq45TKLtL3eYDNdwPX/UyG0ht91Q9VnFYNhX/lvLZbF7j8xtisVvXKoqh/42 GGzyPUCkKoKR2N/2eXlgTpDFjh77n3nJQ9PqE4WlU9m0paQGmQS2jqtI06RIuRV/+rRq +Zk/SdqWUTFxkm41tCOmmT65aaBqES1aExhTYtmVk7vo/5g/H6ORTnv5Qyujw9oqwEf3 q7zx95yKoCAQWsNtJPcgjQRjodAVv7pU1NGtBUGkmnIpq+89u4trLuy2/oipcNGjlf8j JcZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=N0WRyniW; 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" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f15-20020a05640214cf00b005049b5c6f4fsi10609050edx.425.2023.04.17.11.41.28 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 11:41:29 -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=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=N0WRyniW; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 84B0B3852751 for <ouuuleilei@gmail.com>; Mon, 17 Apr 2023 18:38:14 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by sourceware.org (Postfix) with ESMTPS id 11C90385841C for <gcc-patches@gcc.gnu.org>; Mon, 17 Apr 2023 18:37:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 11C90385841C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-54c12009c30so535088787b3.9 for <gcc-patches@gcc.gnu.org>; Mon, 17 Apr 2023 11:37:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1681756627; x=1684348627; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=3UyxEYbY1lHxXBiydL8RZMJ4aK38w5sY/3i6sxcAAwg=; b=N0WRyniWOETfaBznfsJuYYDcJJqpn8bqm4qwOZGbvbGa1SrHoNlxUXELa47mAuWs61 XKEymRCbCKkR2CTsLhKA0bR6OtQyQ1VNMXb16+L4ep+acd5N/1jaTSsnVl5kR4NqPo64 tmps9RJgj7qf3bz1tEOAiOSfOSgMX4e/OBEUSWicMAa/hKA6Q9W/LUEEt6H0tuXNLGCX 6TYDsDjV6yd0sVqf6kuyO8n4sxxzT0mgkBI0WYj2D8W7uT/1xKNYuobQggxj7uEhKC4j 0NJ0BGEnU5hGac38wwJsI1+wrgky1ntAKnVPQiarybyAckiQlNdEQPiTBbrnW38FnXZa kSoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681756627; x=1684348627; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3UyxEYbY1lHxXBiydL8RZMJ4aK38w5sY/3i6sxcAAwg=; b=AcSynMyQ6BF3PcaY1B4B0sYTXVCfsnVTLpsKIH6QnLUR2i+wakMrDCexKH8G/kOCT2 V/uPbk2i/NNqL70WcQSPH/Qaa73wb5OO2ibhkfKtbdKEZojqntnkCsrVkus2hePKgZli RnvCLfs6f/eaiYlbdTGtV40dFSa9XJf1B3h+u3hjBOWjjCAJtXXmnEl9gGfTY/+1n2tB vfMgXWvOsgxFDzfGVeIsgvFfWdE1NXmfw14FCARi3mhq8oyAY8k1sDbf9NtEZYxKXWI0 gPtc9PzjB/T1hC/iOKmd9hqsQltmzzaWhPkH5mB+MGN5ohgwdVWMcR1b29n37gsghFKc HThg== X-Gm-Message-State: AAQBX9ebHct3CEcia2XpPMEOJ9jQL7ERId67cHnRC94Rk4XfSHqqF2Rw fZS7x/0RBgrluk+m4KjWLjrGrm2rgEDKxjy5YHMPaw== X-Received: by 2002:a81:6d84:0:b0:54f:b5bc:42d1 with SMTP id i126-20020a816d84000000b0054fb5bc42d1mr15686397ywc.47.1681756627418; Mon, 17 Apr 2023 11:37:07 -0700 (PDT) Received: from system76-pc.ba.rivosinc.com ([136.57.172.92]) by smtp.gmail.com with ESMTPSA id 66-20020a810645000000b0054f6f65f258sm3278559ywg.16.2023.04.17.11.37.07 for <gcc-patches@gcc.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 11:37:07 -0700 (PDT) From: Michael Collison <collison@rivosinc.com> To: gcc-patches@gcc.gnu.org Subject: [PATCH v4 09/10] This patch adds a guard for VNx1 vectors that are present in ports like riscv. Date: Mon, 17 Apr 2023 14:37:00 -0400 Message-Id: <20230417183701.2249183-10-collison@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230417183701.2249183-1-collison@rivosinc.com> References: <20230417183701.2249183-1-collison@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763449912061089725?= X-GMAIL-MSGID: =?utf-8?q?1763449912061089725?= |
Series |
RISC-V: Add autovec support
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Michael Collison
April 17, 2023, 6:37 p.m. UTC
From: Kevin Lee <kevinl@rivosinc.com>
Kevin Lee <kevinl@rivosinc.com>
gcc/ChangeLog:
* tree-vect-data-refs.cc (vect_grouped_store_supported): Add new
condition
---
gcc/tree-vect-data-refs.cc | 2 ++
1 file changed, 2 insertions(+)
Comments
I would prefer drop this patch from this patch series since I believe https://patchwork.ozlabs.org/project/gcc/patch/20230414014518.15458-1-juzhe.zhong@rivai.ai/ is the right fix for this issue. On Tue, Apr 18, 2023 at 2:40 AM Michael Collison <collison@rivosinc.com> wrote: > > From: Kevin Lee <kevinl@rivosinc.com> > > Kevin Lee <kevinl@rivosinc.com> > gcc/ChangeLog: > > * tree-vect-data-refs.cc (vect_grouped_store_supported): Add new > condition > --- > gcc/tree-vect-data-refs.cc | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/gcc/tree-vect-data-refs.cc b/gcc/tree-vect-data-refs.cc > index 8daf7bd7dd3..df393ba723d 100644 > --- a/gcc/tree-vect-data-refs.cc > +++ b/gcc/tree-vect-data-refs.cc > @@ -5399,6 +5399,8 @@ vect_grouped_store_supported (tree vectype, unsigned HOST_WIDE_INT count) > poly_uint64 nelt = GET_MODE_NUNITS (mode); > > /* The encoding has 2 interleaved stepped patterns. */ > + if(!multiple_p (nelt, 2)) > + return false; > vec_perm_builder sel (nelt, 2, 3); > sel.quick_grow (6); > for (i = 0; i < 3; i++) > -- > 2.34.1 >
Thanks Kito I will look into this. On 4/18/23 10:26, Kito Cheng wrote: > I would prefer drop this patch from this patch series since I believe > https://patchwork.ozlabs.org/project/gcc/patch/20230414014518.15458-1-juzhe.zhong@rivai.ai/ > is the right fix for this issue. > > On Tue, Apr 18, 2023 at 2:40 AM Michael Collison <collison@rivosinc.com> wrote: >> From: Kevin Lee <kevinl@rivosinc.com> >> >> Kevin Lee <kevinl@rivosinc.com> >> gcc/ChangeLog: >> >> * tree-vect-data-refs.cc (vect_grouped_store_supported): Add new >> condition >> --- >> gcc/tree-vect-data-refs.cc | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/gcc/tree-vect-data-refs.cc b/gcc/tree-vect-data-refs.cc >> index 8daf7bd7dd3..df393ba723d 100644 >> --- a/gcc/tree-vect-data-refs.cc >> +++ b/gcc/tree-vect-data-refs.cc >> @@ -5399,6 +5399,8 @@ vect_grouped_store_supported (tree vectype, unsigned HOST_WIDE_INT count) >> poly_uint64 nelt = GET_MODE_NUNITS (mode); >> >> /* The encoding has 2 interleaved stepped patterns. */ >> + if(!multiple_p (nelt, 2)) >> + return false; >> vec_perm_builder sel (nelt, 2, 3); >> sel.quick_grow (6); >> for (i = 0; i < 3; i++) >> -- >> 2.34.1 >>
diff --git a/gcc/tree-vect-data-refs.cc b/gcc/tree-vect-data-refs.cc index 8daf7bd7dd3..df393ba723d 100644 --- a/gcc/tree-vect-data-refs.cc +++ b/gcc/tree-vect-data-refs.cc @@ -5399,6 +5399,8 @@ vect_grouped_store_supported (tree vectype, unsigned HOST_WIDE_INT count) poly_uint64 nelt = GET_MODE_NUNITS (mode); /* The encoding has 2 interleaved stepped patterns. */ + if(!multiple_p (nelt, 2)) + return false; vec_perm_builder sel (nelt, 2, 3); sel.quick_grow (6); for (i = 0; i < 3; i++)