From patchwork Thu Aug 4 13:16:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prathamesh Kulkarni X-Patchwork-Id: 73272 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1388828qga; Thu, 4 Aug 2016 06:16:48 -0700 (PDT) X-Received: by 10.66.148.233 with SMTP id tv9mr1315756pab.52.1470316608624; Thu, 04 Aug 2016 06:16:48 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id k84si14701178pfa.56.2016.08.04.06.16.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Aug 2016 06:16:48 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-433192-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-433192-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-433192-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=huyK/JfchdIAsBjqnKvRiVihsQxC8K2luFn+IAnlblT38t xWHOs5g03Ixu6K2kJvQy+t+D81AfjQgPYTlMYmMinBvKsZsoAHCGMiRAlGMeApl9 mAi1DZrm1RohMfc4nIUtLBQt70RI+syyBVHpzrOVvD6AmV6pu/zVFs7nNVUOw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=R+jYp7Myue1BqIbdz5jOqcYBe/4=; b=ygphq+OgeE57q4JstJnm eRub0G6Lcm3eqBhwJOuLlfjO6LNvm38nTV6Xgxh59jh5C5EXrWV2JdugUpR8+10g MfuPRn+QN82n19tttUZ/0t3HcZW+dwxMNS/NDmscL27q5rAP52XpEjBx1qtiLLVS ZJ5PeQWQoSxdevtlud//qR0= Received: (qmail 4717 invoked by alias); 4 Aug 2016 13:16:37 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 4702 invoked by uid 89); 4 Aug 2016 13:16:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=1020 X-HELO: mail-io0-f170.google.com Received: from mail-io0-f170.google.com (HELO mail-io0-f170.google.com) (209.85.223.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 04 Aug 2016 13:16:26 +0000 Received: by mail-io0-f170.google.com with SMTP id m101so270385969ioi.2 for ; Thu, 04 Aug 2016 06:16:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KQSxH189y3Q2F3cUmzPHdCbVrsqYJdf9zdTKsFDtO8I=; b=Oucp5b1IVInq9+8RSCfKYeFZj9zbxk/B5nJ46tUp12DUayxjILFVr1IiPTQCazxzYc QJfShmIl3FSgY6WI2EPnksS8Np2NfjpbTMTlU3imen2pyUpTNKuA0sJz7n5s/MwqTTwU n5TTT6s17JR/tIWIJP/vRCHaB0O+WKSwsAfN0gWWaSq1S6iCKrJqeObapaVNhNp6A61f 0xlmSEColN82Et9CuNdAYeM+U+GqQZJaeo3ncJcyBFveC+hTMPLkqIARQfZ7+eXnoO1b lNVFTjrxCsd0+nW+qu0KzAvaWd/YV05az4lVifoU20radKQ3r0neAKXW0rwgT6z+8NN5 sBFQ== X-Gm-Message-State: AEkoousC5BC2YlDiT5x5t2y32TcBl3iLXoRl/RJU3YHyE56hPSkWHz0CLIwa/Cz9z8ZmSl2U/CLD5wxxaVE0qfk2 X-Received: by 10.107.14.2 with SMTP id 2mr69935188ioo.181.1470316584541; Thu, 04 Aug 2016 06:16:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.208.18 with HTTP; Thu, 4 Aug 2016 06:16:23 -0700 (PDT) From: Prathamesh Kulkarni Date: Thu, 4 Aug 2016 18:46:23 +0530 Message-ID: Subject: split test cases pr71078-1.c and pr71078-2.c To: Richard Biener , Matthew Wahab , gcc Patches X-IsSubscribed: yes Hi, The attached patch splits each test-case into three, one for float, double and long-double. I verified that the long double tests are unsupported now for arm target. OK to commit ? Thanks, Prathamesh 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. 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 0000000..3ef9efd --- /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 0000000..a528246 --- /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 6204c14..10e3c35 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 0000000..4ef1e4d --- /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 0000000..2eaf02d --- /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 96485af..7ce61a1 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 8780b6a..8871a69 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