Move gcc.target/arm/pr67929_1.c test to execute.exp
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Mon, 2 Nov 2015 12:23:36 +0000 (12:23 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Mon, 2 Nov 2015 12:23:36 +0000 (12:23 +0000)
PR target/67929
* gcc.target/arm/pr67929_1.c: Move to...
* gcc.c-torture/execute/pr67929_1.c: ... Here.
Remove arm-specific directives.  Add noclone, noinline
attributes.

From-SVN: r229657

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr67929_1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/pr67929_1.c [deleted file]

index 4d91e50df2a29c955912d80341c64c75c96f0f6e..471b02d5d713faeb87dbb7bd90a41f86cce61481 100644 (file)
@@ -1,3 +1,11 @@
+2015-11-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       PR target/67929
+       * gcc.target/arm/pr67929_1.c: Move to...
+       * gcc.c-torture/execute/pr67929_1.c: ... Here.
+       Remove arm-specific directives.  Add noclone, noinline
+       attributes.
+
 2015-11-01  Jeff Law  <law@redhat.com>
 
        * gcc.dg/tree-ssa/ssa-thread-11.c: Update target selector.
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr67929_1.c b/gcc/testsuite/gcc.c-torture/execute/pr67929_1.c
new file mode 100644 (file)
index 0000000..ae6cfbf
--- /dev/null
@@ -0,0 +1,15 @@
+int __attribute__ ((noinline, noclone))
+foo (float a)
+{
+  return a * 4.9f;
+}
+
+
+int
+main (void)
+{
+  if (foo (10.0f) != 49)
+    __builtin_abort ();
+
+  return 0;
+}
diff --git a/gcc/testsuite/gcc.target/arm/pr67929_1.c b/gcc/testsuite/gcc.target/arm/pr67929_1.c
deleted file mode 100644 (file)
index 14943b6..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target arm_vfp3_ok } */
-/* { dg-options "-O2 -fno-inline" } */
-/* { dg-add-options arm_vfp3 } */
-/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
-
-int
-foo (float a)
-{
-  return a * 4.9f;
-}
-
-
-int
-main (void)
-{
-  if (foo (10.0f) != 49)
-    __builtin_abort ();
-
-  return 0;
-}
\ No newline at end of file