view gcc/testsuite/gcc.dg/pr35691-2.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

/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-forwprop1-details" } */

int foo(int z0, unsigned z1)
{
  int t0 = (z0 != 0);
  int t1 = (z1 != 0);
  int t2 = (t0 | t1);
  return t2;
}

/* { dg-final { scan-tree-dump "gimple_simplified to _\[0-9\]* = \\(int\\) z1_\[0-9\]*\\(D\\);" "forwprop1" } } */