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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [i386/] [20020616-1.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR opt/6722 */
2
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
3
/* { dg-options "-O2" } */
4
 
5
register int k asm("%ebx");
6
 
7
void __attribute__((noinline))
8
foo()
9
{
10
  k = 1;
11
}
12
 
13
void test()
14
{
15
  int i;
16
  for (i = 0; i < 10; i += k)
17
    {
18
      k = 0;
19
      foo();
20
    }
21
}
22
 
23
int main()
24
{
25
  int old = k;
26
  test();
27
  k = old;
28
  return 0;
29
}

powered by: WebSVN 2.1.0

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