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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20001101.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
extern void abort(void);
2
 
3
typedef struct
4
{
5
  unsigned int unchanging : 1;
6
} struc, *rtx;
7
 
8
rtx dummy ( int *a, rtx *b)
9
{
10
  *a = 1;
11
  *b = (rtx)7;
12
  return (rtx)1;
13
}
14
 
15
void bogus (insn, thread, delay_list)
16
     rtx insn;
17
     rtx thread;
18
     rtx delay_list;
19
{
20
  rtx new_thread;
21
  int must_annul;
22
 
23
  delay_list = dummy ( &must_annul, &new_thread);
24
  if (delay_list == 0 &&  new_thread )
25
    {
26
      thread = new_thread;
27
    }
28
  if (delay_list && must_annul)
29
    insn->unchanging = 1;
30
  if (new_thread != thread )
31
    abort();
32
}
33
 
34
int main()
35
{
36
  struc baz;
37
  bogus (&baz, (rtx)7, 0);
38
  exit(0);
39
  return 0;
40
}

powered by: WebSVN 2.1.0

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