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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [andmem.c] - Blame information for rev 519

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

Line No. Rev Author Line
1 297 jeremybenn
void p1 (p) int *p;
2
{ *p &= ~0xff;
3
}
4
void p2 (p) int *p;
5
{ *p &= ~0xff00;
6
}
7
void p3 (p) int *p;
8
{ *p &= ~0xffff0000;
9
}
10
void p4 (p) int *p;
11
{ *p &= ~0xffff;
12
}
13
 
14
main ()
15
{
16
  int a;
17
 
18
  a = 0x12345678;  p1 (&a);  printf ("%x\n", a);
19
  a = 0x12345678;  p2 (&a);  printf ("%x\n", a);
20
  a = 0x12345678;  p3 (&a);  printf ("%x\n", a);
21
  a = 0x12345678;  p4 (&a);  printf ("%x\n", a);
22
}

powered by: WebSVN 2.1.0

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