diff mbox series

RISC-V: testsuite: Add rv64 requirement for bug-9 and bug-14.

Message ID 1e713615-aba9-4f16-a38f-9b6658126415@gmail.com
State New
Headers show
Series RISC-V: testsuite: Add rv64 requirement for bug-9 and bug-14. | expand

Commit Message

Robin Dapp Nov. 20, 2023, 4:26 p.m. UTC
Hi,

this adds an effective target requirement to compile the tests.  Since
we disabled 64-bit indices on rv32 targets those tests should be
unsupported on rv32.

Regards
 Robin

gcc/testsuite/ChangeLog:

	* g++.target/riscv/rvv/base/bug-14.C: Add
	dg-require-effective-target rv64.
	* g++.target/riscv/rvv/base/bug-9.C: Ditto.
---
 gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C | 1 +
 gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C  | 1 +
 2 files changed, 2 insertions(+)

Comments

钟居哲 Nov. 20, 2023, 10:43 p.m. UTC | #1
/* { dg-do run { target { { {riscv_v} && {rv64} } } } } */

Seems you should remove rv64 here ? sicne I think it is redundant here.


juzhe.zhong@rivai.ai
 
From: Robin Dapp
Date: 2023-11-21 00:26
To: gcc-patches; palmer; Kito Cheng; jeffreyalaw; juzhe.zhong@rivai.ai
CC: rdapp.gcc
Subject: [PATCH] RISC-V: testsuite: Add rv64 requirement for bug-9 and bug-14.
Hi,
 
this adds an effective target requirement to compile the tests.  Since
we disabled 64-bit indices on rv32 targets those tests should be
unsupported on rv32.
 
Regards
Robin
 
gcc/testsuite/ChangeLog:
 
* g++.target/riscv/rvv/base/bug-14.C: Add
dg-require-effective-target rv64.
* g++.target/riscv/rvv/base/bug-9.C: Ditto.
---
gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C | 1 +
gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C  | 1 +
2 files changed, 2 insertions(+)
 
diff --git a/gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C b/gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C
index bf0c7bd3a36..0d35f2056c6 100644
--- a/gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C
+++ b/gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C
@@ -1,5 +1,6 @@
/* { dg-do run { target { { {riscv_v} && {rv64} } } } } */
/* { dg-options "-O2" } */
+/* { dg-require-effective-target rv64 } */
#include<cstdalign>
#include<cmath>
diff --git a/gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C b/gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C
index 8d17883bb57..4241f940d63 100644
--- a/gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C
+++ b/gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C
@@ -1,5 +1,6 @@
/* { dg-do run { target { { {riscv_v} && {rv64} } } } } */
/* { dg-options "-O2" } */
+/* { dg-require-effective-target rv64 } */
#include<cstdalign>
#include<cmath>
Robin Dapp Nov. 21, 2023, 1:36 p.m. UTC | #2
> /* { dg-do run { target { { {riscv_v} && {rv64} } } } } */
> 
> Seems you should remove rv64 here ? sicne I think it is redundant here.

Going to commit with that removed.

Regards
 Robin
diff mbox series

Patch

diff --git a/gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C b/gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C
index bf0c7bd3a36..0d35f2056c6 100644
--- a/gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C
+++ b/gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C
@@ -1,5 +1,6 @@ 
 /* { dg-do run { target { { {riscv_v} && {rv64} } } } } */
 /* { dg-options "-O2" } */
+/* { dg-require-effective-target rv64 } */
 
 #include<cstdalign>
 #include<cmath>
diff --git a/gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C b/gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C
index 8d17883bb57..4241f940d63 100644
--- a/gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C
+++ b/gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C
@@ -1,5 +1,6 @@ 
 /* { dg-do run { target { { {riscv_v} && {rv64} } } } } */
 /* { dg-options "-O2" } */
+/* { dg-require-effective-target rv64 } */
 
 #include<cstdalign>
 #include<cmath>