aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/gcc.dg/pr49496.c
blob: 06563f3bcdf1cfad5547ed1412d1d1c952e84190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR debug/49496 */
/* { dg-do compile } */
/* { dg-options "-O3 -fcompare-debug" } */

unsigned short u[8], s1[8], s2[8];

void bar (unsigned short *);

void
foo (void)
{
  unsigned short e[8];
  int i;
  for (i = 0; i < 8; i++)
    {
      int tmp = s1[i] * s2[i];
      e[i] = (tmp & 0xffff0000) >> 16;
    }
  bar (e);
}