From patchwork Thu Jan 14 13:17:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Bruel X-Patchwork-Id: 567371 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 42B0F1402BC for ; Fri, 15 Jan 2016 00:17:45 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=BRS1eHId; 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 :subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=FeKCU59WdF9AqNaaU 1xONVPLs7OAqK8d6pRUHQxwiR10lDwz+KX2gjbmAIXElZDm3Iy6Cm+fYrl6eGuPH ey/gKuf6Dul8JANkhEWzHEo85KYaL6TRQEfyjMhT69L5tf/GeIVNxFwTslgHtqN5 ZnhJxQenM4MB5BMVIq0BVzSbgQ= 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 :subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=mAvz5P9lgSym2pFWioAyCr5 N0Sk=; b=BRS1eHId/QoG1+vCFHTSQqiyuCzxIeKgz7+3c6xp3KQEAkqK101my+q 6DNBIOup1Hydi3J4ADZaTaeC1fPd8nrSWXPcI+O8ZVzqY2U1NiqXTzSdF52R+wCY bHGscJq0aZclldgrg91xG6/nxZJtqB7whooAMoUosuDzMMwfe41U= Received: (qmail 48061 invoked by alias); 14 Jan 2016 13:17:38 -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 48045 invoked by uid 89); 14 Jan 2016 13:17:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=BAYES_50, KAM_LAZY_DOMAIN_SECURITY, KHOP_DYNAMIC, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=HX-Envelope-From:sk:christi, mfloat-abi, PR68674, mfloatabi X-HELO: mx07-00178001.pphosted.com Received: from mx08-00178001.pphosted.com (HELO mx07-00178001.pphosted.com) (91.207.212.93) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 14 Jan 2016 13:17:37 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.15.0.59/8.15.0.59) with SMTP id u0EDDEMq011070; Thu, 14 Jan 2016 14:17:29 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 20d1eyv8x5-1 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 14 Jan 2016 14:17:29 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4D7FF34; Thu, 14 Jan 2016 13:16:43 +0000 (GMT) Received: from Webmail-eu.st.com (safex1hubcas2.st.com [10.75.90.16]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 928BE55CA; Thu, 14 Jan 2016 13:17:28 +0000 (GMT) Received: from [164.129.122.197] (164.129.122.197) by webmail-eu.st.com (10.75.90.13) with Microsoft SMTP Server (TLS) id 8.3.389.2; Thu, 14 Jan 2016 14:17:28 +0100 Subject: Re: [PATCH, ARM] PR68674 Fix LTO support for neon builtin and error catching (ping) To: References: <568D1E7B.1090609@st.com> <568D3B10.6080309@foss.arm.com> <568D3F76.2020202@foss.arm.com> <568D4B4D.2010304@st.com> <568D4D28.8010500@foss.arm.com> <56979685.4050406@st.com> CC: From: Christian Bruel X-No-Archive: yes Message-ID: <56979FE7.3030804@st.com> Date: Thu, 14 Jan 2016 14:17:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <56979685.4050406@st.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-01-14_08:, , signatures=0 X-IsSubscribed: yes sorry forgot to provide one of the tests in the patch. On 01/14/2016 01:37 PM, Christian Bruel wrote: > Here is the rebased patch after the #pragma GCC target warning fixes. > I also disabled the builtins initialisations when float-abi is solft as > you suggested. > > > > Index: arm/attr-neon-builtin-fail2.c =================================================================== --- arm/attr-neon-builtin-fail2.c (revision 0) +++ arm/attr-neon-builtin-fail2.c (working copy) @@ -0,0 +1,15 @@ +/* Check that calling a neon builtin from a function compiled with vfp fails. */ +/* { dg-do compile } */ +/* { dg-require-effective-target arm_vfp_ok } */ +/* { dg-options "-O2 -mfloat-abi=softfp" } */ + +extern __simd64_int8_t a, b; + +__attribute__ ((target ("fpu=vfp"))) +void +foo (__simd128_int16_t *p) +{ + *p = (__simd128_int16_t)__builtin_neon_vaddlsv8qi (a, b); /* { dg-error "You must enable NEON instructions .*" } */ + +} +