From: Kyrylo Tkachov Date: Tue, 9 Sep 2014 15:27:42 +0000 (+0000) Subject: [ARM][tests] Make input and output arrays 128-bit aligned in vectorisation tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab7f327830c663059fedaa36618e4d1c8d7d102d;p=gcc.git [ARM][tests] Make input and output arrays 128-bit aligned in vectorisation tests * gcc.target/arm/vect-lceilf_1.c: Make input and output arrays global and 16-byte aligned. * gcc.target/arm/vect-lfloorf_1.c: Likewise. * gcc.target/arm/vect-lroundf_1.c: Likewise. * gcc.target/arm/vect-rounding-btruncf.c: Likewise. * gcc.target/arm/vect-rounding-ceilf.c: Likewise. * gcc.target/arm/vect-rounding-floorf.c: Likewise. * gcc.target/arm/vect-rounding-roundf.c: Likewise. From-SVN: r215085 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 50510e13cc5..cb5d81a911a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2014-09-09 Kyrylo Tkachov + + * gcc.target/arm/vect-lceilf_1.c: Make input and output arrays global + and 16-byte aligned. + * gcc.target/arm/vect-lfloorf_1.c: Likewise. + * gcc.target/arm/vect-lroundf_1.c: Likewise. + * gcc.target/arm/vect-rounding-btruncf.c: Likewise. + * gcc.target/arm/vect-rounding-ceilf.c: Likewise. + * gcc.target/arm/vect-rounding-floorf.c: Likewise. + * gcc.target/arm/vect-rounding-roundf.c: Likewise. + 2014-09-09 Alan Lawrence * gcc.target/aarch64/vldN_dup_1.c: New test. diff --git a/gcc/testsuite/gcc.target/arm/vect-lceilf_1.c b/gcc/testsuite/gcc.target/arm/vect-lceilf_1.c index 75705aef5d6..5e98b74ee4c 100644 --- a/gcc/testsuite/gcc.target/arm/vect-lceilf_1.c +++ b/gcc/testsuite/gcc.target/arm/vect-lceilf_1.c @@ -5,8 +5,11 @@ #define N 32 +float __attribute__((aligned(16))) input[N]; +int __attribute__((aligned(16))) output[N]; + void -foo (int *output, float *input) +foo () { int i = 0; /* Vectorizable. */ diff --git a/gcc/testsuite/gcc.target/arm/vect-lfloorf_1.c b/gcc/testsuite/gcc.target/arm/vect-lfloorf_1.c index 298d54ed8e5..655f43720ce 100644 --- a/gcc/testsuite/gcc.target/arm/vect-lfloorf_1.c +++ b/gcc/testsuite/gcc.target/arm/vect-lfloorf_1.c @@ -5,8 +5,11 @@ #define N 32 +float __attribute__((aligned(16))) input[N]; +int __attribute__((aligned(16))) output[N]; + void -foo (int *output, float *input) +foo () { int i = 0; /* Vectorizable. */ diff --git a/gcc/testsuite/gcc.target/arm/vect-lroundf_1.c b/gcc/testsuite/gcc.target/arm/vect-lroundf_1.c index 64438214c05..92a722ed099 100644 --- a/gcc/testsuite/gcc.target/arm/vect-lroundf_1.c +++ b/gcc/testsuite/gcc.target/arm/vect-lroundf_1.c @@ -5,8 +5,11 @@ #define N 32 +float __attribute__((aligned(16))) input[N]; +int __attribute__((aligned(16))) output[N]; + void -foo (int *output, float *input) +foo () { int i = 0; /* Vectorizable. */ diff --git a/gcc/testsuite/gcc.target/arm/vect-rounding-btruncf.c b/gcc/testsuite/gcc.target/arm/vect-rounding-btruncf.c index ff033d437e6..29b16cc26ce 100644 --- a/gcc/testsuite/gcc.target/arm/vect-rounding-btruncf.c +++ b/gcc/testsuite/gcc.target/arm/vect-rounding-btruncf.c @@ -5,8 +5,11 @@ #define N 32 +float __attribute__((aligned(16))) input[N]; +float __attribute__((aligned(16))) output[N]; + void -foo (float *output, float *input) +foo () { int i = 0; /* Vectorizable. */ diff --git a/gcc/testsuite/gcc.target/arm/vect-rounding-ceilf.c b/gcc/testsuite/gcc.target/arm/vect-rounding-ceilf.c index b54f358f71b..36d6a42f1db 100644 --- a/gcc/testsuite/gcc.target/arm/vect-rounding-ceilf.c +++ b/gcc/testsuite/gcc.target/arm/vect-rounding-ceilf.c @@ -5,8 +5,11 @@ #define N 32 +float __attribute__((aligned(16))) input[N]; +float __attribute__((aligned(16))) output[N]; + void -foo (float *output, float *input) +foo () { int i = 0; /* Vectorizable. */ diff --git a/gcc/testsuite/gcc.target/arm/vect-rounding-floorf.c b/gcc/testsuite/gcc.target/arm/vect-rounding-floorf.c index 02e188d9654..82427007b05 100644 --- a/gcc/testsuite/gcc.target/arm/vect-rounding-floorf.c +++ b/gcc/testsuite/gcc.target/arm/vect-rounding-floorf.c @@ -5,8 +5,11 @@ #define N 32 +float __attribute__((aligned(16))) input[N]; +float __attribute__((aligned(16))) output[N]; + void -foo (float *output, float *input) +foo () { int i = 0; /* Vectorizable. */ diff --git a/gcc/testsuite/gcc.target/arm/vect-rounding-roundf.c b/gcc/testsuite/gcc.target/arm/vect-rounding-roundf.c index 85e205806a4..d550174e3e6 100644 --- a/gcc/testsuite/gcc.target/arm/vect-rounding-roundf.c +++ b/gcc/testsuite/gcc.target/arm/vect-rounding-roundf.c @@ -5,8 +5,11 @@ #define N 32 +float __attribute__((aligned(16))) input[N]; +float __attribute__((aligned(16))) output[N]; + void -foo (float *output, float *input) +foo () { int i = 0; /* Vectorizable. */