1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -fsplit-paths -fdump-tree-split-paths-details -w" } */ 3 powi_cost(long n)4powi_cost (long n) 5 { 6 unsigned char cache[256]; 7 unsigned long digit; 8 unsigned long val; 9 int result; 10 while (val >= 256) 11 { 12 if (val & 1) 13 { 14 result += powi_lookup_cost (digit, cache) + 3 + 1; 15 } 16 else 17 { 18 val >>= 1; 19 } 20 } 21 } 22 23 /* { dg-final { scan-tree-dump-times "Duplicating join block" 1 "split-paths" } } */ 24 25