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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr30978.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-optimized" } */
3
 
4
int foo(int a)
5
{
6
  unsigned int b = a > 0;
7
  char c = b;
8
  _Bool d = c == 0;
9
  int e = !d;
10
  return e;
11
}
12
 
13
/* { dg-final { scan-tree-dump-times " = " 2 "optimized" } } */
14
/* One comparison and one extension to int.  */
15
/* { dg-final { scan-tree-dump " = a_..D. > 0;" "optimized" } } */
16
/* { dg-final { scan-tree-dump "e_. = \\\(int\\\)" "optimized" } } */
17
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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