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/] [20030708-1.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-dom2" } */
3
extern void abort (void);
4
struct rtx_def;
5
typedef struct rtx_def *rtx;
6
enum rtx_code
7
{
8
  CALL_INSN,
9
  EXPR_LIST,
10
  NOTE,
11
  LAST = 256
12
};
13
 
14
struct rtx_def
15
{
16
 
17
  enum rtx_code code:16;
18
};
19
 
20
int
21
nonlocal_mentioned_p (x)
22
     rtx x;
23
{
24
  if (x->code == CALL_INSN)
25
    {
26
      rtx const _rtx = ((x));
27
      if (_rtx->code != CALL_INSN
28
          && _rtx->code != NOTE
29
          && _rtx->code != EXPR_LIST)
30
        abort ();
31
    }
32
 
33
  blah (&x);
34
}
35
 
36
/* There should be no casts to a short unsigned int since the entire
37
   set of conditionals should optimize away.  */
38
/* { dg-final { scan-tree-dump-times "\\(short unsigned int\\)" 0 "dom2"} } */
39
 
40
/* There should be no IF conditionals.  */
41
/* { dg-final { scan-tree-dump-times "if " 0 "dom2"} } */
42
 
43
/* { dg-final { cleanup-tree-dump "dom2" } } */

powered by: WebSVN 2.1.0

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