Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.target / xstormy16 / sfr / 25_clr_sfrw_bitfield_0.c
blob5acd858fc2dc236980f5e4da34cc734dcccf6206
1 /* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */
2 /* { dg-final { scan-assembler "clr1 32532,#0" } } */
4 typedef struct
6 unsigned short b0:1;
7 unsigned short b1:1;
8 unsigned short b2:1;
9 unsigned short b3:1;
10 unsigned short b4:1;
11 unsigned short b5:1;
12 unsigned short b6:1;
13 unsigned short b7:1;
14 unsigned short b8:1;
15 unsigned short b9:1;
16 unsigned short b10:1;
17 unsigned short b11:1;
18 unsigned short b12:1;
19 unsigned short b13:1;
20 unsigned short b14:1;
21 unsigned short b15:1;
22 } BitField;
24 #define SFR (*((volatile BitField*)0x7f14))
25 unsigned short *p = (unsigned short *) 0x7f14;
27 void
28 Do (void)
30 SFR.b0 = 0;
33 int
34 main (void)
36 *p = 0xedcb;
37 Do ();
38 return (*p == 0xedca) ? 0 : 1;