libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / phi-opt-37.c
blobf1ff472aaff68e91d8b726a1f689386a61881df2
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-phiopt1" } */
4 unsigned abs_with_convert0 (int x)
6 unsigned int y = x;
8 if (x < 0)
9 y = -y;
11 return y;
13 unsigned abs_with_convert1 (unsigned x)
15 int y = x;
17 if (y < 0)
18 x = -x;
20 return x;
23 /* { dg-final { scan-tree-dump-times "ABSU_EXPR <" 2 "phiopt1" } } */
24 /* { dg-final { scan-tree-dump-not "if " "phiopt1" } } */