OSDN Git Service

Latest updates from FSF 4.7 branch
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / xstormy16 / bss_below100 / 02_const_to_b100w.c
1 /* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */
2
3 char acDummy[0xf0] __attribute__ ((__BELOW100__));
4 unsigned short B100 __attribute__ ((__BELOW100__));
5 unsigned short *p = &B100;
6
7 void
8 Do (void)
9 {
10   B100 = 0x1234;
11 }
12
13 int
14 main (void)
15 {
16   *p = 0x9876;
17   Do ();
18   return (*p == 0x1234) ? 0 : 1;
19 }
20
21 /* { dg-final { scan-file "02_const_to_b100w.s" "mov.w B100,#4660" } } */
22