Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr87009.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-original" } */ /* { dg-final { scan-tree-dump-times "return s \\^ x;" 4 "original" } } */ int f1 (int x, int s) { return ~(~(x|s)|x)|~(~(x|s)|s); } int f2 (int x, int s) { return ~(~(~x&s)&~(x&~s)); } int f3 (int x, int s) { return ~((x|~s)&(~x|s)); } int f4 (int x, int s) { return (x|~s)^(~x|s); }