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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [h8300-bit-insn-ice2.c] - Rev 774

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

/* { dg-skip-if "" { "h8300*-*-*" } "*" "-msx*" }  */
/* { dg-options "-O2" } */
/* ICE for bit instruction generation using 16-bit const */
 
#define MSTPCRA (*(volatile unsigned char*)0xFFFFC9)
#define MSTPCRA2 (*(volatile unsigned char*)0xFFFDC8)
 
int
main (void)
{
  MSTPCRA = MSTPCRA2 & ~0x01;
  MSTPCRA = MSTPCRA2 ^ ~0xFE;
  MSTPCRA = MSTPCRA2 | ~0xFE;
  return 0;
}
 

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.