Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/pr21031.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR tree-optimization/21031 Make sure that a != 0 is propagated into the "if" statement. */ /* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-forwprop1" } */ int foo (int a) { int b = a != 0; unsigned char c = b; if (c) return 1; else return 0; } /* { dg-final { scan-tree-dump "if \\(a_\[0-9\]+\\(D\\) != 0\\)" "forwprop1" } } */