public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] test: Fix bb-slp-33.c for RVV
@ 2023-11-21 4:06 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-11-21 4:06 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:c027441e001a225a3bf614c39d6187ba95be56bb
commit c027441e001a225a3bf614c39d6187ba95be56bb
Author: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Date: Tue Nov 7 23:13:15 2023 +0800
test: Fix bb-slp-33.c for RVV
gcc/testsuite/ChangeLog:
* gcc.dg/vect/bb-slp-33.c: Rewrite the condition.
(cherry picked from commit ecb5ddd4f09f315f76b6a02cc68b56a9a6d2be94)
Diff:
---
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-21 4:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-21 4:06 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] test: Fix bb-slp-33.c for RVV Jeff Law
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).