[v5,09/10] RISC-V: autovec: This patch adds a guard for VNx1 vectors that are present in ports like riscv.
Message ID | 20230426214514.3355280-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 b10csp523483vqo; Wed, 26 Apr 2023 14:49:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RssmlcjMJ6ZFKDvcPeLdNndEKVMvxFKnD3jvCAgQDby4PhMIaMXKUR2hAqdozfzhv0Xyy X-Received: by 2002:a05:6402:42c8:b0:506:71bd:3931 with SMTP id i8-20020a05640242c800b0050671bd3931mr4230741edc.2.1682545748167; Wed, 26 Apr 2023 14:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682545748; cv=none; d=google.com; s=arc-20160816; b=TFidKNDncNnXJb7UvEXn2TEwvH+ZIbn2UAylNw4GUME2Ql0AkZo6liBfluhNQgrLvy Z0jP72SJfwwy4TS63jmCyxql6evq16ACflVKpH8jW0GwsBxWZigiaqnhk2Tbks0WuITS t5JqPmc1zItfpgIkRqherxZ7OCbeo4DUMNCAv72WeIOJTlEpAFKGrzBcxAvIHMJpRPSx nGyT1BVAsVzu+mNa5EDON7OGsNkd9NKMx3kYPv9DiNulkpSlz2KvhT1Vsj8NWc1j85QU H+uFsoRVklaR9ISgvadJPyqZmALOhFM2LqePoPlCZVli1xputjUIE27IttNCNFSUuzyS +LbQ== 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=Sc2x0GK9H1FBcUu61xaPReFI8Fyd4aK/ajl+ZXhKWQ0T7JIYToR0sL6ZFCBc8PM39u amjIdVuAX+oZlUnAArf/HWoQvf6hz+be8WJrxhHDiSt+QBo3kBoEbp5c+f/fOkwgIeyU 6udl1uv9Cl9GMYZ4pXcK3NTtMhNErJp0NAlmmWGBfpLFbjutVl+DciVO6/c9OcbofqLM bRxIv7/U5QlTyEtpkRo/iWe3Sd5wTn+pTrRh9Ovco5S4e0nXNQlcCwHVIg7Xr54gp9ii RwtXX8x8JdCR1e5Kx37Kc2FWQ2d9GCr6OVfm5L/yDE8Hf7qX6EWALuN5YlM5HEjkWl2R G1yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=MvyLhV+N; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id x6-20020aa7d6c6000000b0050685c317c9si12876925edr.290.2023.04.26.14.49.07 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 14:49:08 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.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; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=MvyLhV+N; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 73861385414E for <ouuuleilei@gmail.com>; Wed, 26 Apr 2023 21:46:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by sourceware.org (Postfix) with ESMTPS id 63C483858422 for <gcc-patches@gcc.gnu.org>; Wed, 26 Apr 2023 21:45:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 63C483858422 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-x112b.google.com with SMTP id 00721157ae682-552a6357d02so91898227b3.3 for <gcc-patches@gcc.gnu.org>; Wed, 26 Apr 2023 14:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1682545521; x=1685137521; 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=MvyLhV+NTReS2a5Ga0uMYCNiHZlR3pFN6V5itE7jcrK6PZLvS68o7X9kxKJkLGhQts d3r0P/NpKQhaDLznG/OPU++desH1Px6+9wTRh8OorktlXeeUC4jKiLO/Mcp7k4p5wXNf /cl37VOjhFb0ztAYS37P/cTMImhQzh4V2VoM6Ug9DF5y82XthCz+AuBFxu69VqU5isGJ jLVrIaRnLAlZ71joUu3mg2w9BVMSgtzBLPmsuSb4mbK6f34FxmiOlEWV56mw5csww95k XzGwQ/NxZUdNJiZZhpkRVDzEMUCoBWlyVxhU8TJ49pMrE+eQ/ffS3lf7uF9fcd2YaOWa b9ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682545521; x=1685137521; 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=lERFuSS6oTzc5zMBksy+COGGpMqwmEa5tywTCDkbkELFoVRX8s+9KJrfaDbMjK9gpS PbOjM1fJggEcK8OtL2KH1wLRkfBT5i5wBh79tcjdDytGYU2UvBK31GwdL4R1NVETlpxO c3qqVbcRTQlkEOIjtnbcS1wgsD18Z5ayFfiwNKfD1qIXtiFEaR7zxWmXLPh4AyIdSJKr knDrq4YE5O9F4vT9pig5w6sGNURdF/2h4T+oxKyWQlgkooJsUNg51QpPYnjODENdux94 tF29koFGPOXmj4vAa5MNmPdSht4iY3/VYLQhxSSRP0F7reu3OZObgdj/115p/K4mt2Do WqFg== X-Gm-Message-State: AAQBX9ecml2AsFFynb1oIGcTiQJKLU2Iy+joFdAG148djSPJUGm4VicL LsJgEGxdVqIRPCTSGLXZhxXHWVRmGROT69U+CWo= X-Received: by 2002:a0d:cbd4:0:b0:54f:5b0:2d9c with SMTP id n203-20020a0dcbd4000000b0054f05b02d9cmr13931465ywd.16.1682545520332; Wed, 26 Apr 2023 14:45:20 -0700 (PDT) Received: from system76-pc.ba.rivosinc.com ([136.57.172.92]) by smtp.gmail.com with ESMTPSA id n12-20020a0dcb0c000000b00552e32354f8sm4469824ywd.32.2023.04.26.14.45.19 for <gcc-patches@gcc.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 14:45:19 -0700 (PDT) From: Michael Collison <collison@rivosinc.com> To: gcc-patches@gcc.gnu.org Subject: [PATCH v5 09/10] RISC-V: autovec: This patch adds a guard for VNx1 vectors that are present in ports like riscv. Date: Wed, 26 Apr 2023 17:45:13 -0400 Message-Id: <20230426214514.3355280-10-collison@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230426214514.3355280-1-collison@rivosinc.com> References: <20230426214514.3355280-1-collison@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.2 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?1764277090531642609?= X-GMAIL-MSGID: =?utf-8?q?1764277090531642609?= |
Series |
RISC-V: autovec: Add autovec support
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Michael Collison
April 26, 2023, 9:45 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(+)
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++)