blob: 191ae3434e44f667773370b8c5cec264a2222ecf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize -msse2 -mno-sse3 -fdump-tree-vect-details" } */
void test (short* a, short* b)
{
int i;
for (i = 0; i < 10000; ++i)
a[i] = abs (b[i]);
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
/* { dg-final { cleanup-tree-dump "vect" } } */
|