1 /* { dg-do compile } */ 2 /* { dg-options "-O -fdump-tree-lim2-details" } */ 3 4 extern const int srcshift; 5 foo(int * srcdata,int * dstdata)6void foo (int *srcdata, int *dstdata) 7 { 8 int i; 9 10 for (i = 0; i < 256; i++) 11 dstdata[i] = srcdata[i] << srcshift; 12 } 13 14 /* { dg-final { scan-tree-dump "Moving statement" "lim2" } } */ 15