Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr87009.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
rev | line source |
---|---|
131 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O -fdump-tree-original" } */ | |
3 /* { dg-final { scan-tree-dump-times "return s \\^ x;" 4 "original" } } */ | |
4 | |
5 int f1 (int x, int s) | |
6 { | |
7 return ~(~(x|s)|x)|~(~(x|s)|s); | |
8 } | |
9 | |
10 int f2 (int x, int s) | |
11 { | |
12 return ~(~(~x&s)&~(x&~s)); | |
13 } | |
14 | |
15 int f3 (int x, int s) | |
16 { | |
17 return ~((x|~s)&(~x|s)); | |
18 } | |
19 | |
20 int f4 (int x, int s) | |
21 { | |
22 return (x|~s)^(~x|s); | |
23 } |