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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20020103-1.c] - Blame information for rev 816

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

Line No. Rev Author Line
1 297 jeremybenn
/* On h8300 port, the following used to be broken with -mh or -ms.  */
2
 
3
extern void abort (void);
4
extern void exit (int);
5
 
6
unsigned long
7
foo (unsigned long a)
8
{
9
  return a ^ 0x0000ffff;
10
}
11
 
12
unsigned long
13
bar (unsigned long a)
14
{
15
  return a ^ 0xffff0000;
16
}
17
 
18
int
19
main ()
20
{
21
  if (foo (0) != 0x0000ffff)
22
    abort ();
23
 
24
  if (bar (0) != 0xffff0000)
25
    abort ();
26
 
27
  exit (0);
28
}

powered by: WebSVN 2.1.0

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