Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.target / xstormy16 / bss_below100 / 20_set_b100b_bitfield_0.c
blob240e472991f39e905a226a1d1a492dbd00e00997
1 /* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */
2 /* { dg-final { scan-assembler "set1 B100,#0" } } */
4 typedef struct
6 unsigned char b0:1;
7 unsigned char b1:1;
8 unsigned char b2:1;
9 unsigned char b3:1;
10 unsigned char b4:1;
11 unsigned char b5:1;
12 unsigned char b6:1;
13 unsigned char b7:1;
14 } BitField;
16 char acDummy[0xf0] __attribute__ ((__BELOW100__));
17 BitField B100 __attribute__ ((__BELOW100__));
18 unsigned char *p = (unsigned char *) &B100;
20 void
21 Do (void)
23 B100.b0 = 1;
26 int
27 main (void)
29 *p = 0x34;
30 Do ();
31 return (*p == 0x35) ? 0 : 1;