summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/avr/torture/pr51374-1.c
blob: 9c98ea5f8e036dec26460e995ee8368846278fa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR rtl-optimization/51374 */
/* { dg-do compile } */

void vector_18 (void)
{
    extern char slot;
    unsigned char status = (*(volatile unsigned char*) 0x2B);
    unsigned char data   = (*(volatile unsigned char*) 0x2C);

    if (status & 0x10)
        slot = 0;
}

/* { dg-final { scan-assembler-not "\tsbic " } } */
/* { dg-final { scan-assembler-not "\tsbis " } } */