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/] [unsorted/] [andmem.c] - Rev 399

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

void p1 (p) int *p;
{ *p &= ~0xff;
}
void p2 (p) int *p;
{ *p &= ~0xff00;
}
void p3 (p) int *p;
{ *p &= ~0xffff0000;
}
void p4 (p) int *p;
{ *p &= ~0xffff;
}
 
main ()
{
  int a;
 
  a = 0x12345678;  p1 (&a);  printf ("%x\n", a);
  a = 0x12345678;  p2 (&a);  printf ("%x\n", a);
  a = 0x12345678;  p3 (&a);  printf ("%x\n", a);
  a = 0x12345678;  p4 (&a);  printf ("%x\n", a);
}
 

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

powered by: WebSVN 2.1.0

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