summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr34005.c
blob: 813f950b52072c401af485c610b78efd24b27766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR tree-optimization/34005 */
/* { dg-do compile } */

/* Testcase by Martin Michlmayr <tbm@cyrius.com> */

void XdmcpUnwrap (unsigned char *output, int k)
{
  int i;
  unsigned char blocks[2][8];
  k = (k == 0) ? 1 : 0;
  for (i = 0; i < 32; i++)
    output[i] = blocks[k][i];
}

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