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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr50067-3.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-fpredictive-commoning" } */
3
 
4
extern void abort (void);
5
int a[6] = { 0, 0, 0, 0, 7, 0 };
6
static int *p = &a[4];
7
 
8
int
9
main ()
10
{
11
  int i;
12
  for (i = 0; i < 4; ++i)
13
    {
14
      a[i + 1] = a[i + 2] > i;
15
      *p &= ~1;
16
    }
17
  if (a[4] != 0)
18
    abort ();
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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