This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Committed][testsuite] Fix PR82442
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: nd <nd at arm dot com>
- Date: Mon, 16 Oct 2017 13:27:34 +0000
- Subject: [Committed][testsuite] Fix PR82442
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco dot Dijkstra at arm dot com;
- Nodisclaimer: True
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
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.
Committed as trivial.
ChangeLog:
2017-10-16 Wilco Dijkstra <wdijkstr@arm.com>
gcc/testsuite/
PR target/82442
* gcc.dg/vect/pr31699.c: Fix testcase.
--
diff --git a/gcc/testsuite/gcc.dg/vect/pr31699.c b/gcc/testsuite/gcc.dg/vect/pr31699.c
index 7ec4dfe770a8ce0f98c6ff46e6f301e88b63fc0e..b0b9971fcfc9f6f90ccef7bf1de10fd109c3d07b 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)