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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile }  */
2
/* { dg-options "-O2 -fdump-tree-optimized -w" }  */
3
 
4
 
5
 
6
 
7
void *arf ();
8
int
9
foo()
10
{
11
  void (*q)(void);
12
  int r = q;
13
 
14
  if (r != 0)
15
    return 1;
16
  else
17
    return 2;
18
}
19
 
20
/* The cast to an int type must remain after all optimizations are complete
21
   so that we do not try to canonicalize a function pointer for the
22
   comparison when no such canonicalization is wanted.  */
23
/* { dg-final { scan-tree-dump-times "r_. = \\(int\\) q" 1 "optimized" } } */
24
/* { dg-final { cleanup-tree-dump "optimized" } } */
25
 

powered by: WebSVN 2.1.0

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