Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.target / xstormy16 / sfr / 12_if1_sfrb_bit_3.c
blob4a575cc9905634fd10c146854c25829b2f4434df
1 /* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */
2 /* { dg-final { scan-assembler "b\[np\] " } } */
4 #define SFRA (*((volatile unsigned char*)0x7f14))
5 unsigned char *pA = (unsigned char *) 0x7f14;
6 #define SFRB (*((volatile unsigned char*)0x7f10))
7 unsigned char *pB = (unsigned char *) 0x7f10;
9 char *
10 Do (void)
12 if (SFRA & 0x08)
14 if (SFRB & 0x08)
15 return "Fail";
16 else
17 return "Success";
19 else
20 return "Fail";
23 int
24 main (void)
26 *pA = 0xcb;
27 *pB = 0x34;
28 return Do ()[0] == 'F';