1 /* { dg-do compile } */
2 /* { dg-additional-options "--param vect-max-version-for-alias-checks=0" } */
11 libvector_AccSquareNorm_ref (unsigned long long *acc
,
12 const complex16_t
*x
, unsigned len
)
15 for (i
= 0; i
< len
; i
++)
16 acc
[i
] += ((unsigned long long)((int)x
[i
].real
* x
[i
].real
))
17 + ((unsigned long long)((int)x
[i
].imag
* x
[i
].imag
));
20 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
21 /* { dg-final { cleanup-tree-dump "vect" } } */