Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr52448.c
blob188799bf6faf799a9a58a8eb5eba0d2671465b4a
1 /* PR tree-optimization/52448 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -ftree-cselim -fdump-tree-cselim-details" } */
5 extern void perhaps_free_something (void);
7 void f1 (int *p, int a, int b, int cond, int cond2)
9 *p = a;
10 if (cond)
11 perhaps_free_something ();
12 if (cond2)
13 *p = b;
16 void f2 (int *p, int a, int b, int *cond, int *cond2)
18 int i;
19 *p = a;
20 for (i = 0; cond[i]; i++)
22 if (cond2[i])
23 *p = b;
24 perhaps_free_something ();
28 /* None of the above conditional stores might be made unconditional. */
29 /* { dg-final { scan-tree-dump-not "cstore" "cselim" } } */