PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / pr15784-4.c
blob64ee719eb59d01d3d7b23a62db62d36984e197df
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 int a (int x) {
4 return ~x + 1; /* -x */
7 int b (int x) {
8 return -x -1; /* ~x */
11 /* { dg-final { scan-tree-dump "~x_..D.;" "optimized" } } */
12 /* { dg-final { scan-tree-dump "-x_..D.;" "optimized" } } */