Debian Codegraph @

gcc/testsuite/gcc.target/xstormy16/bss_below100/11_clr_b100b_bit_0.c

raw
1 /* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */
2 /* { dg-final { scan-assembler "clr1 B100,#0" } } */
3
4 char acDummy[0xf0] __attribute__ ((__BELOW100__));
5 unsigned char B100 __attribute__ ((__BELOW100__));
6 unsigned char *p = &B100;
7
8 void
9 Do (void)
10 {
11 B100 &= ~0x01;
12 }
13
14 int
15 main (void)
16 {
17 *p = 0xcb;
18 Do ();
19 return (*p == 0xca) ? 0 : 1;
20 }