Commit 6fc59523 by Richard Biener Committed by Richard Biener

re PR target/60076 (gcc.dg/vect/pr60012.c FAILs on Solaris/SPARC)

2014-02-05  Richard Biener  <rguenther@suse.de>

	PR testsuite/60076
	* gcc.dg/vect/pr60012.c: Require vect_extract_even_odd and
	avoid using unsigned long long.

From-SVN: r207509
parent bbf391db
2014-02-05 Richard Biener <rguenther@suse.de>
PR testsuite/60076
* gcc.dg/vect/pr60012.c: Require vect_extract_even_odd and
avoid using unsigned long long.
2014-02-05 Jakub Jelinek <jakub@redhat.com>
PR middle-end/57499
......
......@@ -8,14 +8,14 @@ typedef struct
} complex16_t;
void
libvector_AccSquareNorm_ref (unsigned long long *acc,
libvector_AccSquareNorm_ref (unsigned int *acc,
const complex16_t *x, unsigned len)
{
unsigned i;
for (i = 0; i < len; i++)
acc[i] += ((unsigned long long)((int)x[i].real * x[i].real))
+ ((unsigned long long)((int)x[i].imag * x[i].imag));
acc[i] += ((unsigned int)((int)x[i].real * x[i].real))
+ ((unsigned int)((int)x[i].imag * x[i].imag));
}
/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target { vect_extract_even_odd } } } } */
/* { dg-final { cleanup-tree-dump "vect" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment