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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [arm/] [20090811-1.c] - Blame information for rev 313

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

Line No. Rev Author Line
1 313 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O3 -mcpu=cortex-a8 -mfpu=vfp3 -mfloat-abi=softfp" } */
3
 
4
typedef struct cb
5
{
6
  int cxc;
7
  short int pside;
8
}  *CBPTR;
9
typedef struct rwb
10
{
11
  int stx;
12
} RWB;
13
extern CBPTR *car;
14
extern RWB *rwAr;
15
extern int nts;
16
extern int nRws;
17
void f()
18
{
19
  CBPTR pptr ;
20
  int  k_lt, k_rt, k_span, rw, p, rt;
21
  int sa ;
22
  k_rt = 0;
23
  k_lt = 10000000;
24
  for (rw = 1; rw <= nRws; rw++)
25
    k_lt = rwAr[rw].stx;
26
  k_span = k_rt - k_lt;
27
  for (; p <= nts; p++)
28
    {
29
      pptr = car[p];
30
      if (pptr->pside == 3)
31
        pptr->cxc += (int)(((double)rt / (double) k_span) *((double) sa));
32
    }
33
}

powered by: WebSVN 2.1.0

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