aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/avr/dev-specific-rmw.c
blob: 0a8393e4966fefcba9749ad592ebc3251df103f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Verify that rmw instructions supported */
/* { dg-do assemble } */

int main()
{
  #ifdef __AVR_ISA_RMW__
    __asm("xch Z, r12");
    __asm("las Z, r12");
    __asm("lac Z, r12");
    __asm("lat Z, r12");
  #endif
  return 0;
}