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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr47372-2.c] - Blame information for rev 706

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-require-effective-target fpic } */
3
/* { dg-options "-O2 -fPIC -g" } */
4
 
5
typedef unsigned short ush;
6
typedef ush Pos;
7
extern ush prev[];
8
void fill_window( unsigned more, unsigned m)
9
{
10
    unsigned n;
11
    for (n = 0; n < (unsigned)(1<<15); n++) {
12
      (prev+0x8000)[n] = (Pos)(m >= 0x8000 ? m-0x8000 : 0);
13
    }
14
    for (n = 0; n < 0x8000; n++) {
15
      prev[n] = (Pos)(m >= 0x8000 ? m-0x8000 : 0);
16
    }
17
}

powered by: WebSVN 2.1.0

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