Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/vrp-min-max-2.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp2" } */ /* { dg-require-effective-target int32plus } */ int Foo (int X) { if (X < 0) X = 0; if (X > 191) X = 191; return X << 23; } /* We expect this min/max pair to survive. */ /* { dg-final { scan-tree-dump-times "MIN_EXPR" 1 "vrp2" } } */ /* { dg-final { scan-tree-dump-times "MAX_EXPR" 1 "vrp2" } } */