2008-01-25 Douglas Gregor <doug.gregor@gmail.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-plusnot-1.c
blob81ddf46d6d0e66470f1a4ea29099b89d4bfb19ca
1 /* PR middle-end/30322 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-original" } */
5 int test1(int a)
7 return a + ~a;
10 int test2(int b)
12 return ~b + b;
15 unsigned int test3(unsigned int c)
17 return c + ~c;
20 unsigned int test4(unsigned int d)
22 return ~d + d;
25 /* { dg-final { scan-tree-dump-times "\\+ a" 0 "original" } } */
26 /* { dg-final { scan-tree-dump-times "\\+ b" 0 "original" } } */
27 /* { dg-final { scan-tree-dump-times "\\+ c" 0 "original" } } */
28 /* { dg-final { scan-tree-dump-times "\\+ d" 0 "original" } } */
29 /* { dg-final { cleanup-tree-dump "original" } } */