public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5308] signbit-2: make test check for scalar or vector versions
@ 2021-11-16 15:40 Tamar Christina
0 siblings, 0 replies; only message in thread
From: Tamar Christina @ 2021-11-16 15:40 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9836e907c4f20ab7638a5125e63634afafc772e7
commit r12-5308-g9836e907c4f20ab7638a5125e63634afafc772e7
Author: Tamar Christina <tamar.christina@arm.com>
Date: Tue Nov 16 15:38:28 2021 +0000
signbit-2: make test check for scalar or vector versions
This updates the signbit-2 test to check for
the scalar optimization if the target does not
support vectorization.
gcc/testsuite/ChangeLog:
* gcc.dg/signbit-2.c: CHeck vect or scalar.
Diff:
---
gcc/testsuite/gcc.dg/signbit-2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/signbit-2.c b/gcc/testsuite/gcc.dg/signbit-2.c
index d8501e9b7a2..b609f67dc9f 100644
--- a/gcc/testsuite/gcc.dg/signbit-2.c
+++ b/gcc/testsuite/gcc.dg/signbit-2.c
@@ -19,5 +19,6 @@ void fun2(int32_t *x, int n)
x[i] = (-x[i]) >> 30;
}
-/* { dg-final { scan-tree-dump {\s+>\s+\{ 0, 0, 0(, 0)+ \}} optimized } } */
+/* { dg-final { scan-tree-dump {\s+>\s+\{ 0(, 0)+ \}} optimized { target vect_int } } } */
+/* { dg-final { scan-tree-dump {\s+>\s+0} optimized { target { ! vect_int } } } } */
/* { dg-final { scan-tree-dump-not {\s+>>\s+31} optimized } } */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-16 15:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 15:40 [gcc r12-5308] signbit-2: make test check for scalar or vector versions Tamar Christina
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).