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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20031216-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 jeremybenn
/* PR optimization/13313 */
2
/* Origin: Mike Lerwill <mike@ml-solutions.co.uk> */
3
 
4
extern void abort(void);
5
 
6
void DisplayNumber (unsigned long v)
7
{
8
  if (v != 0x9aL)
9
    abort();
10
}
11
 
12
unsigned long ReadNumber (void)
13
{
14
  return 0x009a0000L;
15
}
16
 
17
int main (void)
18
{
19
  unsigned long tmp;
20
  tmp = (ReadNumber() & 0x00ff0000L) >> 16;
21
  DisplayNumber (tmp);
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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