libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / predcom-8.c
blobdcddf57314580c061792dc91bf0f0edb915bdf33
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-pcom-details-blocks" } */
4 int is_sorted(int *a, int n)
6 for (int i = 0; i < n - 1; i++)
7 if (a[i] > a[i + 1])
8 return 0;
9 return 1;
12 /* { dg-final { scan-tree-dump "Executing predictive commoning without unrolling" "pcom" } } */
13 /* { dg-final { scan-tree-dump-not "Invalid sum" "pcom" } } */