Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/addadd.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-optimized" } */ int f(unsigned x){ x += 123; int y = x; y -= 99; return y; } unsigned g(int x){ x += 123; unsigned y = x; y -= 99; return y; } int h(int x){ x += __INT_MAX__; x += 1; return x; } int i(int x){ x += __INT_MAX__; x += __INT_MAX__; return x; } /* { dg-final { scan-tree-dump-times " \\+ 24;" 2 "optimized" } } */ /* { dg-final { scan-tree-dump-times "\\(unsigned int\\)" 2 "optimized" } } */ /* { dg-final { scan-tree-dump-not "2147483647" "optimized" } } */