Message ID | 20240129193812.1143289-1-ewlu@rivosinc.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp790696dyb; Mon, 29 Jan 2024 11:39:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCqAkUcrPeAxvMrAaZIt/oq+nOQXYdTiHwaf0t0yF9fX1DMSPDc67WkNo7VUrq3D+6U4z5 X-Received: by 2002:a05:6214:2404:b0:686:1e2:7480 with SMTP id fv4-20020a056214240400b0068601e27480mr10822387qvb.37.1706557143664; Mon, 29 Jan 2024 11:39:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706557143; cv=pass; d=google.com; s=arc-20160816; b=xViFgu/mpBJVC++eVkdymh5RGXvvvOPdVO9iyeAUnA8mdH4Mgq2jIIaEud6Ljtqz0y IKPZ8KlW8GkQtseiJTEq83a7Nm+CAABASn1Wz5fT5GJ+jO4lhN1EHXtte3iYZW3dQhOT rD2MgYp8Lzm6FGrEasNcNvDm+TSYILG4kZ1OZ+2mIzDtGewCSx96OGRdRWNi1EFJJEB7 j/b5rh0F5w5xpG3DjeNP39rod3fSVuOAgUzAQEK6oNMgEr31pO/54EZGRdnEXfYKhnIT B3VV1F3UNFuuj0GQb95Hd+wmBo2frU9W5EUO72F6pFOVVsX7NexmkqVoCrJ07HQNFfqI 1XNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=2plxE+OIeJF16IeN9Be88edFZTHXwh9mVUubgP3cTto=; fh=r+SIYcgLopsTG8D0vSkuNNcbfbLGreWBAuINt5YEr6Q=; b=oiHmiW/tVVkNmssEayUvl5MuSdldGp3wPEGui6O3Nfe4poUwweY+Ve73qdASiRNztn s3gHr2NhMlQJ6OceB8XFODjyNT1bEUx3RpP1m0AV54co0VhYS/DpPw8jZIpB9Rt0dCnO XwhGpvBSyZZM6EcD52PqOA0Y+HD6b7prmoNQcjhyroagmXZ7rDi50xdYtpuCYWnzGsqr JOq8q9BfE27h/ErwSxLMfUszYGaoYatFxgHPt/QG9NWCrQGgjsQMsOBibNKd+pcKIv35 HJvxgFeViavp5JeajwwhtOhwcnkur9qB7xF/DSV4k6lb2svLxZcNZVX6c8WbEaz0xS7d 4+dA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=hgfEYVYN; arc=pass (i=1); 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id q9-20020ad45749000000b0068c5582cbf6si1474041qvx.360.2024.01.29.11.39.03 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 11:39:03 -0800 (PST) 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.20230601.gappssmtp.com header.s=20230601 header.b=hgfEYVYN; arc=pass (i=1); 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 58B91385840D for <ouuuleilei@gmail.com>; Mon, 29 Jan 2024 19:39:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id 30A613858D1E for <gcc-patches@gcc.gnu.org>; Mon, 29 Jan 2024 19:38:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 30A613858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 30A613858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::435 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706557099; cv=none; b=Ks/n0GyyZZ0AuqublrsUC9GVQncSL1uwOvaFWI5YxiSAOB1kdLikCEgOlAboWjfKhVQju7OQFPpfOWlfHkwrURGIMNpWlBvva+0kMeYpkTLf2H3Zylz+L52rjKcIB3riBY24g6BP21chJpTd3hhAOSAHpV3TUQRly5Ochp+rgcM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706557099; c=relaxed/simple; bh=w5P9x9ISQKoaKdUJID1acjCrJlXjZuuvGMi5g9y6b4Q=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=FxzRl2aw/H2C48f5IG7naZ/3edq++aiYTyQR3ipalDwuKkucag/Nse5izuNDZASNnGpLFAxesHgr5B94+e0pjdarj5aqIXFa4lS9YmNYKm16NGP4Dj90Pv/LUlnRiiucDGUp5sCNA9KG0jmlWnjejl3TTj+6sXEcpPd+eqTEOHQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6ddc1b30458so2909240b3a.1 for <gcc-patches@gcc.gnu.org>; Mon, 29 Jan 2024 11:38:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1706557096; x=1707161896; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2plxE+OIeJF16IeN9Be88edFZTHXwh9mVUubgP3cTto=; b=hgfEYVYNDMordoHkuSKCIn0rBnjfhh/AbO6WKimCeBxK4XxOoHvXRs27HI3UF0MhbV pJO3U4SoYLewXQhYV2PzIEioA+j1JhZhtCrGC6gKuD/opp8U5fWmt5zMDVWHqS/7Q0pK rIisz8rUG9NTGNPp2uK6waum3aLg+TotbA8YYiSDGrh56Wlkez5Z3aos706jxaphFAn8 YojCvfi5DTv5kgtPG2ichnoZaMxLvjulFvqeahtbh3vgOYl2oSCEdkSbcScH91I6agfS EGK6V4XrBlTZ+njJWBkX7TOXyGIc3N9LkA0tRj+LM2OhDoFHsI2QTS/XuAD8Vu/tsBUj +WnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706557096; x=1707161896; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2plxE+OIeJF16IeN9Be88edFZTHXwh9mVUubgP3cTto=; b=WQpeiqschOgf9EVMyOfTL0M0biOSfM57fKqxabIaJQnhJIXJ3bhZ1+n2waOsxvVTMw n2NyEGAotyP9V0XCYtEqgLMgSj9A45HMhWn82keJ80eAKZTwM4k6wvZhCdwokBpYHmPz kVwXRoTcxLTtw5TOQFKquyFK3woIL+EL0wjc/1KK4ECszjhSeZw5LrBtXrcIbhAwd97A rc39JDekvDVE/5BZ7wXa8b+PUprJ4A7jeRqIglKpZPyQBa3ZE3B9mR5qr/ruNO4D2QQH 7sSJlVFoXQTEd8v+Zn1DSU4qTRR2xdEK9Pnyrag0+0BAbgdSMkspLkGc0zM8hAsHa2JE J80w== X-Gm-Message-State: AOJu0YyyKF2roYtnugdwA00IvtEbkvAabW6j+kfcq1zQ4ZZ4Y4itLHE2 pa8t0MiERFwMwPbK3Oyg68r/EHXBrDjc6QyY9OihCuy1beFYRvY2XZmPouDSnL4S7Fapkk26nP/ D X-Received: by 2002:a05:6a00:d41:b0:6db:dbe7:1b5 with SMTP id n1-20020a056a000d4100b006dbdbe701b5mr4794800pfv.31.1706557096059; Mon, 29 Jan 2024 11:38:16 -0800 (PST) Received: from ewlu.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id v19-20020a056a00149300b006ddb0b0ff0dsm1520898pfu.34.2024.01.29.11.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 11:38:15 -0800 (PST) From: Edwin Lu <ewlu@rivosinc.com> To: gcc-patches@gcc.gnu.org Cc: gnu-toolchain@rivosinc.com, Edwin Lu <ewlu@rivosinc.com> Subject: [PATCH] RISC-V: Fix rvv intrinsic pragma tests dejagnu selector Date: Mon, 29 Jan 2024 11:38:12 -0800 Message-Id: <20240129193812.1143289-1-ewlu@rivosinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_SHORT, 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.30 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789454863591311323 X-GMAIL-MSGID: 1789454863591311323 |
Series |
RISC-V: Fix rvv intrinsic pragma tests dejagnu selector
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Edwin Lu
Jan. 29, 2024, 7:38 p.m. UTC
Adding rvv related flags (i.e. --param=riscv-autovec-preference) to
non vector targets bypassed the dejagnu skip test directive. Change the
target selector to skip if rvv is enabled
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/base/abi-1.c: change selector
* gcc.target/riscv/rvv/base/pragma-2.c: ditto
* gcc.target/riscv/rvv/base/pragma-3.c: ditto
Signed-off-by: Edwin Lu <ewlu@rivosinc.com>
---
gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Comments
On Mon, 29 Jan 2024 11:38:12 PST (-0800), ewlu@rivosinc.com wrote: > Adding rvv related flags (i.e. --param=riscv-autovec-preference) to > non vector targets bypassed the dejagnu skip test directive. Change the > target selector to skip if rvv is enabled > > gcc/testsuite/ChangeLog: > > * gcc.target/riscv/rvv/base/abi-1.c: change selector > * gcc.target/riscv/rvv/base/pragma-2.c: ditto > * gcc.target/riscv/rvv/base/pragma-3.c: ditto > > Signed-off-by: Edwin Lu <ewlu@rivosinc.com> > --- > gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c | 2 +- > gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c | 2 +- > gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c > index 2eef9e1e1a8..a072bdd47bf 100644 > --- a/gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c > +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c > @@ -1,5 +1,5 @@ > /* { dg-do compile { target { ! riscv_xtheadvector } } } */ > -/* { dg-skip-if "test rvv intrinsic" { *-*-* } { "*" } { "-march=rv*v*" } } */ > +/* { dg-skip-if "test rvv intrinsic" { ! riscv_v } } */ > > void foo0 () {__rvv_bool64_t t;} > void foo1 () {__rvv_bool32_t t;} > diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c b/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c > index fd2aa3066cd..fc1bb13c53d 100644 > --- a/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c > +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c > @@ -1,4 +1,4 @@ > /* { dg-do compile } */ > -/* { dg-skip-if "test rvv intrinsic" { *-*-* } { "*" } { "-march=rv*v*" } } */ > +/* { dg-skip-if "test rvv intrinsic" { ! riscv_v } } */ > > #pragma riscv intrinsic "vector" > diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c b/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c > index 96a0e051a29..45580bb2faa 100644 > --- a/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c > +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c > @@ -1,4 +1,4 @@ > /* { dg-do compile } */ > -/* { dg-skip-if "test rvv intrinsic" { *-*-* } { "*" } { "-march=rv*v*" } } */ > +/* { dg-skip-if "test rvv intrinsic" { ! riscv_v } */ > > #pragma riscv intrinsic "report-error" /* { dg-error {unknown '#pragma riscv intrinsic' option 'report-error'} } */ Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Committed On 1/30/2024 9:51 AM, Palmer Dabbelt wrote: > On Mon, 29 Jan 2024 11:38:12 PST (-0800), ewlu@rivosinc.com wrote: >> Adding rvv related flags (i.e. --param=riscv-autovec-preference) to >> non vector targets bypassed the dejagnu skip test directive. Change the >> target selector to skip if rvv is enabled >> >> gcc/testsuite/ChangeLog: >> >> * gcc.target/riscv/rvv/base/abi-1.c: change selector >> * gcc.target/riscv/rvv/base/pragma-2.c: ditto >> * gcc.target/riscv/rvv/base/pragma-3.c: ditto >> >> Signed-off-by: Edwin Lu <ewlu@rivosinc.com> >> --- >> gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c | 2 +- >> gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c | 2 +- >> gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c | 2 +- >> 3 files changed, 3 insertions(+), 3 deletions(-) >> >> diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c >> b/gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c >> index 2eef9e1e1a8..a072bdd47bf 100644 >> --- a/gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c >> +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c >> @@ -1,5 +1,5 @@ >> /* { dg-do compile { target { ! riscv_xtheadvector } } } */ >> -/* { dg-skip-if "test rvv intrinsic" { *-*-* } { "*" } { >> "-march=rv*v*" } } */ >> +/* { dg-skip-if "test rvv intrinsic" { ! riscv_v } } */ >> >> void foo0 () {__rvv_bool64_t t;} >> void foo1 () {__rvv_bool32_t t;} >> diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c >> b/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c >> index fd2aa3066cd..fc1bb13c53d 100644 >> --- a/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c >> +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c >> @@ -1,4 +1,4 @@ >> /* { dg-do compile } */ >> -/* { dg-skip-if "test rvv intrinsic" { *-*-* } { "*" } { >> "-march=rv*v*" } } */ >> +/* { dg-skip-if "test rvv intrinsic" { ! riscv_v } } */ >> >> #pragma riscv intrinsic "vector" >> diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c >> b/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c >> index 96a0e051a29..45580bb2faa 100644 >> --- a/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c >> +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c >> @@ -1,4 +1,4 @@ >> /* { dg-do compile } */ >> -/* { dg-skip-if "test rvv intrinsic" { *-*-* } { "*" } { >> "-march=rv*v*" } } */ >> +/* { dg-skip-if "test rvv intrinsic" { ! riscv_v } */ >> >> #pragma riscv intrinsic "report-error" /* { dg-error {unknown >> '#pragma riscv intrinsic' option 'report-error'} } */ > > Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c index 2eef9e1e1a8..a072bdd47bf 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/abi-1.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { ! riscv_xtheadvector } } } */ -/* { dg-skip-if "test rvv intrinsic" { *-*-* } { "*" } { "-march=rv*v*" } } */ +/* { dg-skip-if "test rvv intrinsic" { ! riscv_v } } */ void foo0 () {__rvv_bool64_t t;} void foo1 () {__rvv_bool32_t t;} diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c b/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c index fd2aa3066cd..fc1bb13c53d 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-2.c @@ -1,4 +1,4 @@ /* { dg-do compile } */ -/* { dg-skip-if "test rvv intrinsic" { *-*-* } { "*" } { "-march=rv*v*" } } */ +/* { dg-skip-if "test rvv intrinsic" { ! riscv_v } } */ #pragma riscv intrinsic "vector" diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c b/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c index 96a0e051a29..45580bb2faa 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/pragma-3.c @@ -1,4 +1,4 @@ /* { dg-do compile } */ -/* { dg-skip-if "test rvv intrinsic" { *-*-* } { "*" } { "-march=rv*v*" } } */ +/* { dg-skip-if "test rvv intrinsic" { ! riscv_v } */ #pragma riscv intrinsic "report-error" /* { dg-error {unknown '#pragma riscv intrinsic' option 'report-error'} } */