Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.target / xstormy16 / sfr / 23_if0_sfrb_bitfield_7.c
blob2e4eea99095ca393086f02a1cb8647cd34bb1ddf
1 /* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */
2 /* { dg-final { scan-assembler "b\[np\] " } } */
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 #define SFRA (*((volatile BitField*)0x7f14))
17 unsigned char *pA = (unsigned char *) 0x7f14;
18 #define SFRB (*((volatile BitField*)0x7f10))
19 unsigned char *pB = (unsigned char *) 0x7f10;
21 char *
22 Do (void)
24 if (!SFRA.b7)
26 if (!SFRB.b7)
27 return "Fail";
28 else
29 return "Success";
31 else
32 return "Fail";
35 int
36 main (void)
38 *pA = 0x34;
39 *pB = 0xcb;
40 return Do ()[0] == 'F';