aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/h8300-bit-insn-ice2.c
blob: 8b5f628759b41e051a914e5fef750b0f82136466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { 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;
}