* 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
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.
--- /dev/null
+/* { 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;
+}
--- /dev/null
+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;
+ }
+}
--- /dev/null
+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();
+ }
+}
+++ /dev/null
-/* { 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;
-}
+++ /dev/null
-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;
- }
-}
+++ /dev/null
-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();
- }
-}