diff mbox series

[v1] RISC-V: Rename the test macro for math autovec test

Message ID 20230922034644.843601-1-pan2.li@intel.com
State New
Headers show
Series [v1] RISC-V: Rename the test macro for math autovec test | expand

Commit Message

Li, Pan2 Sept. 22, 2023, 3:46 a.m. UTC
From: Pan Li <pan2.li@intel.com>

Rename TEST_CEIL to TEST_UNARY_CALL for the underlying function
autovec patch testing.

gcc/testsuite/ChangeLog:

	* gcc.target/riscv/rvv/autovec/test-math.h: Rename.
	* gcc.target/riscv/rvv/autovec/math-ceil-0.c: Ditto.
	* gcc.target/riscv/rvv/autovec/math-ceil-1.c: Ditto.
	* gcc.target/riscv/rvv/autovec/math-ceil-2.c: Ditto.
	* gcc.target/riscv/rvv/autovec/math-ceil-3.c: Ditto.
	* gcc.target/riscv/rvv/autovec/math-ceil-run-0.c: Ditto.
	* gcc.target/riscv/rvv/autovec/math-ceil-run-1.c: Ditto.
	* gcc.target/riscv/rvv/autovec/math-ceil-run-2.c: Ditto.

Signed-off-by: Pan Li <pan2.li@intel.com>
---
 gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-0.c     | 2 +-
 gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-1.c     | 2 +-
 gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-2.c     | 2 +-
 gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-3.c     | 2 +-
 gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-0.c | 2 +-
 gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-1.c | 2 +-
 gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-2.c | 2 +-
 gcc/testsuite/gcc.target/riscv/rvv/autovec/test-math.h       | 4 ++--
 8 files changed, 9 insertions(+), 9 deletions(-)

Comments

Li, Pan2 Sept. 22, 2023, 4:27 a.m. UTC | #1
Committed, thanks Juzhe.

Pan

From: juzhe.zhong <juzhe.zhong@rivai.ai>
Sent: Friday, September 22, 2023 12:18 PM
To: Li, Pan2 <pan2.li@intel.com>
Cc: gcc-patches@gcc.gnu.org; Li, Pan2 <pan2.li@intel.com>; Wang, Yanzhang <yanzhang.wang@intel.com>; kito.cheng@gmail.com
Subject: Re: [PATCH v1] RISC-V: Rename the test macro for math autovec test

ok
---- Replied Message ----
From
pan2.li@intel.com<pan2.li@intel.com><mailto:pan2.li@intel.com>
Date
09/22/2023 11:47
To
gcc-patches@gcc.gnu.org<gcc-patches@gcc.gnu.org><mailto:gcc-patches@gcc.gnu.org>
Cc
juzhe.zhong@rivai.ai<juzhe.zhong@rivai.ai><mailto:juzhe.zhong@rivai.ai>,
pan2.li@intel.com<pan2.li@intel.com><mailto:pan2.li@intel.com>,
yanzhang.wang@intel.com<yanzhang.wang@intel.com><mailto:yanzhang.wang@intel.com>,
kito.cheng@gmail.com<kito.cheng@gmail.com><mailto:kito.cheng@gmail.com>
Subject
[PATCH v1] RISC-V: Rename the test macro for math autovec test
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-0.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-0.c
index 88a2ac4b338..0959afd57d6 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-0.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-0.c
@@ -23,4 +23,4 @@ 
 **   fsrm\s+[atx][0-9]+
 **   ...
 */
-TEST_CEIL(_Float16, __builtin_ceilf16)
+TEST_UNARY_CALL (_Float16, __builtin_ceilf16)
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-1.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-1.c
index 0908ef269bd..142705b7eed 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-1.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-1.c
@@ -23,4 +23,4 @@ 
 **   fsrm\s+[atx][0-9]+
 **   ...
 */
-TEST_CEIL(float, __builtin_ceilf)
+TEST_UNARY_CALL (float, __builtin_ceilf)
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-2.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-2.c
index 65d4807edef..d232e36e1db 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-2.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-2.c
@@ -23,4 +23,4 @@ 
 **   fsrm\s+[atx][0-9]+
 **   ...
 */
-TEST_CEIL(double, __builtin_ceil)
+TEST_UNARY_CALL (double, __builtin_ceil)
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-3.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-3.c
index 416698a753e..82e4f89a82a 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-3.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-3.c
@@ -25,4 +25,4 @@ 
 **   fsrm\s+[atx][0-9]+
 **   ...
 */
-TEST_COND_CEIL(float, __builtin_ceilf)
+TEST_COND_UNARY_CALL (float, __builtin_ceilf)
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-0.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-0.c
index f1946e197cc..699eaf364e1 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-0.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-0.c
@@ -9,7 +9,7 @@  _Float16 in[ARRAY_SIZE];
 _Float16 out[ARRAY_SIZE];
 _Float16 ref[ARRAY_SIZE];
 
-TEST_CEIL (_Float16, __builtin_ceilf16)
+TEST_UNARY_CALL (_Float16, __builtin_ceilf16)
 TEST_ASSERT (_Float16)
 
 TEST_INIT (_Float16, 1.2, 2.0, 1)
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-1.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-1.c
index 202944ddd92..98a412979b5 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-1.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-1.c
@@ -9,7 +9,7 @@  float in[ARRAY_SIZE];
 float out[ARRAY_SIZE];
 float ref[ARRAY_SIZE];
 
-TEST_CEIL (float, __builtin_ceilf)
+TEST_UNARY_CALL (float, __builtin_ceilf)
 TEST_ASSERT (float)
 
 TEST_INIT (float, 1.2, 2.0, 1)
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-2.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-2.c
index f0ff9bca0af..22a4d8ab2b9 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-2.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/math-ceil-run-2.c
@@ -9,7 +9,7 @@  double in[ARRAY_SIZE];
 double out[ARRAY_SIZE];
 double ref[ARRAY_SIZE];
 
-TEST_CEIL (double, __builtin_ceil)
+TEST_UNARY_CALL (double, __builtin_ceil)
 TEST_ASSERT (double)
 
 TEST_INIT (double, 1.2, 2.0, 1)
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/test-math.h b/gcc/testsuite/gcc.target/riscv/rvv/autovec/test-math.h
index 6e913da37f4..d035835f370 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/test-math.h
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/test-math.h
@@ -1,11 +1,11 @@ 
-#define TEST_CEIL(TYPE, CALL) \
+#define TEST_UNARY_CALL(TYPE, CALL)                               \
   void test_##TYPE##_##CALL (TYPE *out, TYPE *in, unsigned count) \
   {                                                               \
     for (unsigned i = 0; i < count; i++)                          \
       out[i] = CALL (in[i]);                                      \
   }
 
-#define TEST_COND_CEIL(TYPE, CALL)                                           \
+#define TEST_COND_UNARY_CALL(TYPE, CALL)                                     \
   void test_##TYPE##_##CALL (TYPE *out, int *cond, TYPE *in, unsigned count) \
   {                                                                          \
     for (unsigned i = 0; i < count; i++)                                     \