* tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new block.
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-eqandnot-1.c
blob5ed65e8933b2d5c0431a10e9052b9f98858f9bb9
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-original" } */
3 int test1(int a)
5 return !(a & 4);
8 int test2(int b)
10 return (b & 4) == 0;
13 int test3(int c)
15 return ((c & 4) ^ 4) != 0;
18 int test4(int d)
20 return ((d ^ 4) & 4) != 0;
23 int test5(int e)
25 return (~e & 4) != 0;
28 /* { dg-final { scan-tree-dump-times "\\(a \& 4\\) == 0" 1 "original" } } */
29 /* { dg-final { scan-tree-dump-times "\\(b \& 4\\) == 0" 1 "original" } } */
30 /* { dg-final { scan-tree-dump-times "\\(c \& 4\\) == 0" 1 "original" } } */
31 /* { dg-final { scan-tree-dump-times "\\(d \& 4\\) == 0" 1 "original" } } */
32 /* { dg-final { scan-tree-dump-times "\\(e \& 4\\) == 0" 1 "original" } } */
33 /* { dg-final { cleanup-tree-dump "original" } } */