From a310363e9028a084bf4148de7441f86deb879dbf Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Mon, 16 Oct 2017 13:26:20 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ 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 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) -- 2.30.2