summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/O3-pr46077.c
blob: 6546f6e3c008f974d44e9a3eafd8d34297a75242 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */

void intf_pcmPlayEffect(int *src, int *dst, int size) {
 int i;
 for (i = 0; i < size; i++)
  *dst++ = *src & 0x80 ? (*src++ & 0x7f) : -*src++;
}

/* { dg-final { cleanup-tree-dump "vect" } } */