libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr31531-1.c
blobc27299151ebcf0061f59071c7014752bd908adc8
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 /* PR tree-optimization/31531 */
5 int f(int a)
7 int b = ~a;
8 return b<0;
12 int f1(unsigned a)
14 int b = ~a;
15 return b<0;
17 /* We should convert the above two functions from b <0 to ((int)a) >= 0. */
18 /* { dg-final { scan-tree-dump-times ">= 0" 2 "optimized"} } */
19 /* { dg-final { scan-tree-dump-times "~" 0 "optimized"} } */