pr71078-1.c: Remove double and long double test-cases.
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Thu, 4 Aug 2016 20:37:51 +0000 (20:37 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Thu, 4 Aug 2016 20:37:51 +0000 (20:37 +0000)
2016-08-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

testsuite/
* gcc.dg/tree-ssa/pr71078-1.c: Remove double and long double
test-cases.
* gcc.dg/tree-ssa/pr71078-1-double.c: New test-case.
* gcc.dg/tree-ssa/pr71078-1-long-double.c: Likewise.
* gcc.dg/tree-ssa/pr71078-2.c: Remove double and long double
test-cases.
* gcc.dg/tree-ssa/pr71078-2-double.c: New test-case.
* gcc.dg/tree-ssa/pr71078-2-long-double.c: Likewise.
* gcc.dg/tree-ssa/pr71078-3.c: Add require-effective-check for
large_double.

From-SVN: r239149

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr71078-1-double.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr71078-1-long-double.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr71078-1.c
gcc/testsuite/gcc.dg/tree-ssa/pr71078-2-double.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr71078-2-long-double.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr71078-2.c
gcc/testsuite/gcc.dg/tree-ssa/pr71078-3.c

index 5237b6a1446f6686e66f25d3c17ab69a7999f797..95e1e7387563f4659e284e89efb1d283be5d00d7 100644 (file)
@@ -1,3 +1,16 @@
+2016-08-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
+
+       * gcc.dg/tree-ssa/pr71078-1.c: Remove double and long double
+       test-cases.
+       * gcc.dg/tree-ssa/pr71078-1-double.c: New test-case.
+       * gcc.dg/tree-ssa/pr71078-1-long-double.c: Likewise.
+       * gcc.dg/tree-ssa/pr71078-2.c: Remove double and long double
+       test-cases.
+       * gcc.dg/tree-ssa/pr71078-2-double.c: New test-case.
+       * gcc.dg/tree-ssa/pr71078-2-long-double.c: Likewise.
+       * gcc.dg/tree-ssa/pr71078-3.c: Add require-effective-check for
+       large_double.
+
 2016-08-04  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/72800
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71078-1-double.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-1-double.c
new file mode 100644 (file)
index 0000000..3ef9efd
--- /dev/null
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target large_double } */
+/* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */
+
+#include <math.h>
+
+double f2(double x)
+{
+  double t1 = fabs (x);
+  double t2 = x / t1;
+  return t2;
+}
+
+/* { dg-final { scan-tree-dump "__builtin_copysign" "forwprop1" } } */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71078-1-long-double.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-1-long-double.c
new file mode 100644 (file)
index 0000000..a528246
--- /dev/null
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target large_long_double } */
+/* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */
+
+#include <math.h>
+
+long double f3 (long double x)
+{
+  long double t1 = fabsl (x);
+  long double t2 = x / t1;
+  return t2;
+}
+
+/* { dg-final { scan-tree-dump "__builtin_copysignl" "forwprop1" } } */
index 6204c148ec36de928eb3d14d4ac75e1fbb8c6290..10e3c3545fd15efd167d0777b3b695d66c00f54a 100644 (file)
@@ -10,20 +10,4 @@ float f1(float x)
   return t2;
 }
  
-double f2(double x)
-{
-  double t1 = fabs (x);
-  double t2 = x / t1;
-  return t2;
-}
-
-long double f3 (long double x)
-{
-  long double t1 = fabsl (x);
-  long double t2 = x / t1;
-  return t2;
-}
-
 /* { dg-final { scan-tree-dump "__builtin_copysignf" "forwprop1" } } */
-/* { dg-final { scan-tree-dump "__builtin_copysign" "forwprop1" } } */
-/* { dg-final { scan-tree-dump "__builtin_copysignl" "forwprop1" } } */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71078-2-double.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-2-double.c
new file mode 100644 (file)
index 0000000..4ef1e4d
--- /dev/null
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target large_double } */
+/* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */
+
+#include <math.h>
+
+double f2(double x)
+{
+  double t1 = fabs (x);
+  double t2 = t1 / x; 
+  return t2;
+}
+
+/* { dg-final { scan-tree-dump "__builtin_copysign" "forwprop1" } } */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71078-2-long-double.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-2-long-double.c
new file mode 100644 (file)
index 0000000..2eaf02d
--- /dev/null
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target large_long_double } */
+/* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */
+
+#include <math.h>
+
+long double f3 (long double x)
+{
+  long double t1 = fabsl (x);
+  long double t2 = t1 / x; 
+  return t2;
+}
+
+/* { dg-final { scan-tree-dump "__builtin_copysignl" "forwprop1" } } */
index 96485af3984ccbfa2306f98c14b0350593f145bf..7ce61a1407ab4a601d2bfdc754174cb95bb948e9 100644 (file)
@@ -10,20 +10,4 @@ float f1(float x)
   return t2;
 }
  
-double f2(double x)
-{
-  double t1 = fabs (x);
-  double t2 = t1 / x; 
-  return t2;
-}
-
-long double f3 (long double x)
-{
-  long double t1 = fabsl (x);
-  long double t2 = t1 / x; 
-  return t2;
-}
-
 /* { dg-final { scan-tree-dump "__builtin_copysignf" "forwprop1" } } */
-/* { dg-final { scan-tree-dump "__builtin_copysign" "forwprop1" } } */
-/* { dg-final { scan-tree-dump "__builtin_copysignl" "forwprop1" } } */
index 8780b6afdfe8bfda9c124feb3b46790339bdfd11..8871a690b2dac6c1a96e72cae768dee7e264882d 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target large_double } */
 /* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */
 
 #include <math.h>