Debian Codegraph @

gcc/testsuite/gcc.target/xstormy16/data_below100/14_set_b100w_bit_0.c

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