pr41679.c: Move from gcc.target/arm.
authorJanis Johnson <janisjo@codesourcery.com>
Thu, 7 Jul 2011 17:48:03 +0000 (17:48 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Thu, 7 Jul 2011 17:48:03 +0000 (17:48 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr41679.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr46883.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr46934.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/pr41679.c [deleted file]
gcc/testsuite/gcc.target/arm/pr46883.c [deleted file]
gcc/testsuite/gcc.target/arm/pr46934.c [deleted file]

index c231a9d726e220033f5df40913e86ad1b10c3283..bd08d1aa38e969e10a96f10c354dd3b35cc366cc 100644 (file)
@@ -1,5 +1,9 @@
 2011-07-07  Janis Johnson  <janisjo@codesourcery.com>
 
+       * 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 (file)
index 0000000..aa10cb6
--- /dev/null
@@ -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 (file)
index 0000000..db8527d
--- /dev/null
@@ -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 (file)
index 0000000..a9c0b68
--- /dev/null
@@ -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 (file)
index aa10cb6..0000000
+++ /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 (file)
index db8527d..0000000
+++ /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 (file)
index a9c0b68..0000000
+++ /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();
-    }
-}