From b1cac008e2629fc225a6ed6a6e748e6caec4dc26 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Wed, 28 Jun 2017 12:18:31 +0000 Subject: [PATCH] copy-sign-1.c, mult-abs-2.c: Restrict to c99_runtime. 2017-06-28 Christophe Lyon * gcc.dg/tree-ssa/copy-sign-1.c: Add c99_runtime effective target and options. * gcc.dg/tree-ssa/mult-abs-2.c: Likewise. From-SVN: r249733 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/tree-ssa/copy-sign-1.c | 4 +++- gcc/testsuite/gcc.dg/tree-ssa/mult-abs-2.c | 5 ++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2952d5cd5ef..687068b212c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-06-28 Christophe Lyon + + * gcc.dg/tree-ssa/copy-sign-1.c: Add c99_runtime effective target + and options. + * gcc.dg/tree-ssa/mult-abs-2.c: Likewise. + 2017-06-28 Marc Glisse * gcc.dg/tree-ssa/addadd.c: Remove test duplicated in addadd-2.c. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/copy-sign-1.c b/gcc/testsuite/gcc.dg/tree-ssa/copy-sign-1.c index 9ebdf509280..de3e7b242ce 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/copy-sign-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/copy-sign-1.c @@ -1,5 +1,7 @@ -/* { dg-options "-O2 -ffast-math -fdump-tree-gimple" } */ /* { dg-do compile } */ +/* { dg-require-effective-target c99_runtime } */ +/* { dg-options "-O2 -ffast-math -fdump-tree-gimple" } */ +/* { dg-add-options c99_runtime } */ float f(float x) { return (x > 0.f ? -1.f : 1.f); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/mult-abs-2.c b/gcc/testsuite/gcc.dg/tree-ssa/mult-abs-2.c index b6a1a790eee..d74ba2fe630 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/mult-abs-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/mult-abs-2.c @@ -1,5 +1,8 @@ -/* { dg-options "-O2 -ffast-math -fdump-tree-gimple" } */ /* { dg-do compile } */ +/* { dg-require-effective-target c99_runtime } */ +/* { dg-options "-O2 -ffast-math -fdump-tree-gimple" } */ +/* { dg-add-options c99_runtime } */ + float f(float x) { return x * (x > 0.f ? -1.f : 1.f); -- 2.30.2