diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2017-10-16 13:26:20 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco@gcc.gnu.org> | 2017-10-16 13:26:20 +0000 |
commit | a310363e9028a084bf4148de7441f86deb879dbf (patch) | |
tree | 02558d9a9a8c83a715d85e47b1f4ab3110037dc6 | |
parent | a0df14998e226b604a1b4799f602a02090dbdbac (diff) | |
download | gcc-a310363e9028a084bf4148de7441f86deb879dbf.zip gcc-a310363e9028a084bf4148de7441f86deb879dbf.tar.gz gcc-a310363e9028a084bf4148de7441f86deb879dbf.tar.bz2 |
re PR target/82442 (vect/pr31699.c fails on arm)
Fix PR82442
Recently the gcc.dg/vect/pr31699.c was modified to check for
vect_float effective target instead for vect_double. As a
result it now fails on armhf. Fix by avoiding double.
Tested on armhf, aarch64 and x64.
gcc/testsuite/
PR target/82442
* gcc.dg/vect/pr31699.c: Fix testcase.
From-SVN: r253786
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/pr31699.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 44dff85..3464275 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-16 Wilco Dijkstra <wdijkstr@arm.com> + + PR target/82442 + * gcc.dg/vect/pr31699.c: Fix testcase. + 2017-10-16 Tamar Christina <tamar.christina@arm.com> * gcc.target/aarch64/advsimd-intrinsics/vect-dot-qi.h: New. diff --git a/gcc/testsuite/gcc.dg/vect/pr31699.c b/gcc/testsuite/gcc.dg/vect/pr31699.c index 7ec4dfe..b0b9971 100644 --- a/gcc/testsuite/gcc.dg/vect/pr31699.c +++ b/gcc/testsuite/gcc.dg/vect/pr31699.c @@ -7,9 +7,9 @@ float x[256]; __attribute__ ((noinline)) -double *foo(void) +float *foo(void) { - double *z = malloc (sizeof(double) * 256); + float *z = malloc (sizeof(float) * 256); int i; for (i=0; i<256; ++i) |