Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/cmp-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-gimple -fdump-tree-optimized" } */ int f(int a){ int b = -__INT_MAX__-1; a &= b; return a == b; } int g(int x){ x = x < 0 ? -x : x; return x == 0; } /* This should work even if int is not 32 bits, it is just not meaningful in that case. */ /* { dg-final { scan-tree-dump-not "-2147483648" "optimized"} } */ /* { dg-final { scan-tree-dump " < 0" "optimized"} } */ /* { dg-final { scan-tree-dump "ABS_EXPR" "gimple"} } */ /* { dg-final { scan-tree-dump-not "ABS_EXPR" "optimized"} } */