From 33a9c60943da5208497a8617bc20e63520f3292b Mon Sep 17 00:00:00 2001 From: Prathamesh Kulkarni Date: Thu, 4 Aug 2016 20:37:51 +0000 Subject: [PATCH] pr71078-1.c: Remove double and long double test-cases. 2016-08-04 Prathamesh Kulkarni 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 | 13 +++++++++++++ gcc/testsuite/gcc.dg/tree-ssa/pr71078-1-double.c | 14 ++++++++++++++ .../gcc.dg/tree-ssa/pr71078-1-long-double.c | 14 ++++++++++++++ gcc/testsuite/gcc.dg/tree-ssa/pr71078-1.c | 16 ---------------- gcc/testsuite/gcc.dg/tree-ssa/pr71078-2-double.c | 14 ++++++++++++++ .../gcc.dg/tree-ssa/pr71078-2-long-double.c | 14 ++++++++++++++ gcc/testsuite/gcc.dg/tree-ssa/pr71078-2.c | 16 ---------------- gcc/testsuite/gcc.dg/tree-ssa/pr71078-3.c | 1 + 8 files changed, 70 insertions(+), 32 deletions(-) create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/pr71078-1-double.c create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/pr71078-1-long-double.c create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/pr71078-2-double.c create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/pr71078-2-long-double.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5237b6a1446..95e1e738756 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,16 @@ +2016-08-04 Prathamesh Kulkarni + + * 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 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 index 00000000000..3ef9efddd7e --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-1-double.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target large_double } */ +/* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */ + +#include + +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 index 00000000000..a5282465574 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-1-long-double.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target large_long_double } */ +/* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */ + +#include + +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" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71078-1.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-1.c index 6204c148ec3..10e3c3545fd 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr71078-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-1.c @@ -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 index 00000000000..4ef1e4d5f6d --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-2-double.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target large_double } */ +/* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */ + +#include + +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 index 00000000000..2eaf02deca8 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-2-long-double.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target large_long_double } */ +/* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */ + +#include + +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" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71078-2.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-2.c index 96485af3984..7ce61a1407a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr71078-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-2.c @@ -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" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71078-3.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-3.c index 8780b6afdfe..8871a690b2d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr71078-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr71078-3.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target large_double } */ /* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */ #include -- 2.30.2