libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / phi-opt-same-2.c
blob94fb6a92ceac33c4bb35f8126c72a217d7b904a6
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-phiopt1 -fdump-tree-optimized" } */
3 /* PR tree-optimization/19832 */
5 int f_plus(int a, int b)
7 if (a != b) return a + b;
8 return a + a;
11 int g_plus(int a, int b)
13 if (b != a) return a + b;
14 return a + a;
17 /* All of the above function's if should have been optimized away even in phiopt1. */
18 /* { dg-final { scan-tree-dump-not "if " "phiopt1" } } */
19 /* { dg-final { scan-tree-dump-not "if " "optimized" } } */