]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
vect-nop-move.c (main): Check for vect runtime.
authorBernd Edlinger <edlinger@gcc.gnu.org>
Sat, 25 Jan 2014 18:04:46 +0000 (18:04 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Sat, 25 Jan 2014 18:04:46 +0000 (18:04 +0000)
2014-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * gcc.dg/vect/vect-nop-move.c (main): Check for vect runtime.

From-SVN: r207075

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-nop-move.c

index 8a44033f7de9df9372e2905d989e2a70f344b9fc..899211bc212130d6c6447ca7700ee0358ed0803f 100644 (file)
@@ -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.
 
index 6e82c34fd52be517b2e19f9554a9535d6426aa8b..f8c980a3bcdf44539279cc7c388aeb785df9ae77 100644 (file)
@@ -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" } } */