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" } } */