From: Wilco Dijkstra Date: Mon, 16 Oct 2017 13:26:20 +0000 (+0000) Subject: re PR target/82442 (vect/pr31699.c fails on arm) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a310363e9028a084bf4148de7441f86deb879dbf;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 44dff85495b..3464275a77b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-16 Wilco Dijkstra + + PR target/82442 + * gcc.dg/vect/pr31699.c: Fix testcase. + 2017-10-16 Tamar Christina * 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 7ec4dfe770a..b0b9971fcfc 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)