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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [900409-1.c] - Blame information for rev 308

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

Line No. Rev Author Line
1 297 jeremybenn
long f1(long a){return a&0xff000000L;}
2
long f2 (long a){return a&~0xff000000L;}
3
long f3(long a){return a&0x000000ffL;}
4
long f4(long a){return a&~0x000000ffL;}
5
long f5(long a){return a&0x0000ffffL;}
6
long f6(long a){return a&~0x0000ffffL;}
7
 
8
main ()
9
{
10
  long a = 0x89ABCDEF;
11
 
12
  if (f1(a)!=0x89000000L||
13
      f2(a)!=0x00ABCDEFL||
14
      f3(a)!=0x000000EFL||
15
      f4(a)!=0x89ABCD00L||
16
      f5(a)!=0x0000CDEFL||
17
      f6(a)!=0x89AB0000L)
18
    abort();
19
  exit(0);
20
}

powered by: WebSVN 2.1.0

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