aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/vect/pr46049.c
blob: 90020681ef2e0f29abb770f76f6f6a5f025e48d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */

typedef __INT16_TYPE__ int16_t;
typedef __INT32_TYPE__ int32_t;

static inline int32_t bar (int16_t x, int16_t y)
{
  return x * y;
}

void foo (int16_t i, int16_t *p, int16_t x)
{
  while (i--)
    {
      *p = bar (*p, x) >> 15;
      p++;
      *p = bar (*p, x) >> 15;
      p++;
    }
}
/* { dg-final { cleanup-tree-dump "vect" } } */