Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / vect / vect-subsat.c
blobd90d39b20b94dc5edcf8fad02a68f742d3fc7c18
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-stats -maltivec -fno-tree-vect-loop-version" { target powerpc*-*-* } } */
4 #define WSIZE 32768
5 #define SIZE 1024
7 foo (unsigned short *head)
9 unsigned m, n;
10 for (n = 0; n < SIZE; n++) {
11 m = head[n];
12 head[n] = (unsigned short)(m >= WSIZE ? m-WSIZE : 0);
16 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
17 /* { dg-final { cleanup-tree-dump "vect" } } */