* [PATCH V2] test: Fix bb-slp-33.c for RVV
@ 2023-11-07 15:13 Juzhe-Zhong
2023-11-08 6:58 ` Richard Biener
0 siblings, 1 reply; 3+ messages in thread
From: Juzhe-Zhong @ 2023-11-07 15:13 UTC (permalink / raw)
To: gcc-patches; +Cc: rguenther, Juzhe-Zhong
gcc/testsuite/ChangeLog:
* gcc.dg/vect/bb-slp-33.c: Rewrite the condition.
---
gcc/testsuite/gcc.dg/vect/bb-slp-33.c | 35 ++++++++++++++++++++-------
1 file changed, 26 insertions(+), 9 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-33.c b/gcc/testsuite/gcc.dg/vect/bb-slp-33.c
index bbb13ef798e..74af8dd27ae 100644
--- a/gcc/testsuite/gcc.dg/vect/bb-slp-33.c
+++ b/gcc/testsuite/gcc.dg/vect/bb-slp-33.c
@@ -32,16 +32,33 @@ int main()
a[4] = 7;
check_vect ();
test(a, b);
- if (a[0] != 1
- || a[1] != 2
- || a[2] != 3
- || a[3] != 4
- || a[4] != 7
- || a[5] != 0
- || a[6] != 0
- || a[7] != 0
- || a[8] != 0)
+ if (a[0] != 1)
abort ();
+ __asm__ volatile ("");
+ if (a[1] != 2)
+ abort ();
+ __asm__ volatile ("");
+ if (a[2] != 3)
+ abort ();
+ __asm__ volatile ("");
+ if (a[3] != 4)
+ abort ();
+ __asm__ volatile ("");
+ if (a[4] != 7)
+ abort ();
+ __asm__ volatile ("");
+ if (a[5] != 0)
+ abort ();
+ __asm__ volatile ("");
+ if (a[6] != 0)
+ abort ();
+ __asm__ volatile ("");
+ if (a[7] != 0)
+ abort ();
+ __asm__ volatile ("");
+ if (a[8] != 0)
+ abort ();
+ __asm__ volatile ("");
return 0;
}
--
2.36.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH V2] test: Fix bb-slp-33.c for RVV
2023-11-07 15:13 [PATCH V2] test: Fix bb-slp-33.c for RVV Juzhe-Zhong
@ 2023-11-08 6:58 ` Richard Biener
2023-11-08 7:21 ` Li, Pan2
0 siblings, 1 reply; 3+ messages in thread
From: Richard Biener @ 2023-11-08 6:58 UTC (permalink / raw)
To: Juzhe-Zhong; +Cc: gcc-patches
On Tue, 7 Nov 2023, Juzhe-Zhong wrote:
> gcc/testsuite/ChangeLog:
OK.
> * gcc.dg/vect/bb-slp-33.c: Rewrite the condition.
>
> ---
> gcc/testsuite/gcc.dg/vect/bb-slp-33.c | 35 ++++++++++++++++++++-------
> 1 file changed, 26 insertions(+), 9 deletions(-)
>
> diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-33.c b/gcc/testsuite/gcc.dg/vect/bb-slp-33.c
> index bbb13ef798e..74af8dd27ae 100644
> --- a/gcc/testsuite/gcc.dg/vect/bb-slp-33.c
> +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-33.c
> @@ -32,16 +32,33 @@ int main()
> a[4] = 7;
> check_vect ();
> test(a, b);
> - if (a[0] != 1
> - || a[1] != 2
> - || a[2] != 3
> - || a[3] != 4
> - || a[4] != 7
> - || a[5] != 0
> - || a[6] != 0
> - || a[7] != 0
> - || a[8] != 0)
> + if (a[0] != 1)
> abort ();
> + __asm__ volatile ("");
> + if (a[1] != 2)
> + abort ();
> + __asm__ volatile ("");
> + if (a[2] != 3)
> + abort ();
> + __asm__ volatile ("");
> + if (a[3] != 4)
> + abort ();
> + __asm__ volatile ("");
> + if (a[4] != 7)
> + abort ();
> + __asm__ volatile ("");
> + if (a[5] != 0)
> + abort ();
> + __asm__ volatile ("");
> + if (a[6] != 0)
> + abort ();
> + __asm__ volatile ("");
> + if (a[7] != 0)
> + abort ();
> + __asm__ volatile ("");
> + if (a[8] != 0)
> + abort ();
> + __asm__ volatile ("");
> return 0;
> }
>
>
--
Richard Biener <rguenther@suse.de>
SUSE Software Solutions Germany GmbH,
Frankenstrasse 146, 90461 Nuernberg, Germany;
GF: Ivo Totev, Andrew McDonald, Werner Knoblich; (HRB 36809, AG Nuernberg)
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH V2] test: Fix bb-slp-33.c for RVV
2023-11-08 6:58 ` Richard Biener
@ 2023-11-08 7:21 ` Li, Pan2
0 siblings, 0 replies; 3+ messages in thread
From: Li, Pan2 @ 2023-11-08 7:21 UTC (permalink / raw)
To: Richard Biener, Juzhe-Zhong; +Cc: gcc-patches
Committed, thanks Richard.
Pan
-----Original Message-----
From: Richard Biener <rguenther@suse.de>
Sent: Wednesday, November 8, 2023 2:58 PM
To: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH V2] test: Fix bb-slp-33.c for RVV
On Tue, 7 Nov 2023, Juzhe-Zhong wrote:
> gcc/testsuite/ChangeLog:
OK.
> * gcc.dg/vect/bb-slp-33.c: Rewrite the condition.
>
> ---
> gcc/testsuite/gcc.dg/vect/bb-slp-33.c | 35 ++++++++++++++++++++-------
> 1 file changed, 26 insertions(+), 9 deletions(-)
>
> diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-33.c b/gcc/testsuite/gcc.dg/vect/bb-slp-33.c
> index bbb13ef798e..74af8dd27ae 100644
> --- a/gcc/testsuite/gcc.dg/vect/bb-slp-33.c
> +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-33.c
> @@ -32,16 +32,33 @@ int main()
> a[4] = 7;
> check_vect ();
> test(a, b);
> - if (a[0] != 1
> - || a[1] != 2
> - || a[2] != 3
> - || a[3] != 4
> - || a[4] != 7
> - || a[5] != 0
> - || a[6] != 0
> - || a[7] != 0
> - || a[8] != 0)
> + if (a[0] != 1)
> abort ();
> + __asm__ volatile ("");
> + if (a[1] != 2)
> + abort ();
> + __asm__ volatile ("");
> + if (a[2] != 3)
> + abort ();
> + __asm__ volatile ("");
> + if (a[3] != 4)
> + abort ();
> + __asm__ volatile ("");
> + if (a[4] != 7)
> + abort ();
> + __asm__ volatile ("");
> + if (a[5] != 0)
> + abort ();
> + __asm__ volatile ("");
> + if (a[6] != 0)
> + abort ();
> + __asm__ volatile ("");
> + if (a[7] != 0)
> + abort ();
> + __asm__ volatile ("");
> + if (a[8] != 0)
> + abort ();
> + __asm__ volatile ("");
> return 0;
> }
>
>
--
Richard Biener <rguenther@suse.de>
SUSE Software Solutions Germany GmbH,
Frankenstrasse 146, 90461 Nuernberg, Germany;
GF: Ivo Totev, Andrew McDonald, Werner Knoblich; (HRB 36809, AG Nuernberg)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-08 7:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-07 15:13 [PATCH V2] test: Fix bb-slp-33.c for RVV Juzhe-Zhong
2023-11-08 6:58 ` Richard Biener
2023-11-08 7:21 ` Li, Pan2
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).