OSDN Git Service

Latest updates from FSF 4.7 branch
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / xstormy16 / bss_below100 / 17_if0_b100w_bit_3.c
1 /* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */
2
3 char acDummy[0xf0] __attribute__ ((__BELOW100__));
4 unsigned short B100A __attribute__ ((__BELOW100__));
5 unsigned short *pA = &B100A;
6 unsigned short B100B __attribute__ ((__BELOW100__));
7 unsigned short *pB = &B100B;
8
9 char *
10 Do (void)
11 {
12   if (!(B100A & 0x0008))
13     {
14       if (!(B100B & 0x0008))
15         return "Fail";
16       else
17         return "Success";
18     }
19   else
20     return "Fail";
21 }
22
23 int
24 main (void)
25 {
26   *pA = 0x1234;
27   *pB = 0xedcb;
28   return Do ()[0] == 'F';
29 }
30
31 /* { dg-final { scan-file "17_if0_b100w_bit_3.s" "b\[np\] B100A,#3," } } */
32 /* { dg-final { scan-file "17_if0_b100w_bit_3.s" "b\[np\] B100B,#3," } } */