2008-03-21 Janne Blomqvist <jb@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-eqxor-4.c
blobbdf31bc885014d8ff52faa83a8ee637172ffeabc
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-original" } */
4 int test1(int a)
6 return (a ^ 6) == 2;
9 int test2(int b, int c, int d)
11 return (b ^ d) == (c ^ d);
14 int test3(int e, int f)
16 return (e ^ 6) == (f ^ 4);
19 /* { dg-final { scan-tree-dump-times "a == 4" 1 "original" } } */
20 /* { dg-final { scan-tree-dump-times "b == c" 1 "original" } } */
21 /* { dg-final { scan-tree-dump-times "e \\^ 2" 1 "original" } } */
22 /* { dg-final { cleanup-tree-dump "original" } } */