aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr46049.c
blob: ffc72e5602b703c77333f4cf0dbff74bddc8250b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { 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++;
    }
}