OSDN Git Service

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