From patchwork Tue Oct 20 12:40:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Lawrence X-Patchwork-Id: 532948 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 651E91401DE for ; Tue, 20 Oct 2015 23:41:32 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=o9bMxHcn; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:content-type :content-transfer-encoding; q=dns; s=default; b=NuLROXyV5xnddH+o MSlBglhCsif3JDEOatQLzU16QeFuT93vBGiO+ZKkK0Z3HP2qt0LV7jdZDXcQraS6 r94BMmIQgUcvDFJypeUiH0g/0T16dPzub8dJEQnZBsOVRL63+3hcbzmTzcF0xTql Jko6RaYmTKfPLSYuDDA4vJQRO2U= 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:from :to:cc:subject:date:message-id:content-type :content-transfer-encoding; s=default; bh=1qSiL/4Gt3xFkL0/Ekhd2X /bwkw=; b=o9bMxHcnX9LR3aCi3ClCv5w3mlSccxCkuLDcvneD2OJCjmMBgnuTR6 NEGYbidFSzJOKOYWrHHrCTXy9tE5nuMa66zWgdOdpSN/r1+RyzjB/434T104K2TI 4UP4UUmkFrIEodEW2ANA+qFyCFyWFO7KMbg8ttuRvDaEI9bpwUnMU= Received: (qmail 56868 invoked by alias); 20 Oct 2015 12:41:26 -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 56855 invoked by uid 89); 20 Oct 2015 12:41:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (146.101.78.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 20 Oct 2015 12:41:22 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-35-5SDlmiqNSvKsVjuIgioHqQ-1; Tue, 20 Oct 2015 13:41:17 +0100 Received: from arm.com ([10.1.2.79]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 20 Oct 2015 13:41:13 +0100 From: Alan Lawrence To: gcc-patches@gcc.gnu.org Cc: james.greenhalgh@arm.com, marcus.shawcroft@arm.com Subject: [PATCH][AArch64 Testsuite][Trivial?] Remove divisions-to-produce-NaN from vdiv_f.c Date: Tue, 20 Oct 2015 13:40:54 +0100 Message-Id: <1445344854-25037-1-git-send-email-alan.lawrence@arm.com> X-MC-Unique: 5SDlmiqNSvKsVjuIgioHqQ-1 X-IsSubscribed: yes The test vdiv_f.c #define's NAN to (0.0 / 0.0). This produces extra scalar fdiv's, which complicate the scan-assembler testing. We can remove these by using __builtin_nan instead. Tested on AArch64 Linux. gcc/testsuite/ChangeLog: * gcc.target/aarch64/vdiv_f.c: Use __builtin_nan. --- gcc/testsuite/gcc.target/aarch64/vdiv_f.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/vdiv_f.c b/gcc/testsuite/gcc.target/aarch64/vdiv_f.c index 45c72a9..a505e39 100644 --- a/gcc/testsuite/gcc.target/aarch64/vdiv_f.c +++ b/gcc/testsuite/gcc.target/aarch64/vdiv_f.c @@ -7,7 +7,7 @@ #define FLT_INFINITY (__builtin_inff ()) #define DBL_INFINITY (__builtin_inf ()) -#define NAN (0.0 / 0.0) +#define NAN (__builtin_nan ("")) #define PI 3.141592653589793 #define PI_4 0.7853981633974483 @@ -228,9 +228,7 @@ test_vdiv_f64 () return 0; } -/* The following assembly should match 2 more times, - in 64bit NAN generation. */ -/* { dg-final { scan-assembler-times "fdiv\\td\[0-9\]+, d\[0-9\]+, d\[0-9\]+" 3 } } */ +/* { dg-final { scan-assembler-times "fdiv\\td\[0-9\]+, d\[0-9\]+, d\[0-9\]+" 1 } } */ #undef TESTA8 #undef ANSW8