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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [990923-1.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
#define mask  0xffff0000L
2
#define value 0xabcd0000L
3
 
4
long
5
foo (long x)
6
{
7
  if ((x & mask) == value)
8
    return x & 0xffffL;
9
  return 1;
10
}
11
 
12
int
13
main (void)
14
{
15
  if (foo (value) != 0 || foo (0) != 1)
16
    abort ();
17
 
18
  exit (0);
19
}

powered by: WebSVN 2.1.0

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