OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr21031.c] - Rev 816

Compare with Previous | Blame | View Log

/* PR tree-optimization/21031
 
   Make sure that a != 0 is propagated into the "if" statement.  */
 
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-forwprop1-details" } */
 
int
foo (int a)
{
  int b = a != 0;
  unsigned char c = b;
  if (c)
    return 1;
  else
    return 0;
}
 
/* { dg-final { scan-tree-dump-times "Replaced" 2 "forwprop1"} } */
/* { dg-final { cleanup-tree-dump "forwprop1" } } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.