Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.target / xstormy16 / sfr / 22_if1_sfrb_bitfield_3.c
blob96b441c04dbd71171c4743accc0a51edc195c83e
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.b3)
26 if (SFRB.b3)
27 return "Fail";
28 else
29 return "Success";
31 else
32 return "Fail";
35 int
36 main (void)
38 *pA = 0xcb;
39 *pB = 0x34;
40 return Do ()[0] == 'F';