view gcc/testsuite/gcc.dg/h8300-bit-insn-ice2.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { 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;
}