From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 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 dcvr.yhbt.net (Postfix) with ESMTPS id 90A501F453 for ; Tue, 19 Feb 2019 09:18:56 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-type; q=dns; s=default; b=Q/wj KEvZEpztifLiPhBKuYVC/Go5jgz0Ya1I3RryOV3k+KXubcn6IhmlouSgfnyWNt2c eDb1flZ6SwQbt+Y7ZqpXYCe6AORggieZEm7z/f2n2Tpq2IcNW3yg9fEWiUBMWV69 gNCAoutROgjaxgJlREqMN1jlN3sjjRutu5C4IW0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-type; s=default; bh=fWxbGFst+G gwx2ZJC/6nNaxn0Gc=; b=bf/wwZOkV8hGTdYiGm+tktCxDtbSUbS69fTGb+FZxq ui9QNf2nVkpEwLxViE+eHwHNn4Uu8CBfgyFYnsBC7IL0ziIiSgYUCu820hJ8HpyK vxJE4ZrJAHj90b+XjnLC0k74BmyEYk7nNrXemucOwSwzZI0cERsaSIfBF10Mwn5G Q= Received: (qmail 13794 invoked by alias); 19 Feb 2019 09:18:53 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 13767 invoked by uid 89); 19 Feb 2019 09:18:53 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mx1.suse.de Subject: Re: [PATCH] Add new Fortran vector math header file. To: Joseph Myers Cc: libc-alpha@sourceware.org References: <863ffa3b-af66-7d82-21a8-e809fd6c1b62@suse.cz> From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Message-ID: Date: Tue, 19 Feb 2019 10:18:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------BC6ED2B684DF5082DF3284C4" This is a multi-part message in MIME format. --------------BC6ED2B684DF5082DF3284C4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit On 2/18/19 6:55 PM, Joseph Myers wrote: > On Mon, 18 Feb 2019, Martin Liška wrote: > >> Hi. >> >> The patch adds support for Fortran vector math routines as added >> into GCC 9. The header files will be installed to the same >> folder as math-vector.h. >> >> Thanks, >> Martin >> >> ChangeLog: >> >> 2019-02-18 Martin Liska >> >> * math/Makefile: Install math-vector-fortran.h. >> * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file. > > If a header is installed for all architectures, it also needs to exist for > all architectures (presumably by having a dummy top-level > bits/math-vector-fortran.h for use on other architectures, like the > bits/math-vector.h there). > Sure, fixed in attached patch. Thanks, Martin --------------BC6ED2B684DF5082DF3284C4 Content-Type: text/x-patch; name="0001-Add-new-Fortran-vector-math-header-file.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Add-new-Fortran-vector-math-header-file.patch" >From 754e636c9feca886367e24b5ac1eb5416868add7 Mon Sep 17 00:00:00 2001 From: marxin Date: Mon, 18 Feb 2019 15:24:12 +0100 Subject: [PATCH] Add new Fortran vector math header file. ChangeLog: 2019-02-18 Martin Liska * math/Makefile: Install math-vector-fortran.h. * bits/math-vector-fortran.h: New file. * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file. --- bits/math-vector-fortran.h | 19 ++++++++++ math/Makefile | 1 + sysdeps/x86/fpu/bits/math-vector-fortran.h | 43 ++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 bits/math-vector-fortran.h create mode 100644 sysdeps/x86/fpu/bits/math-vector-fortran.h diff --git a/bits/math-vector-fortran.h b/bits/math-vector-fortran.h new file mode 100644 index 0000000000..d34239ac5f --- /dev/null +++ b/bits/math-vector-fortran.h @@ -0,0 +1,19 @@ +! Platform-specific Fortran SIMD declarations of math functions. +! Copyright (C) 2019 Free Software Foundation, Inc. +! This file is part of the GNU C Library. +! +! The GNU C Library is free software; you can redistribute it and/or +! modify it under the terms of the GNU Lesser General Public +! License as published by the Free Software Foundation; either +! version 2.1 of the License, or (at your option) any later version. +! +! The GNU C Library is distributed in the hope that it will be useful, +! but WITHOUT ANY WARRANTY; without even the implied warranty of +! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +! Lesser General Public License for more details. +! +! You should have received a copy of the GNU Lesser General Public +! License along with the GNU C Library; if not, see +! . */ + +! Get default empty builtin definitiones. diff --git a/math/Makefile b/math/Makefile index 76e8edac19..fcaa2dbe9c 100644 --- a/math/Makefile +++ b/math/Makefile @@ -26,6 +26,7 @@ headers := math.h bits/mathcalls.h bits/mathinline.h \ fpu_control.h complex.h bits/cmathcalls.h fenv.h \ bits/fenv.h bits/fenvinline.h bits/mathdef.h tgmath.h \ bits/math-finite.h bits/math-vector.h \ + bits/math-vector-fortran.h \ bits/libm-simd-decl-stubs.h bits/iscanonical.h \ bits/flt-eval-method.h bits/fp-fast.h bits/fp-logb.h \ bits/long-double.h bits/mathcalls-helper-functions.h \ diff --git a/sysdeps/x86/fpu/bits/math-vector-fortran.h b/sysdeps/x86/fpu/bits/math-vector-fortran.h new file mode 100644 index 0000000000..f2d5e57085 --- /dev/null +++ b/sysdeps/x86/fpu/bits/math-vector-fortran.h @@ -0,0 +1,43 @@ +! Platform-specific Fortran SIMD declarations of math functions. +! Copyright (C) 2019 Free Software Foundation, Inc. +! This file is part of the GNU C Library. +! +! The GNU C Library is free software; you can redistribute it and/or +! modify it under the terms of the GNU Lesser General Public +! License as published by the Free Software Foundation; either +! version 2.1 of the License, or (at your option) any later version. +! +! The GNU C Library is distributed in the hope that it will be useful, +! but WITHOUT ANY WARRANTY; without even the implied warranty of +! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +! Lesser General Public License for more details. +! +! You should have received a copy of the GNU Lesser General Public +! License along with the GNU C Library; if not, see +! . */ + +!GCC$ builtin (cos) attributes simd (notinbranch) if('x86_64') +!GCC$ builtin (cosf) attributes simd (notinbranch) if('x86_64') +!GCC$ builtin (sin) attributes simd (notinbranch) if('x86_64') +!GCC$ builtin (sinf) attributes simd (notinbranch) if('x86_64') +!GCC$ builtin (sincos) attributes simd (notinbranch) if('x86_64') +!GCC$ builtin (sincosf) attributes simd (notinbranch) if('x86_64') +!GCC$ builtin (log) attributes simd (notinbranch) if('x86_64') +!GCC$ builtin (logf) attributes simd (notinbranch) if('x86_64') +!GCC$ builtin (exp) attributes simd (notinbranch) if('x86_64') +!GCC$ builtin (expf) attributes simd (notinbranch) if('x86_64') +!GCC$ builtin (pow) attributes simd (notinbranch) if('x86_64') +!GCC$ builtin (powf) attributes simd (notinbranch) if('x86_64') + +!GCC$ builtin (cos) attributes simd (notinbranch) if('x32') +!GCC$ builtin (cosf) attributes simd (notinbranch) if('x32') +!GCC$ builtin (sin) attributes simd (notinbranch) if('x32') +!GCC$ builtin (sinf) attributes simd (notinbranch) if('x32') +!GCC$ builtin (sincos) attributes simd (notinbranch) if('x32') +!GCC$ builtin (sincosf) attributes simd (notinbranch) if('x32') +!GCC$ builtin (log) attributes simd (notinbranch) if('x32') +!GCC$ builtin (logf) attributes simd (notinbranch) if('x32') +!GCC$ builtin (exp) attributes simd (notinbranch) if('x32') +!GCC$ builtin (expf) attributes simd (notinbranch) if('x32') +!GCC$ builtin (pow) attributes simd (notinbranch) if('x32') +!GCC$ builtin (powf) attributes simd (notinbranch) if('x32') -- 2.20.1 --------------BC6ED2B684DF5082DF3284C4--