aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Edlinger <edlinger@gcc.gnu.org>2014-01-25 18:04:46 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2014-01-25 18:04:46 +0000
commit746cd71961feb948a9fb9ce819d2e3f6bc87a96f (patch)
tree7e2adb87f3d35ff1d99bcc29cba44683af707b46
parent54dce19517d6513668e8ba8fbc7768c375b0bf43 (diff)
downloadgcc-746cd71961feb948a9fb9ce819d2e3f6bc87a96f.zip
gcc-746cd71961feb948a9fb9ce819d2e3f6bc87a96f.tar.gz
gcc-746cd71961feb948a9fb9ce819d2e3f6bc87a96f.tar.bz2
vect-nop-move.c (main): Check for vect runtime.
2014-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de> * gcc.dg/vect/vect-nop-move.c (main): Check for vect runtime. From-SVN: r207075
-rw-r--r--gcc/testsuite/ChangeLog8
-rw-r--r--gcc/testsuite/gcc.dg/vect/vect-nop-move.c13
2 files changed, 17 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 8a44033..899211b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2014-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ * gcc.dg/vect/vect-nop-move.c (main): Check for vect runtime.
+
2014-01-24 Jeff Law <law@redhat.com>
PR tree-optimization/59919
@@ -55,8 +59,8 @@
* g++.dg/cilk-plus/cilk-plus.exp: Called the C/C++ common tests for
SIMD enabled function.
* g++.dg/cilk-plus/ef_test.C: New test.
- * c-c++-common/cilk-plus/ef_error3.c: Made certain messages C specific
- and added C++ ones.
+ * c-c++-common/cilk-plus/ef_error3.c: Made certain messages C specific
+ and added C++ ones.
* c-c++-common/cilk-plus/vlength_errors.c: Added new dg-error tags
to differenciate C error messages from C++ ones.
diff --git a/gcc/testsuite/gcc.dg/vect/vect-nop-move.c b/gcc/testsuite/gcc.dg/vect/vect-nop-move.c
index 6e82c34..f8c980a 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-nop-move.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-nop-move.c
@@ -2,6 +2,8 @@
/* { dg-require-effective-target vect_float } */
/* { dg-additional-options "-fdump-rtl-combine-details" } */
+#include "tree-vect.h"
+
extern void abort (void);
#define NOINLINE __attribute__((noinline))
@@ -48,8 +50,8 @@ foo32x2_le (float32x2_t x)
return bar (x[0]);
}
-int
-main()
+NOINLINE int
+test (void)
{
float32x4_t a = { 0.0f, 1.0f, 2.0f, 3.0f };
float32x2_t b = { 0.0f, 1.0f };
@@ -69,6 +71,13 @@ main()
return 0;
}
+int
+main ()
+{
+ check_vect ();
+ return test ();
+}
+
/* { dg-final { scan-rtl-dump "deleting noop move" "combine" { target aarch64*-*-* } } } */
/* { dg-final { cleanup-rtl-dump "combine" } } */
/* { dg-final { cleanup-tree-dump "vect" } } */