aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Greenhalgh <james.greenhalgh@arm.com>2014-03-24 11:47:33 +0000
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>2014-03-24 11:47:33 +0000
commit71cfb0cfda085ce661aa9108d8d828e8d95a1b84 (patch)
tree8d30ccc4844078912b19815ac824db66660cf217
parent55af811bab8b557b20b99005aef08bee13ea0472 (diff)
downloadgcc-71cfb0cfda085ce661aa9108d8d828e8d95a1b84.zip
gcc-71cfb0cfda085ce661aa9108d8d828e8d95a1b84.tar.gz
gcc-71cfb0cfda085ce661aa9108d8d828e8d95a1b84.tar.bz2
[AArch64 testsuite] Make vect-abs.c C99 compliant
* gcc.target/aarch64/vect-abs.c (dg-options): Add -std=c99. (LONG_LONG): Use LLONG. (set_rvector_long): Explicitly return void. (set_vector_long): Likewise. (check_vector_long): Likewise. From-SVN: r208788
-rw-r--r--gcc/testsuite/ChangeLog8
-rw-r--r--gcc/testsuite/gcc.target/aarch64/vect-abs.c9
2 files changed, 14 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 0d3500a..99801b5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2014-03-24 James Greenhalgh <james.greenhalgh@arm.com>
+
+ * gcc.target/aarch64/vect-abs.c (dg-options): Add -std=c99.
+ (LONG_LONG): Use LLONG.
+ (set_rvector_long): Explicitly return void.
+ (set_vector_long): Likewise.
+ (check_vector_long): Likewise.
+
2014-03-24 Marek Polacek <polacek@redhat.com>
* c-c++-common/ubsan/div-by-zero-4.c: Don't include limits.h. Define
diff --git a/gcc/testsuite/gcc.target/aarch64/vect-abs.c b/gcc/testsuite/gcc.target/aarch64/vect-abs.c
index 954b106..9e0ed99 100644
--- a/gcc/testsuite/gcc.target/aarch64/vect-abs.c
+++ b/gcc/testsuite/gcc.target/aarch64/vect-abs.c
@@ -1,6 +1,6 @@
/* { dg-do run } */
-/* { dg-options "-O3" } */
+/* { dg-options "-O3 -std=c99" } */
#include "limits.h"
@@ -37,8 +37,9 @@ extern void abort (void);
SET_RVEC (8, SCHAR)
SET_RVEC (16, SHRT)
SET_RVEC (32, INT)
-SET_RVEC (64, LONG_LONG)
+SET_RVEC (64, LLONG)
+void
set_rvector_long (pRLONG a)
{
int i;
@@ -49,8 +50,9 @@ set_rvector_long (pRLONG a)
SET_VEC (8, SCHAR)
SET_VEC (16, SHRT)
SET_VEC (32, INT)
-SET_VEC (64, LONG_LONG)
+SET_VEC (64, LLONG)
+void
set_vector_long (long *__restrict__ a)
{
long i;
@@ -63,6 +65,7 @@ CHECK_VEC (16)
CHECK_VEC (32)
CHECK_VEC (64)
+void
check_vector_long (long *__restrict__ a, long *__restrict__ b)
{
long i;