Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/andor-4.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -fno-ipa-icf -fdump-tree-optimized" } */ | |
3 | |
4 int f(int y, int x) | |
5 { | |
6 return x | ((~x) & y); | |
7 } | |
8 int f1(int y, int x) | |
9 { | |
10 return x | (y & (~x)); | |
11 } | |
12 int f2(int y, int x) | |
13 { | |
14 return ((~x) & y) | x; | |
15 } | |
16 int f3(int y, int x) | |
17 { | |
18 return (y & (~x)) | x; | |
19 } | |
20 | |
21 | |
22 /* { dg-final { scan-tree-dump-times "~x" 0 "optimized" } } */ | |
23 /* { dg-final { scan-tree-dump-times "x_..D. \\\| y_..D." 4 "optimized" } } */ |