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/] [20040514-2.c] - Blame information for rev 867

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-phiopt1" } */
3
int
4
foo2 (distance, i, j)
5
     int distance;
6
     int i, j;
7
{
8
 int t = distance;
9
 if (t <= 0)
10
   t = ((t) >= 0 ? (t)  : -(t));
11
 return t;
12
}
13
 
14
/* There should be one ABS_EXPR and no conditionals.  */
15
/* { dg-final { scan-tree-dump-times "ABS_EXPR " 1 "phiopt1"} } */
16
/* { dg-final { scan-tree-dump-times "if " 0 "phiopt1"} } */
17
/* { dg-final { cleanup-tree-dump "phiopt1" } } */
18
 

powered by: WebSVN 2.1.0

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