* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-compare-1.c
blob8ab21c05b9d292cb061f145cc2ebc5174b31644e
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-original" } */
4 int test1(int a, int b)
6 return ~a == ~b;
9 int test2(int c, int d)
11 return -c == -d;
14 int test3(int e)
16 return -e == 5;
19 int test4(int f)
21 return ~f == 5;
24 int test5(int g, int h)
26 return ~g < ~h;
29 int test6(int i, int j)
31 return ~i >= ~j;
34 int test7(int k)
36 return ~k < 3;
39 int test8(int l)
41 return ~l >= 2;
44 /* { dg-final { scan-tree-dump-times "b == a" 1 "original" } } */
45 /* { dg-final { scan-tree-dump-times "c == d" 1 "original" } } */
46 /* { dg-final { scan-tree-dump-times "e == -5" 1 "original" } } */
47 /* { dg-final { scan-tree-dump-times "f == -6" 1 "original" } } */
48 /* { dg-final { scan-tree-dump-times "h < g" 1 "original" } } */
49 /* { dg-final { scan-tree-dump-times "j >= i" 1 "original" } } */
50 /* { dg-final { scan-tree-dump-times "k >= -3" 1 "original" } } */
51 /* { dg-final { scan-tree-dump-times "l < -2" 1 "original" } } */