From patchwork Mon Jun 26 11:32:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Preudhomme X-Patchwork-Id: 780676 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 3wx6P83yCxz9s7f for ; Mon, 26 Jun 2017 21:33:00 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="WOPSDZXF"; 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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=IwtsCx6CCNZHbZ5feC8awjDcEHsGXb6nbKvz0ybDhxwsFaSx+2 3XdDSQ99V1CLlszir7djXCHSY0pCid1/gOKYpZ3aKW9YsUtZFX+WO1LSGeLW2hKp +Mt8gTCcGKnGOnQtgQ7EQxGapow1P6zL1YDxWF4ZJUtaEWxg/eRmfXrOU= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=yrfflZ3Wum8X6lLNSK4bZ+IvSf4=; b=WOPSDZXF5ZoTfpFLrdYg evPR+JnLO8ZWfSvFaoD1yPwOVF1Ni0HI4rBLI67Ajqhxmio5BSzH2+Au3cpKRRc1 l7oPEGqzst1u7F3w8tXLna43kUecuWhet0pudWSEvIwvF2rGe9IOs/2MR+zqufsz 2C626+paCO+5SBDSZdP3VrU= Received: (qmail 100112 invoked by alias); 26 Jun 2017 11:32:51 -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 100073 invoked by uid 89); 26 Jun 2017 11:32:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 26 Jun 2017 11:32:48 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AF0C32B; Mon, 26 Jun 2017 04:32:46 -0700 (PDT) Received: from [10.2.206.52] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EA4993F41F; Mon, 26 Jun 2017 04:32:45 -0700 (PDT) To: Kyrill Tkachov , Ramana Radhakrishnan , Richard Earnshaw , "gcc-patches@gcc.gnu.org" From: Thomas Preudhomme Subject: [PATCH, GCC/ARM, gcc-5-branch] Fix gcc.target/arm/fpscr.c Message-ID: Date: Mon, 26 Jun 2017 12:32:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 X-IsSubscribed: yes Hi, As raised by Christophe Lyon, fpscr.c FAILs because arm_fp_ok and arm_fp are not defined in GCC 5. This commit changes the test to use the same recipe as gcc.target/arm/cmp-2.c ChangeLog entry is as follows: *** gcc/testsuite/ChangeLog *** 2017-06-26 Thomas Preud'homme * gcc.target/arm/fpscr.c: Require arm_vfp_ok instead of arm_fp_ok and add -mfpu=vfp -mfloat-abi=softfp instead of fp_ok options. Ok for GCC 5? Best regards, Thomas diff --git a/gcc/testsuite/gcc.target/arm/fpscr.c b/gcc/testsuite/gcc.target/arm/fpscr.c index 7b4d71d72d8964f6da0d0604bf59aeb4a895df43..cafba4e8d67545bd210477230b9682fe86620e23 100644 --- a/gcc/testsuite/gcc.target/arm/fpscr.c +++ b/gcc/testsuite/gcc.target/arm/fpscr.c @@ -1,9 +1,9 @@ /* Test the fpscr builtins. */ /* { dg-do compile } */ -/* { dg-require-effective-target arm_fp_ok } */ +/* { dg-require-effective-target arm_vfp_ok } */ /* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ -/* { dg-add-options arm_fp } */ +/* { dg-options "-mfpu=vfp -mfloat-abi=softfp" } */ void test_fpscr ()