OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr21031.c] - Blame information for rev 437

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR tree-optimization/21031
2
 
3
   Make sure that a != 0 is propagated into the "if" statement.  */
4
 
5
/* { dg-do compile } */
6
/* { dg-options "-O1 -fdump-tree-forwprop1-details" } */
7
 
8
int
9
foo (int a)
10
{
11
  int b = a != 0;
12
  unsigned char c = b;
13
  if (c)
14
    return 1;
15
  else
16
    return 0;
17
}
18
 
19
/* { dg-final { scan-tree-dump-times "Replaced" 2 "forwprop1"} } */
20
/* { dg-final { cleanup-tree-dump "forwprop1" } } */

powered by: WebSVN 2.1.0

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