summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-7.c
blob: f8e15f344860b6408ce34a6ce2278367c8e6811d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-lim1-details" } */

extern const int srcshift;

void foo (int *srcdata, int *dstdata)
{
  int i;

  for (i = 0; i < 256; i++)
    dstdata[i] = srcdata[i] << srcshift;
}

/* { dg-final { scan-tree-dump "Moving statement" "lim1" } } */
/* { dg-final { cleanup-tree-dump "lim1" } } */