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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr39874.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 "-O2 -fdump-tree-optimized" }  */
3
 
4
extern void func();
5
 
6
void test1(char *signature)
7
{
8
  char ch = signature[0];
9
  if (ch == 15 || ch == 3)
10
  {
11
    if (ch == 15) func();
12
  }
13
}
14
 
15
 
16
void test2(char *signature)
17
{
18
  char ch = signature[0];
19
  if (ch == 15 || ch == 3)
20
  {
21
    if (ch > 14) func();
22
  }
23
}
24
 
25
/* { dg-final { scan-tree-dump-times " == 15" 2 "optimized" } } */
26
/* { dg-final { scan-tree-dump-not " == 3" "optimized" } } */
27
/* { dg-final { cleanup-tree-dump "optimized" } } */
28
 
29
 

powered by: WebSVN 2.1.0

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