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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [macho-lo-sum.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
/* { dg-do compile { target powerpc*-*-darwin* } } */
2
/* { dg-options "-O2 -mpowerpc64 -mdynamic-no-pic" } */
3
 
4
long long knight_attacks[64];
5
long long InitializeAttackBoards(void);
6
 
7
int main()
8
{
9
        return InitializeAttackBoards();
10
}
11
 
12
long long InitializeAttackBoards(void)
13
{
14
 
15
  int i,j;
16
 
17
  for(i=0;i<64;i++) { }
18
 
19
  for(i=0;i<64;i++) {
20
    knight_attacks[i]=0;
21
    for(j=0;j<8;j++) {
22
      knight_attacks[i]= 0;
23
    }
24
  }
25
 
26
  return knight_attacks[0];
27
 
28
}
29
 

powered by: WebSVN 2.1.0

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