diff options
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100')
66 files changed, 0 insertions, 2238 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/01_const_to_b100b.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/01_const_to_b100b.c deleted file mode 100644 index 0ffc4bad8..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/01_const_to_b100b.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "mov.b B100,#18" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned char B100 __attribute__ ((__BELOW100__)) = 0x34; -unsigned char *p = &B100; - -void -Do (void) -{ - B100 = 0x12; -} - -int -main (void) -{ - Do (); - return (*p == 0x12) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/02_const_to_b100w.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/02_const_to_b100w.c deleted file mode 100644 index e2ad793c9..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/02_const_to_b100w.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "mov.w B100,#4660" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100 __attribute__ ((__BELOW100__)) = 0x9876; -unsigned short *p = &B100; - -void -Do (void) -{ - B100 = 0x1234; -} - -int -main (void) -{ - Do (); - return (*p == 0x1234) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/03_var_to_b100b.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/03_var_to_b100b.c deleted file mode 100644 index f78d18ab9..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/03_var_to_b100b.c +++ /dev/null @@ -1,21 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "mov.b B100,r" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned char B100 __attribute__ ((__BELOW100__)) = 0x34; -unsigned char *p = &B100; - -unsigned char yData = 0x12; - -void -Do (void) -{ - B100 = yData; -} - -int -main (void) -{ - Do (); - return (*p == 0x12) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/04_var_to_b100w.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/04_var_to_b100w.c deleted file mode 100644 index b9f3c55cd..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/04_var_to_b100w.c +++ /dev/null @@ -1,21 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "mov.w B100,r" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100 __attribute__ ((__BELOW100__)) = 0x9876; -unsigned short *p = &B100; - -unsigned short wData = 0x1234; - -void -Do (void) -{ - B100 = wData; -} - -int -main (void) -{ - Do (); - return (*p == 0x1234) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/05_b100b_to_var.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/05_b100b_to_var.c deleted file mode 100644 index b2a0bd04c..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/05_b100b_to_var.c +++ /dev/null @@ -1,21 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "mov.b r., *B100" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned char B100 __attribute__ ((__BELOW100__)) = 0x34; -unsigned char *p = &B100; - -unsigned char yData = 0x12; - -void -Do (void) -{ - yData = B100; -} - -int -main (void) -{ - Do (); - return (yData == 0x34) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/06_b100w_to_var.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/06_b100w_to_var.c deleted file mode 100644 index 50a6dd2a1..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/06_b100w_to_var.c +++ /dev/null @@ -1,21 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "mov.w r.,B100" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100 __attribute__ ((__BELOW100__)) = 0x3456; -unsigned short *p = &B100; - -unsigned short wData = 0x1234; - -void -Do (void) -{ - wData = B100; -} - -int -main (void) -{ - Do (); - return (wData == 0x3456) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/10_set_b100b_bit_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/10_set_b100b_bit_0.c deleted file mode 100644 index f81d26a3c..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/10_set_b100b_bit_0.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "set1 B100,#0" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned char B100 __attribute__ ((__BELOW100__)) = 0x34; -unsigned char *p = &B100; - -void -Do (void) -{ - B100 |= 0x01; -} - -int -main (void) -{ - Do (); - return (*p == 0x35) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/10_set_b100b_bit_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/10_set_b100b_bit_7.c deleted file mode 100644 index 2c519132e..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/10_set_b100b_bit_7.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "set1 B100,#7" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned char B100 __attribute__ ((__BELOW100__)) = 0x34; -unsigned char *p = &B100; - -void -Do (void) -{ - B100 |= 0x80; -} - -int -main (void) -{ - Do (); - return (*p == 0xb4) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/11_clr_b100b_bit_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/11_clr_b100b_bit_0.c deleted file mode 100644 index 500f9baf4..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/11_clr_b100b_bit_0.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "clr1 B100,#0" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned char B100 __attribute__ ((__BELOW100__)) = 0xcb; -unsigned char *p = &B100; - -void -Do (void) -{ - B100 &= ~0x01; -} - -int -main (void) -{ - Do (); - return (*p == 0xca) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/11_clr_b100b_bit_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/11_clr_b100b_bit_7.c deleted file mode 100644 index 7c71f6789..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/11_clr_b100b_bit_7.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "clr1 B100,#7" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned char B100 __attribute__ ((__BELOW100__)) = 0xcb; -unsigned char *p = &B100; - -void -Do (void) -{ - B100 &= ~0x80; -} - -int -main (void) -{ - Do (); - return (*p == 0x4b) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/12_if1_b100b_bit_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/12_if1_b100b_bit_0.c deleted file mode 100644 index 10dee7151..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/12_if1_b100b_bit_0.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#0," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#0," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned char B100A __attribute__ ((__BELOW100__)) = 0xcb; -unsigned char *pA = &B100A; -unsigned char B100B __attribute__ ((__BELOW100__)) = 0x34; -unsigned char *pB = &B100B; - -char * -Do (void) -{ - if (B100A & 0x01) - { - if (B100B & 0x01) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/12_if1_b100b_bit_3.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/12_if1_b100b_bit_3.c deleted file mode 100644 index b36612409..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/12_if1_b100b_bit_3.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#3," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#3," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned char B100A __attribute__ ((__BELOW100__)) = 0xcb; -unsigned char *pA = &B100A; -unsigned char B100B __attribute__ ((__BELOW100__)) = 0x34; -unsigned char *pB = &B100B; - -char * -Do (void) -{ - if (B100A & 0x08) - { - if (B100B & 0x08) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/12_if1_b100b_bit_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/12_if1_b100b_bit_7.c deleted file mode 100644 index 9906a663c..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/12_if1_b100b_bit_7.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#7," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#7," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned char B100A __attribute__ ((__BELOW100__)) = 0xcb; -unsigned char *pA = &B100A; -unsigned char B100B __attribute__ ((__BELOW100__)) = 0x34; -unsigned char *pB = &B100B; - -char * -Do (void) -{ - if (B100A & 0x80) - { - if (B100B & 0x80) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/13_if0_b100b_bit_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/13_if0_b100b_bit_0.c deleted file mode 100644 index 04cc92913..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/13_if0_b100b_bit_0.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#0," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#0," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned char B100A __attribute__ ((__BELOW100__)) = 0x34; -unsigned char *pA = &B100A; -unsigned char B100B __attribute__ ((__BELOW100__)) = 0xcb; -unsigned char *pB = &B100B; - -char * -Do (void) -{ - if (!(B100A & 0x01)) - { - if (!(B100B & 0x01)) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/13_if0_b100b_bit_3.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/13_if0_b100b_bit_3.c deleted file mode 100644 index cbda60c27..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/13_if0_b100b_bit_3.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#3," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#3," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned char B100A __attribute__ ((__BELOW100__)) = 0x34; -unsigned char *pA = &B100A; -unsigned char B100B __attribute__ ((__BELOW100__)) = 0xcb; -unsigned char *pB = &B100B; - -char * -Do (void) -{ - if (!(B100A & 0x08)) - { - if (!(B100B & 0x08)) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/13_if0_b100b_bit_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/13_if0_b100b_bit_7.c deleted file mode 100644 index 49143469d..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/13_if0_b100b_bit_7.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#7," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#7," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned char B100A __attribute__ ((__BELOW100__)) = 0x34; -unsigned char *pA = &B100A; -unsigned char B100B __attribute__ ((__BELOW100__)) = 0xcb; -unsigned char *pB = &B100B; - -char * -Do (void) -{ - if (!(B100A & 0x80)) - { - if (!(B100B & 0x80)) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/14_set_b100w_bit_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/14_set_b100w_bit_0.c deleted file mode 100644 index acce9e1d9..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/14_set_b100w_bit_0.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "set1 B100,#0" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100 __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *p = &B100; - -void -Do (void) -{ - B100 |= 0x0001; -} - -int -main (void) -{ - Do (); - return (*p == 0x1235) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/14_set_b100w_bit_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/14_set_b100w_bit_7.c deleted file mode 100644 index 35fe30f5d..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/14_set_b100w_bit_7.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "set1 B100,#7" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100 __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *p = &B100; - -void -Do (void) -{ - B100 |= 0x0080; -} - -int -main (void) -{ - Do (); - return (*p == 0x12b4) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/14_set_b100w_bit_8.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/14_set_b100w_bit_8.c deleted file mode 100644 index cc337fc04..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/14_set_b100w_bit_8.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "set1 B100\\+1,#0" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100 __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *p = &B100; - -void -Do (void) -{ - B100 |= 0x0100; -} - -int -main (void) -{ - Do (); - return (*p == 0x1334) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/14_set_b100w_bit_f.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/14_set_b100w_bit_f.c deleted file mode 100644 index 1fce8df53..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/14_set_b100w_bit_f.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "set1 B100\\+1,#7" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100 __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *p = &B100; - -void -Do (void) -{ - B100 |= 0x8000; -} - -int -main (void) -{ - Do (); - return (*p == 0x9234) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/15_clr_b100w_bit_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/15_clr_b100w_bit_0.c deleted file mode 100644 index 7c1c9b3e7..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/15_clr_b100w_bit_0.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "clr1 B100,#0" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100 __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *p = &B100; - -void -Do (void) -{ - B100 &= ~0x0001; -} - -int -main (void) -{ - Do (); - return (*p == 0xedca) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/15_clr_b100w_bit_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/15_clr_b100w_bit_7.c deleted file mode 100644 index fd707dc78..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/15_clr_b100w_bit_7.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "clr1 B100,#7" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100 __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *p = &B100; - -void -Do (void) -{ - B100 &= ~0x0080; -} - -int -main (void) -{ - Do (); - return (*p == 0xed4b) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/15_clr_b100w_bit_8.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/15_clr_b100w_bit_8.c deleted file mode 100644 index 7788de60b..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/15_clr_b100w_bit_8.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "clr1 B100\\+1,#0" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100 __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *p = &B100; - -void -Do (void) -{ - B100 &= ~0x0100; -} - -int -main (void) -{ - Do (); - return (*p == 0xeccb) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/15_clr_b100w_bit_f.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/15_clr_b100w_bit_f.c deleted file mode 100644 index 8046ee370..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/15_clr_b100w_bit_f.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "clr1 B100\\+1,#7" } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100 __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *p = &B100; - -void -Do (void) -{ - B100 &= ~0x8000; -} - -int -main (void) -{ - Do (); - return (*p == 0x6dcb) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_0.c deleted file mode 100644 index a5df453ae..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_0.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#0," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#0," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100A __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *pA = &B100A; -unsigned short B100B __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *pB = &B100B; - -char * -Do (void) -{ - if (B100A & 0x0001) - { - if (B100B & 0x0001) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_3.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_3.c deleted file mode 100644 index 8ff76e19d..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_3.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#3," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#3," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100A __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *pA = &B100A; -unsigned short B100B __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *pB = &B100B; - -char * -Do (void) -{ - if (B100A & 0x0008) - { - if (B100B & 0x0008) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_7.c deleted file mode 100644 index 8f542f31a..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_7.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#7," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#7," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100A __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *pA = &B100A; -unsigned short B100B __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *pB = &B100B; - -char * -Do (void) -{ - if (B100A & 0x0080) - { - if (B100B & 0x0080) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_8.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_8.c deleted file mode 100644 index 727104cb2..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_8.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A\\+1,#0," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B\\+1,#0," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100A __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *pA = &B100A; -unsigned short B100B __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *pB = &B100B; - -char * -Do (void) -{ - if (B100A & 0x0100) - { - if (B100B & 0x0100) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_b.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_b.c deleted file mode 100644 index 74fd66961..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_b.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A\\+1,#3," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B\\+1,#3," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100A __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *pA = &B100A; -unsigned short B100B __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *pB = &B100B; - -char * -Do (void) -{ - if (B100A & 0x0800) - { - if (B100B & 0x0800) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_f.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_f.c deleted file mode 100644 index 79b3839d8..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/16_if1_b100w_bit_f.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A\\+1,#7," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B\\+1,#7," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100A __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *pA = &B100A; -unsigned short B100B __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *pB = &B100B; - -char * -Do (void) -{ - if (B100A & 0x8000) - { - if (B100B & 0x8000) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_0.c deleted file mode 100644 index 94dc08884..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_0.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#0," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#0," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100A __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *pA = &B100A; -unsigned short B100B __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *pB = &B100B; - -char * -Do (void) -{ - if (!(B100A & 0x0001)) - { - if (!(B100B & 0x0001)) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_3.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_3.c deleted file mode 100644 index 7bc005dba..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_3.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#3," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#3," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100A __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *pA = &B100A; -unsigned short B100B __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *pB = &B100B; - -char * -Do (void) -{ - if (!(B100A & 0x0008)) - { - if (!(B100B & 0x0008)) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_7.c deleted file mode 100644 index 64fcdc251..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_7.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#7," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#7," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100A __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *pA = &B100A; -unsigned short B100B __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *pB = &B100B; - -char * -Do (void) -{ - if (!(B100A & 0x0080)) - { - if (!(B100B & 0x0080)) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_8.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_8.c deleted file mode 100644 index 6a118126e..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_8.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A\\+1,#0," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B\\+1,#0," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100A __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *pA = &B100A; -unsigned short B100B __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *pB = &B100B; - -char * -Do (void) -{ - if (!(B100A & 0x0100)) - { - if (!(B100B & 0x0100)) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_b.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_b.c deleted file mode 100644 index 59a2f3578..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_b.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A\\+1,#3," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B\\+1,#3," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100A __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *pA = &B100A; -unsigned short B100B __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *pB = &B100B; - -char * -Do (void) -{ - if (!(B100A & 0x0800)) - { - if (!(B100B & 0x0800)) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_f.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_f.c deleted file mode 100644 index 3b271902b..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/17_if0_b100w_bit_f.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A\\+1,#7," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B\\+1,#7," } } */ - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -unsigned short B100A __attribute__ ((__BELOW100__)) = 0x1234; -unsigned short *pA = &B100A; -unsigned short B100B __attribute__ ((__BELOW100__)) = 0xedcb; -unsigned short *pB = &B100B; - -char * -Do (void) -{ - if (!(B100A & 0x8000)) - { - if (!(B100B & 0x8000)) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/20_set_b100b_bitfield_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/20_set_b100b_bitfield_0.c deleted file mode 100644 index fef1f2ed4..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/20_set_b100b_bitfield_0.c +++ /dev/null @@ -1,33 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "set1 B100,#0" } } */ - -typedef struct -{ - unsigned char b0:1; - unsigned char b1:1; - unsigned char b2:1; - unsigned char b3:1; - unsigned char b4:1; - unsigned char b5:1; - unsigned char b6:1; - unsigned char b7:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100 __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0}; -unsigned char *p = (unsigned char *) &B100; - -void -Do (void) -{ - B100.b0 = 1; -} - -int -main (void) -{ - Do (); - return (*p == 0x35) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/20_set_b100b_bitfield_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/20_set_b100b_bitfield_7.c deleted file mode 100644 index b3900ca82..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/20_set_b100b_bitfield_7.c +++ /dev/null @@ -1,33 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "set1 B100,#7" } } */ - -typedef struct -{ - unsigned char b0:1; - unsigned char b1:1; - unsigned char b2:1; - unsigned char b3:1; - unsigned char b4:1; - unsigned char b5:1; - unsigned char b6:1; - unsigned char b7:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100 __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0}; -unsigned char *p = (unsigned char *) &B100; - -void -Do (void) -{ - B100.b7 = 1; -} - -int -main (void) -{ - Do (); - return (*p == 0xb4) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/21_clr_b100b_bitfield_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/21_clr_b100b_bitfield_0.c deleted file mode 100644 index 6106f3860..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/21_clr_b100b_bitfield_0.c +++ /dev/null @@ -1,33 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "clr1 B100,#0" } } */ - -typedef struct -{ - unsigned char b0:1; - unsigned char b1:1; - unsigned char b2:1; - unsigned char b3:1; - unsigned char b4:1; - unsigned char b5:1; - unsigned char b6:1; - unsigned char b7:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100 __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1}; -unsigned char *p = (unsigned char *) &B100; - -void -Do (void) -{ - B100.b0 = 0; -} - -int -main (void) -{ - Do (); - return (*p == 0xca) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/21_clr_b100b_bitfield_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/21_clr_b100b_bitfield_7.c deleted file mode 100644 index 414eec653..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/21_clr_b100b_bitfield_7.c +++ /dev/null @@ -1,33 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "clr1 B100,#7" } } */ - -typedef struct -{ - unsigned char b0:1; - unsigned char b1:1; - unsigned char b2:1; - unsigned char b3:1; - unsigned char b4:1; - unsigned char b5:1; - unsigned char b6:1; - unsigned char b7:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100 __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1}; -unsigned char *p = (unsigned char *) &B100; - -void -Do (void) -{ - B100.b7 = 0; -} - -int -main (void) -{ - Do (); - return (*p == 0x4b) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/22_if1_b100b_bitfield_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/22_if1_b100b_bitfield_0.c deleted file mode 100644 index b950c5184..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/22_if1_b100b_bitfield_0.c +++ /dev/null @@ -1,45 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#0," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#0," } } */ - -typedef struct -{ - unsigned char b0:1; - unsigned char b1:1; - unsigned char b2:1; - unsigned char b3:1; - unsigned char b4:1; - unsigned char b5:1; - unsigned char b6:1; - unsigned char b7:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1}; -unsigned char *pA = (unsigned char *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0}; -unsigned char *pB = (unsigned char *) &B100B; - -char * -Do (void) -{ - if (B100A.b0) - { - if (B100B.b0) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/22_if1_b100b_bitfield_3.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/22_if1_b100b_bitfield_3.c deleted file mode 100644 index b9da6a5e6..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/22_if1_b100b_bitfield_3.c +++ /dev/null @@ -1,45 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#3," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#3," } } */ - -typedef struct -{ - unsigned char b0:1; - unsigned char b1:1; - unsigned char b2:1; - unsigned char b3:1; - unsigned char b4:1; - unsigned char b5:1; - unsigned char b6:1; - unsigned char b7:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1}; -unsigned char *pA = (unsigned char *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0}; -unsigned char *pB = (unsigned char *) &B100B; - -char * -Do (void) -{ - if (B100A.b3) - { - if (B100B.b3) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/22_if1_b100b_bitfield_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/22_if1_b100b_bitfield_7.c deleted file mode 100644 index 667e892ea..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/22_if1_b100b_bitfield_7.c +++ /dev/null @@ -1,45 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#7," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#7," } } */ - -typedef struct -{ - unsigned char b0:1; - unsigned char b1:1; - unsigned char b2:1; - unsigned char b3:1; - unsigned char b4:1; - unsigned char b5:1; - unsigned char b6:1; - unsigned char b7:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1}; -unsigned char *pA = (unsigned char *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0}; -unsigned char *pB = (unsigned char *) &B100B; - -char * -Do (void) -{ - if (B100A.b7) - { - if (B100B.b7) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/23_if0_b100b_bitfield_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/23_if0_b100b_bitfield_0.c deleted file mode 100644 index ebb63f74c..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/23_if0_b100b_bitfield_0.c +++ /dev/null @@ -1,45 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#0," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#0," } } */ - -typedef struct -{ - unsigned char b0:1; - unsigned char b1:1; - unsigned char b2:1; - unsigned char b3:1; - unsigned char b4:1; - unsigned char b5:1; - unsigned char b6:1; - unsigned char b7:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0}; -unsigned char *pA = (unsigned char *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1}; -unsigned char *pB = (unsigned char *) &B100B; - -char * -Do (void) -{ - if (!B100A.b0) - { - if (!B100B.b0) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/23_if0_b100b_bitfield_3.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/23_if0_b100b_bitfield_3.c deleted file mode 100644 index a16768e40..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/23_if0_b100b_bitfield_3.c +++ /dev/null @@ -1,45 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#3," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#3," } } */ - -typedef struct -{ - unsigned char b0:1; - unsigned char b1:1; - unsigned char b2:1; - unsigned char b3:1; - unsigned char b4:1; - unsigned char b5:1; - unsigned char b6:1; - unsigned char b7:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0}; -unsigned char *pA = (unsigned char *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1}; -unsigned char *pB = (unsigned char *) &B100B; - -char * -Do (void) -{ - if (!B100A.b3) - { - if (!B100B.b3) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/23_if0_b100b_bitfield_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/23_if0_b100b_bitfield_7.c deleted file mode 100644 index 6f6d181e5..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/23_if0_b100b_bitfield_7.c +++ /dev/null @@ -1,45 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#7," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#7," } } */ - -typedef struct -{ - unsigned char b0:1; - unsigned char b1:1; - unsigned char b2:1; - unsigned char b3:1; - unsigned char b4:1; - unsigned char b5:1; - unsigned char b6:1; - unsigned char b7:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0}; -unsigned char *pA = (unsigned char *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1}; -unsigned char *pB = (unsigned char *) &B100B; - -char * -Do (void) -{ - if (!B100A.b7) - { - if (!B100B.b7) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/24_set_b100w_bitfield_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/24_set_b100w_bitfield_0.c deleted file mode 100644 index 7ac5028af..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/24_set_b100w_bitfield_0.c +++ /dev/null @@ -1,41 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "set1 B100,#0" } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100 __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *p = (unsigned short *) &B100; - -void -Do (void) -{ - B100.b0 = 1; -} - -int -main (void) -{ - Do (); - return (*p == 0x1235) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/24_set_b100w_bitfield_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/24_set_b100w_bitfield_7.c deleted file mode 100644 index 8ba664bed..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/24_set_b100w_bitfield_7.c +++ /dev/null @@ -1,41 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "set1 B100,#7" } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100 __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *p = (unsigned short *) &B100; - -void -Do (void) -{ - B100.b7 = 1; -} - -int -main (void) -{ - Do (); - return (*p == 0x12b4) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/24_set_b100w_bitfield_8.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/24_set_b100w_bitfield_8.c deleted file mode 100644 index 2a43500c1..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/24_set_b100w_bitfield_8.c +++ /dev/null @@ -1,41 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "set1 B100\\+1,#0" } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100 __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *p = (unsigned short *) &B100; - -void -Do (void) -{ - B100.b8 = 1; -} - -int -main (void) -{ - Do (); - return (*p == 0x1334) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/24_set_b100w_bitfield_f.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/24_set_b100w_bitfield_f.c deleted file mode 100644 index 9ae5ce48b..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/24_set_b100w_bitfield_f.c +++ /dev/null @@ -1,41 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "set1 B100\\+1,#7" } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100 __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *p = (unsigned short *) &B100; - -void -Do (void) -{ - B100.b15 = 1; -} - -int -main (void) -{ - Do (); - return (*p == 0x9234) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/25_clr_b100w_bitfield_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/25_clr_b100w_bitfield_0.c deleted file mode 100644 index 94fdf6969..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/25_clr_b100w_bitfield_0.c +++ /dev/null @@ -1,41 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "clr1 B100,#0" } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100 __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *p = (unsigned short *) &B100; - -void -Do (void) -{ - B100.b0 = 0; -} - -int -main (void) -{ - Do (); - return (*p == 0xedca) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/25_clr_b100w_bitfield_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/25_clr_b100w_bitfield_7.c deleted file mode 100644 index 25f11a603..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/25_clr_b100w_bitfield_7.c +++ /dev/null @@ -1,41 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "clr1 B100,#7" } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100 __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *p = (unsigned short *) &B100; - -void -Do (void) -{ - B100.b7 = 0; -} - -int -main (void) -{ - Do (); - return (*p == 0xed4b) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/25_clr_b100w_bitfield_8.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/25_clr_b100w_bitfield_8.c deleted file mode 100644 index d065be146..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/25_clr_b100w_bitfield_8.c +++ /dev/null @@ -1,41 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "clr1 B100\\+1,#0" } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100 __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *p = (unsigned short *) &B100; - -void -Do (void) -{ - B100.b8 = 0; -} - -int -main (void) -{ - Do (); - return (*p == 0xeccb) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/25_clr_b100w_bitfield_f.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/25_clr_b100w_bitfield_f.c deleted file mode 100644 index 4fbe71455..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/25_clr_b100w_bitfield_f.c +++ /dev/null @@ -1,41 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "clr1 B100\\+1,#7" } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100 __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *p = (unsigned short *) &B100; - -void -Do (void) -{ - B100.b15 = 0; -} - -int -main (void) -{ - Do (); - return (*p == 0x6dcb) ? 0 : 1; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_0.c deleted file mode 100644 index 054c0f51e..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_0.c +++ /dev/null @@ -1,53 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#0," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#0," } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *pA = (unsigned short *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *pB = (unsigned short *) &B100B; - -char * -Do (void) -{ - if (B100A.b0) - { - if (B100B.b0) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_3.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_3.c deleted file mode 100644 index 75ef36b34..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_3.c +++ /dev/null @@ -1,53 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#3," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#3," } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *pA = (unsigned short *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *pB = (unsigned short *) &B100B; - -char * -Do (void) -{ - if (B100A.b3) - { - if (B100B.b3) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_7.c deleted file mode 100644 index 45df6371c..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_7.c +++ /dev/null @@ -1,53 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#7," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#7," } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *pA = (unsigned short *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *pB = (unsigned short *) &B100B; - -char * -Do (void) -{ - if (B100A.b7) - { - if (B100B.b7) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_8.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_8.c deleted file mode 100644 index 187a47761..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_8.c +++ /dev/null @@ -1,53 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A\\+1,#0," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B\\+1,#0," } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *pA = (unsigned short *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *pB = (unsigned short *) &B100B; - -char * -Do (void) -{ - if (B100A.b8) - { - if (B100B.b8) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_b.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_b.c deleted file mode 100644 index 8cf4cfd53..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_b.c +++ /dev/null @@ -1,53 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A\\+1,#3," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B\\+1,#3," } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *pA = (unsigned short *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *pB = (unsigned short *) &B100B; - -char * -Do (void) -{ - if (B100A.b11) - { - if (B100B.b11) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_f.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_f.c deleted file mode 100644 index 235cef7d2..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/26_if1_b100w_bitfield_f.c +++ /dev/null @@ -1,53 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A\\+1,#7," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B\\+1,#7," } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *pA = (unsigned short *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *pB = (unsigned short *) &B100B; - -char * -Do (void) -{ - if (B100A.b15) - { - if (B100B.b15) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_0.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_0.c deleted file mode 100644 index bb80aca81..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_0.c +++ /dev/null @@ -1,53 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#0," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#0," } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *pA = (unsigned short *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *pB = (unsigned short *) &B100B; - -char * -Do (void) -{ - if (!B100A.b0) - { - if (!B100B.b0) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_3.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_3.c deleted file mode 100644 index 5be556426..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_3.c +++ /dev/null @@ -1,53 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#3," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#3," } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *pA = (unsigned short *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *pB = (unsigned short *) &B100B; - -char * -Do (void) -{ - if (!B100A.b3) - { - if (!B100B.b3) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_7.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_7.c deleted file mode 100644 index 0725b5542..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_7.c +++ /dev/null @@ -1,53 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A,#7," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B,#7," } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *pA = (unsigned short *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *pB = (unsigned short *) &B100B; - -char * -Do (void) -{ - if (!B100A.b7) - { - if (!B100B.b7) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_8.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_8.c deleted file mode 100644 index 2ad3642f8..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_8.c +++ /dev/null @@ -1,53 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A\\+1,#0," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B\\+1,#0," } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *pA = (unsigned short *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *pB = (unsigned short *) &B100B; - -char * -Do (void) -{ - if (!B100A.b8) - { - if (!B100B.b8) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_b.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_b.c deleted file mode 100644 index e9af02f8e..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_b.c +++ /dev/null @@ -1,53 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A\\+1,#3," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B\\+1,#3," } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *pA = (unsigned short *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *pB = (unsigned short *) &B100B; - -char * -Do (void) -{ - if (!B100A.b11) - { - if (!B100B.b11) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_f.c b/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_f.c deleted file mode 100644 index a13ec8c2c..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/xstormy16/data_below100/27_if0_b100w_bitfield_f.c +++ /dev/null @@ -1,53 +0,0 @@ -/* { dg-options { -nostartfiles below100.o -Tbelow100.ld -O2 } } */ -/* { dg-final { scan-assembler "b\[np\] B100A\\+1,#7," } } */ -/* { dg-final { scan-assembler "b\[np\] B100B\\+1,#7," } } */ - -typedef struct -{ - unsigned short b0:1; - unsigned short b1:1; - unsigned short b2:1; - unsigned short b3:1; - unsigned short b4:1; - unsigned short b5:1; - unsigned short b6:1; - unsigned short b7:1; - unsigned short b8:1; - unsigned short b9:1; - unsigned short b10:1; - unsigned short b11:1; - unsigned short b12:1; - unsigned short b13:1; - unsigned short b14:1; - unsigned short b15:1; -} BitField; - -char acDummy[0xf0] __attribute__ ((__BELOW100__)); -BitField B100A __attribute__ ((__BELOW100__)) = -{ -0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0}; -unsigned short *pA = (unsigned short *) &B100A; -BitField B100B __attribute__ ((__BELOW100__)) = -{ -1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1}; -unsigned short *pB = (unsigned short *) &B100B; - -char * -Do (void) -{ - if (!B100A.b15) - { - if (!B100B.b15) - return "Fail"; - else - return "Success"; - } - else - return "Fail"; -} - -int -main (void) -{ - return Do ()[0] == 'F'; -} |