From patchwork Sun Mar 6 13:58:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 63631 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp994160lbc; Sun, 6 Mar 2016 05:59:03 -0800 (PST) X-Received: by 10.66.225.177 with SMTP id rl17mr26517665pac.46.1457272743735; Sun, 06 Mar 2016 05:59:03 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id v71si259518pfa.58.2016.03.06.05.59.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Mar 2016 05:59:03 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-422861-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; spf=pass (google.com: domain of gcc-patches-return-422861-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-422861-patch=linaro.org@gcc.gnu.org; dkim=pass header.i=@gcc.gnu.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:date:message-id:subject:from:to:content-type; q= dns; s=default; b=XcUOZw2aUokTJdJ3EZX2o73I+4B1VkmFQWV9ggYIENodxl qdaV/Ztp2PwgJbmNhFrcClWE227qe1Yc8H85F5b7rVbuzOshTCVZkTS2tlmWWKed HcDepduTzHmCTJBFTyd0dkUUXBHnLpaYaqeNkwug3J/Qq0bmrQJwc0rRRtwOk= 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:date:message-id:subject:from:to:content-type; s= default; bh=O+E0ff71jS3Hcf1WsXFVEbYbVMY=; b=TFW7L5cq/jz+eUZ7Au/x DqiU+bJjlgN/gUSdHepaVxqaW4q2asa1hOvIL+sPkv+et50vaC+C1EGgHQkesjLV 9tPnp9tIWKxW0jHOLCv6Y4BocCY6ganO647KeLJ4HDIjfg6o8BR9SZkyrqF6i5A5 xlVLy6UCv2CC8pNcxuwRnNQ= Received: (qmail 36586 invoked by alias); 6 Mar 2016 13:58: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 36572 invoked by uid 89); 6 Mar 2016 13:58:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1045 X-HELO: mail-qg0-f47.google.com Received: from mail-qg0-f47.google.com (HELO mail-qg0-f47.google.com) (209.85.192.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sun, 06 Mar 2016 13:58:49 +0000 Received: by mail-qg0-f47.google.com with SMTP id t4so78457013qge.0 for ; Sun, 06 Mar 2016 05:58:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=0tHvgQt80H5FvB4uIE0F3kU34BgeKv4elq63gRS/IcE=; b=Slqz6a/vJ6xerkB/ESZj/I1XzgpmF+PqhLBX7IlpQFIU515uLN9JJEqVqZ3p4xGjss 9uOM+/CDH7G/1MytBpknx6qq6eern9YRuiACyVmIZSjRTxpHh5SBfDn1ibaZl4AXop01 Jqp62VwJ7cHTEE2llvVD1EO6jBilDO2BdZRQZtYPVYQBxxYy+tZB1rhBdhaYlzMB2hfR bciaDgt7viQybS7R7Con2JIFSE79mPMdQ1CL0xuUoRqar4rwltM+Et6kvtFT4Qy1GKNT O67tNGH3AHJ7cs+cn3s44FG/SyD8T/A38EGdXtkUpFLLzMo+fOuzN/3gHGAHGChnsUbm u0Tg== X-Gm-Message-State: AD7BkJJILsKmhEdOamrduHQF8haSGfccSU8JYGPGoHk4mEHwoCOIxHzPZzayX4iiZa9WlxcQ6h3jDS+WvftC/M2U MIME-Version: 1.0 X-Received: by 10.140.22.139 with SMTP id 11mr22960354qgn.34.1457272727713; Sun, 06 Mar 2016 05:58:47 -0800 (PST) Received: by 10.140.22.164 with HTTP; Sun, 6 Mar 2016 05:58:47 -0800 (PST) Date: Sun, 6 Mar 2016 14:58:47 +0100 Message-ID: Subject: [PATCH][ARM,testsuite] fix pragma_cpp_fma testcase From: Christophe Lyon To: "gcc-patches@gcc.gnu.org" X-IsSubscribed: yes Hi, In commit r233654, Christian introduced a new test: pragma_cpp_fma. Unfortunately, this test fails when gcc is configured --with-fpu >= neonvfpv4: __ARM_FEATURE_FMA is still defined after the last pop_options. To address this, I propose to simply force fpu=vfp via a pragma at the beginning of the test, like we do in several other similar tests. OK? Christophe. 2016-03-07 Christophe Lyon * gcc.target/arm/pragma_cpp_fma.c: Reset default FPU. diff --git a/gcc/testsuite/gcc.target/arm/pragma_cpp_fma.c b/gcc/testsuite/gcc.target/arm/pragma_cpp_fma.c index be63256..c72ea8c 100644 --- a/gcc/testsuite/gcc.target/arm/pragma_cpp_fma.c +++ b/gcc/testsuite/gcc.target/arm/pragma_cpp_fma.c @@ -4,6 +4,9 @@ /* { dg-require-effective-target arm_fp_ok } */ /* { dg-add-options arm_fp } */ +/* Reset fpu to a value compatible with the next pragmas. */ +#pragma GCC target ("fpu=vfp") + #pragma GCC push_options #pragma GCC target ("fpu=crypto-neon-fp-armv8")