From patchwork Fri Sep 5 12:05:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kaz Kojima X-Patchwork-Id: 386327 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9D2FA14001A for ; Fri, 5 Sep 2014 22:06:19 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=aD4sFYfZZc59hMt1Kj+EQeS3quX22Mk6jvS9aegYK0gC/xzdkerco YWJJPxn2/7XIcKdRUC4TTq9swdUy7u1bnvHrA/eksE4xnBvDWd/lsKDGuBD1XZta mqllXHdhPpjXEdcT3fv052Zj2iR84XbA126MgOpBOJTOCPXPv9fJ0A= 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:date :message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=default; bh=f9BlrQYe9UyyfWif1mLJzmoyBwg=; b=HNZHPkvxt5dkY4WWkbgbtb0lcyfy KQJjDlISVGhLgLTUH3vzvfcubrg07ITMA/guklcs6bp62rzlTEhMxppieUBz9W2i QgEOa8y6rrWkOpTgO2ZmjsrDRvowYxAGy08dML6qNphAgfhS1Dj/DUjiMdzpr3hW jpUmT79Cs0hH45s= Received: (qmail 23649 invoked by alias); 5 Sep 2014 12:06:05 -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 23619 invoked by uid 89); 5 Sep 2014 12:06:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL, BAYES_00, MIME_BASE64_BLANKS, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mo-sw.iij4u.or.jp Received: from mo-sw1501.iij4u.or.jp (HELO mo-sw.iij4u.or.jp) (210.130.239.241) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 05 Sep 2014 12:06:00 +0000 Received: by mo-sw.iij4u.or.jp (4u-mo-sw1501) id s85C5raM029228; Fri, 5 Sep 2014 21:05:53 +0900 Received: from localhost (238.152.138.210.bn.2iij.net [210.138.152.238]) by mbox.iij4u.or.jp (4u-mbox1500) id s85C5p2f020824; Fri, 5 Sep 2014 21:05:52 +0900 Date: Fri, 05 Sep 2014 21:05:51 +0900 (JST) Message-Id: <20140905.210551.411231424.kkojima@rr.iij4u.or.jp> To: mikestump@comcast.net Cc: gcc-patches@gcc.gnu.org Subject: Re: [patch committed testsuite sh] Tweak gcc.c-torture/execute/pr44683.c From: Kaz Kojima In-Reply-To: References: <20140905.092252.292925492.kkojima@rr.iij4u.or.jp> Mime-Version: 1.0 X-IsSubscribed: yes Mike Stump wrote: >> BTW, Jeff's comment on pr39228.c makes me think that this test >> can be moved into execute/ieee. Thought? > > I don’t see a down side, specially if we know that the test case is picky about ieee. Thanks for suggestion. The patch below simply moves it into execute/ieee. Tested on i686-linux and sh-linux. Regards, kaz -- * gcc.c-torture/execute/pr44683.c: Move to ... * gcc.c-torture/execute/ieee/pr44683.c: ... here. diff -uprN ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/ieee/pr44683.c trunk/gcc/testsuite/gcc.c-torture/execute/ieee/pr44683.c --- ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/ieee/pr44683.c 1970-01-01 09:00:00.000000000 +0900 +++ trunk/gcc/testsuite/gcc.c-torture/execute/ieee/pr44683.c 2014-09-05 18:02:46.000000000 +0900 @@ -0,0 +1,18 @@ +int __attribute__((noinline,noclone)) +copysign_bug (double x) +{ + if (x != 0.0 && (x * 0.5 == x)) + return 1; + if (__builtin_copysign(1.0, x) < 0.0) + return 2; + else + return 3; +} +int main(void) +{ + double x = -0.0; + if (copysign_bug (x) != 2) + __builtin_abort (); + return 0; +} + diff -uprN ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.c trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.c --- ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.c 2014-09-05 18:02:46.000000000 +0900 +++ trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.c 1970-01-01 09:00:00.000000000 +0900 @@ -1,18 +0,0 @@ -int __attribute__((noinline,noclone)) -copysign_bug (double x) -{ - if (x != 0.0 && (x * 0.5 == x)) - return 1; - if (__builtin_copysign(1.0, x) < 0.0) - return 2; - else - return 3; -} -int main(void) -{ - double x = -0.0; - if (copysign_bug (x) != 2) - __builtin_abort (); - return 0; -} -