From: Janis Johnson Date: Thu, 7 Jul 2011 17:48:03 +0000 (+0000) Subject: pr41679.c: Move from gcc.target/arm. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c3fb7f30a14e0d68901c95fdc71a0366d36392b;p=gcc.git pr41679.c: Move from gcc.target/arm. * gcc.c-torture/compile/pr41679.c: Move from gcc.target/arm. * gcc.c-torture/compile/pr46883.c: Likewise. * gcc.c-torture/compile/pr46934.c: Likewise. From-SVN: r175995 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c231a9d726e..bd08d1aa38e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2011-07-07 Janis Johnson + * gcc.c-torture/compile/pr41679.c: Move from gcc.target/arm. + * gcc.c-torture/compile/pr46883.c: Likewise. + * gcc.c-torture/compile/pr46934.c: Likewise. + * gcc.target/arm/pr41679.c: Remove test directives in preparation for move to ../../gcc.c-torture/compile. * gcc.target/arm/pr46883.c: Likewise. diff --git a/gcc/testsuite/gcc.c-torture/compile/pr41679.c b/gcc/testsuite/gcc.c-torture/compile/pr41679.c new file mode 100644 index 00000000000..aa10cb612e3 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr41679.c @@ -0,0 +1,15 @@ +/* { dg-options "-g" } */ + +extern int a; +extern char b; +extern int foo (void); + +void +test (void) +{ + int c; + b = foo () ? '~' : '\0'; + while ((c = foo ())) + if (c == '7') + a = 0; +} diff --git a/gcc/testsuite/gcc.c-torture/compile/pr46883.c b/gcc/testsuite/gcc.c-torture/compile/pr46883.c new file mode 100644 index 00000000000..db8527d5452 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr46883.c @@ -0,0 +1,13 @@ +void bar (unsigned char *q, unsigned short *data16s, int len) +{ + int i; + + for (i = 0; i < len; i++) + { + q[2 * i] = + (((data16s[i] & 0xFF) << 8) | ((data16s[i] >> 8) & 0xFF)) & 0xFF; + q[2 * i + 1] = + ((unsigned short) + (((data16s[i] & 0xFF) << 8) | ((data16s[i] >> 8) & 0xFF))) >> 8; + } +} diff --git a/gcc/testsuite/gcc.c-torture/compile/pr46934.c b/gcc/testsuite/gcc.c-torture/compile/pr46934.c new file mode 100644 index 00000000000..a9c0b683315 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr46934.c @@ -0,0 +1,17 @@ +int caller (unsigned int reg_type) +{ + switch (reg_type) + { + case 0x80000000: + return (int)foo(); + + case 0x80000003: + return (int) bar(); + + case 0x80000001: + return (int) baz(); + + case 0x80000004: + return (int) fooz(); + } +} diff --git a/gcc/testsuite/gcc.target/arm/pr41679.c b/gcc/testsuite/gcc.target/arm/pr41679.c deleted file mode 100644 index aa10cb612e3..00000000000 --- a/gcc/testsuite/gcc.target/arm/pr41679.c +++ /dev/null @@ -1,15 +0,0 @@ -/* { dg-options "-g" } */ - -extern int a; -extern char b; -extern int foo (void); - -void -test (void) -{ - int c; - b = foo () ? '~' : '\0'; - while ((c = foo ())) - if (c == '7') - a = 0; -} diff --git a/gcc/testsuite/gcc.target/arm/pr46883.c b/gcc/testsuite/gcc.target/arm/pr46883.c deleted file mode 100644 index db8527d5452..00000000000 --- a/gcc/testsuite/gcc.target/arm/pr46883.c +++ /dev/null @@ -1,13 +0,0 @@ -void bar (unsigned char *q, unsigned short *data16s, int len) -{ - int i; - - for (i = 0; i < len; i++) - { - q[2 * i] = - (((data16s[i] & 0xFF) << 8) | ((data16s[i] >> 8) & 0xFF)) & 0xFF; - q[2 * i + 1] = - ((unsigned short) - (((data16s[i] & 0xFF) << 8) | ((data16s[i] >> 8) & 0xFF))) >> 8; - } -} diff --git a/gcc/testsuite/gcc.target/arm/pr46934.c b/gcc/testsuite/gcc.target/arm/pr46934.c deleted file mode 100644 index a9c0b683315..00000000000 --- a/gcc/testsuite/gcc.target/arm/pr46934.c +++ /dev/null @@ -1,17 +0,0 @@ -int caller (unsigned int reg_type) -{ - switch (reg_type) - { - case 0x80000000: - return (int)foo(); - - case 0x80000003: - return (int) bar(); - - case 0x80000001: - return (int) baz(); - - case 0x80000004: - return (int) fooz(); - } -}