From patchwork Sun Nov 6 00:01:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kito Cheng X-Patchwork-Id: 16054 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1234195wru; Sat, 5 Nov 2022 17:02:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7mK9R8inkuiFc5rbIIlzVR/Lp5ivNExax9URHos1wwjLCghhoAVixH+aHnfZcm7L6cj2oj X-Received: by 2002:a17:907:75d3:b0:7ae:2278:ba07 with SMTP id jl19-20020a17090775d300b007ae2278ba07mr13135973ejc.354.1667692921297; Sat, 05 Nov 2022 17:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667692921; cv=none; d=google.com; s=arc-20160816; b=ADXnZfo/nN+hywBFsGPVajmvrBzCo31/C3koVoMSekkHntE3uCRCOaEcRvkWllvg7l WzOCewNW1IuX6ZXzfjPk7GFhhUbrDxjPlRvpEGgtLLo/oEt6hmy3il3Hj8YTbygYu9K6 d3YrPVDym5V63zfIMFAD0aDQ8gO3wLT2tgr93BSuNegUzhYgJreulc37rZ7K8qo0FQMD T+QzBL252dxYDM+kOVi5Z20wfWaYi1JL5As0UeMmRx6A1k5qQal10HTI4gC1aDh8CKo1 iJVfwD8GhBaz6XEDilnQQ128vWeKgicDLDaBUlwg1q+iSQaUKsCugMXDUtQupJJdJv0H 8aGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature:dmarc-filter:delivered-to; bh=3k141bjNqZVF82Drsxk2Oo2vaEkHI2quDseUmbydX2s=; b=huUENc3nvvz1pQYyARGYnCZg2cTIGrXjeEg88pixv3Upr9Twxd7ga018a4zZTRB5Aw unLG797ZWgPWtutyB24C7lMVMOJpOJ2TnVFqW539ka6NqAS1AEp2TYek4nk/YVpCtyDD R6i0IC2ZsYbatwNYB4rLYDi4vjJu5wpKmjAbDQ5AaThuPocaBtWjprMR8dt+L4Q49DdG l/Toqdmp5kYp2PMZdgV3yHeWviYTcujmtCSGSAEsMgugz2HUoI9TK2I0zWfZctGaiJ6B AGNjaLt8pAhbZsbwmILd3zKgpOjVGMdlgTsEzW60/3E+2X8HOsEdj0aMLRRvJXpT5mq2 hSdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=GDhYUJ6r; 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 gs39-20020a1709072d2700b0078badb3816dsi4331933ejc.952.2022.11.05.17.02.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Nov 2022 17:02:01 -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=@sifive.com header.s=google header.b=GDhYUJ6r; 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 4A9A838582A7 for ; Sun, 6 Nov 2022 00:01:54 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by sourceware.org (Postfix) with ESMTPS id E789C385840F for ; Sun, 6 Nov 2022 00:01:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E789C385840F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-qk1-x731.google.com with SMTP id f8so5399717qkg.3 for ; Sat, 05 Nov 2022 17:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3k141bjNqZVF82Drsxk2Oo2vaEkHI2quDseUmbydX2s=; b=GDhYUJ6rmJBmlUNMsy9hr2PqvdYG3mp4UkpaLhz+Ok5VQ3UQxLtbXyOvfbhwx3FBE1 WSq5UdJ2HnYppKvsl5+IaSAjJ4ligaViEXMzNAVJryoiq+ll8GZdBo5Vx8EV6JoxHWr5 0QFr94wPdb/zMvDJnijGJhWhgRwYiaeIFe5W2s52mFIzlZXoJjDYAbma4/gXVdLVYSKt hwN0gTZJmfmlQ/C2WppwCUANZcLxeTt/gcr7aJULvD1a656htPlo8EKE2r3HE9a2szQZ Xknl4paSOJZ0q2grRawQv7pL9GRedS/YgsH/r4nTv9EcX03vE5kTIDCOEv6CWAC3tBBw JlXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3k141bjNqZVF82Drsxk2Oo2vaEkHI2quDseUmbydX2s=; b=tIl3P7ZDr24k+4edZCLBb13O+C96TIMpXohheRDzagq7KhIdrGeoJeidZwe12L+wXB EMdSEXFN4s9hIyEd/gUhPQAH+1fsboXGiFM8GP3mPP+Cg3D83uF6rHptDFcYqzJFPJCX JpoFMI5kmIBjZFl6gkMsPLgH+EdXitKQcd2yuR0a9LiFvfjD9yG3CZc7pHGLP329ThVA GDeMpTOD3oojIN3+86ulXEKTZ+3B2RHfqsrqAlz2b29eAPSRy3W7WVM2fj5Fo08b4C7N 9Y9YpY5m9Xi7Upr1hDTzwazlijDbsQXFfxvb5PTrbhfs1t8BSFPAie1yYuXZ9dKdauZP Aoig== X-Gm-Message-State: ACrzQf00SNLNkfPH5Tagz6rxh7M4Y1JRIXSmOAgKZrECTwADMLm0YYSp c0MMRZSGbz3Z57HgZDn4DF6WFsmypKhfWp9Lomksoi79mDrfzhFwfkYN8iOEb2FkTHdrPinpJE5 ktukD+e4GzYIwnk2CQuc3GFD97FIXgv7X3CYp7KPwnhAwBDsRBU+mYO8S8sYOrYcy4ZeRFBhzH+ rs X-Received: by 2002:a37:63c4:0:b0:6fa:23a2:9fc6 with SMTP id x187-20020a3763c4000000b006fa23a29fc6mr26159150qkb.376.1667692866302; Sat, 05 Nov 2022 17:01:06 -0700 (PDT) Received: from localhost.localdomain ([50.239.106.26]) by smtp.gmail.com with ESMTPSA id bj17-20020a05620a191100b006ef1a8f1b81sm3039868qkb.5.2022.11.05.17.01.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Nov 2022 17:01:05 -0700 (PDT) From: Kito Cheng To: gcc-patches@gcc.gnu.org, kito.cheng@gmail.com, jim.wilson.gcc@gmail.com, palmer@dabbelt.com, andrew@sifive.com, juzhe.zhong@rivai.ai, jeffreyalaw@gmail.com, schwab@linux-m68k.org Subject: [PATCH] RISC-V: Fix RVV related testsuite Date: Sat, 5 Nov 2022 17:01:02 -0700 Message-Id: <20221106000102.18696-1-kito.cheng@sifive.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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: , Cc: Kito Cheng 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?1748702772553928436?= X-GMAIL-MSGID: =?utf-8?q?1748702772553928436?= Use wrapper of riscv_vector.h for RVV related testcases, more detail see https://gcc.gnu.org/pipermail/gcc-patches/2022-October/603140.html gcc/testsuite/ChangeLog: * gcc/testsuite/gcc.target/riscv/rvv/base/mov-1.c: Use double quotes to include riscv_vector.h rather than angle brackets. * gcc/testsuite/gcc.target/riscv/rvv/base/mov-10.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/mov-11.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/mov-12.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/mov-13.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/mov-2.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/mov-3.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/mov-4.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/mov-5.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/mov-6.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/mov-7.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/mov-8.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/mov-9.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/vread_csr.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/vsetvl-1.c: Ditto. * gcc/testsuite/gcc.target/riscv/rvv/base/vwrite_csr.c: Ditto. --- gcc/testsuite/gcc.target/riscv/rvv/base/mov-1.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/mov-10.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/mov-11.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/mov-12.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/mov-13.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/mov-2.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/mov-3.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/mov-4.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/mov-5.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/mov-6.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/mov-7.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/mov-8.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/mov-9.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/vread_csr.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/vsetvl-1.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/base/vwrite_csr.c | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-1.c index 6a235e308f9..cfc565b8922 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-1.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-1.c @@ -2,7 +2,7 @@ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */ /* { dg-final { check-function-bodies "**" "" } } */ -#include +#include "riscv_vector.h" /* ** mov1: diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-10.c b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-10.c index 10aa8297c30..419f19d0184 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-10.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-10.c @@ -2,7 +2,7 @@ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ /* { dg-final { check-function-bodies "**" "" } } */ -#include +#include "riscv_vector.h" /* ** mov1: diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-11.c b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-11.c index f8da5bb6b93..1bb159c7099 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-11.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-11.c @@ -2,7 +2,7 @@ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ /* { dg-final { check-function-bodies "**" "" } } */ -#include +#include "riscv_vector.h" /* ** mov1: diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-12.c b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-12.c index 5b8ce40b62d..7886886e2f5 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-12.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-12.c @@ -2,7 +2,7 @@ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ /* { dg-final { check-function-bodies "**" "" } } */ -#include +#include "riscv_vector.h" /* ** mov14: diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-13.c b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-13.c index 8c630f3bedb..9515e07eca1 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-13.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-13.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */ -#include +#include "riscv_vector.h" void mov1 (int8_t *in, int8_t *out) { diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-2.c b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-2.c index b9bdd515747..301607a2906 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-2.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-2.c @@ -2,7 +2,7 @@ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */ /* { dg-final { check-function-bodies "**" "" } } */ -#include +#include "riscv_vector.h" /* ** mov2: diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-3.c b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-3.c index a7a89db2735..ea69ab2dbd5 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-3.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-3.c @@ -2,7 +2,7 @@ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */ /* { dg-final { check-function-bodies "**" "" } } */ -#include +#include "riscv_vector.h" /* ** mov3: diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-4.c b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-4.c index e8cfb4b10b4..50bbd106692 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-4.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-4.c @@ -2,7 +2,7 @@ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */ /* { dg-final { check-function-bodies "**" "" } } */ -#include +#include "riscv_vector.h" /* ** mov4: diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-5.c b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-5.c index 5ca232ba867..680b4f42842 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-5.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-5.c @@ -2,7 +2,7 @@ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */ /* { dg-final { check-function-bodies "**" "" } } */ -#include +#include "riscv_vector.h" /* ** mov3: diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-6.c b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-6.c index 41fc73bb099..6348b38d9d7 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-6.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-6.c @@ -2,7 +2,7 @@ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */ /* { dg-final { check-function-bodies "**" "" } } */ -#include +#include "riscv_vector.h" /* ** mov4: diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-7.c b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-7.c index d4636e0adfb..c60920a8847 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-7.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-7.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */ -#include +#include "riscv_vector.h" /* This testcase is testing whether RISC-V define REGMODE_NATURAL_SIZE. */ void foo (int8_t *in, int8_t *out) diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-8.c b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-8.c index 9447b05899d..f2cb244473f 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-8.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-8.c @@ -2,7 +2,7 @@ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */ /* { dg-final { check-function-bodies "**" "" } } */ -#include +#include "riscv_vector.h" /* ** mov1: diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-9.c b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-9.c index 6d39e3c0f4d..902d65eb503 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/mov-9.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/mov-9.c @@ -2,7 +2,7 @@ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ /* { dg-final { check-function-bodies "**" "" } } */ -#include +#include "riscv_vector.h" /* Test tieable of RVV types with same LMUL. */ /* diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vread_csr.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vread_csr.c index fa643c58785..69c9c1fa5ca 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/vread_csr.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vread_csr.c @@ -2,7 +2,7 @@ /* { dg-additional-options "-O3" } */ /* { dg-skip-if "test intrinsic using rvv" { *-*-* } { "*" } { "-march=rv*v*zfh*" } } */ -#include +#include "riscv_vector.h" unsigned long vread_csr_vstart(void) { return vread_csr(RVV_VSTART); diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsetvl-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsetvl-1.c index 661f2c9170e..60d3b499719 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/vsetvl-1.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsetvl-1.c @@ -2,7 +2,7 @@ /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */ #include -#include +#include "riscv_vector.h" size_t test_vsetvl_e8mf8_imm0() { diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vwrite_csr.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vwrite_csr.c index e23da4b12ea..f9b4e8848df 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/vwrite_csr.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vwrite_csr.c @@ -2,7 +2,7 @@ /* { dg-additional-options "-O3" } */ /* { dg-skip-if "test intrinsic using rvv" { *-*-* } { "*" } { "-march=rv*v*zfh*" } } */ -#include +#include "riscv_vector.h" void vwrite_csr_vstart(unsigned long value) { vwrite_csr(RVV_VSTART, value);