From patchwork Tue Dec 2 16:50:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Senkevich X-Patchwork-Id: 416918 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 19D4E140160 for ; Wed, 3 Dec 2014 03:50:55 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=n17KMvMf29T7aakJdMj1NcWts6CEz WTJgjKwnieUkeo/uYeH3ErCO+HKyQE+5JavpCD0JAKiaAUulJHMrEfQ7tqrLjgbZ qu3ZzmTDGPP313lZ0UT8O/92Pm8QH6NmQ0pq4G9LoYsH5wBUx5a8jUTHkAGRmdkX oucT7M1OyYYhXw= 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:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=moQopB6uvVBQTosUNyaKs6xeHdE=; b=lgc wHeME8ceI5QRLdGN8IGh3gGv6wMsgdg1ZliRDvxvXyCfTGKmKPbOIrUiE59R3QqD VU/i4+A6BLVEVZQbDXCjiaJRMWUcEOq4CwABEEa3uAf6razj0A2PLoAvHEDT3FvQ zoiqa7OFfEZWoKD5DGPyiDCQffiYrUY3xEBa/MbQ= Received: (qmail 18617 invoked by alias); 2 Dec 2014 16:50:50 -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 Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 18603 invoked by uid 89); 2 Dec 2014 16:50:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lb0-f169.google.com X-Received: by 10.112.171.6 with SMTP id aq6mr266562lbc.28.1417539044884; Tue, 02 Dec 2014 08:50:44 -0800 (PST) MIME-Version: 1.0 From: Andrew Senkevich Date: Tue, 2 Dec 2014 20:50:14 +0400 Message-ID: Subject: [PATCH 6/N v2] [x86_64] Vectorized math functions To: libc-alpha Patch adds installation of libm.so as linker script (only in case of libmvec.so build). 2014-12-02 Andrew Senkevich * math/Makefile: Added rule for libm.so installation. test-misc test-fpucw test-fpucw-ieee tst-definitions test-tgmath \ --- WBR, Andrew diff --git a/math/Makefile b/math/Makefile index fbd2ded..a77687e 100644 --- a/math/Makefile +++ b/math/Makefile @@ -86,6 +86,22 @@ generated += $(foreach s,.c .S l.c l.S f.c f.S,$(calls:s_%=m_%$s)) routines = $(calls) $(calls:=f) $(long-c-$(long-double-fcts)) long-c-yes = $(calls:=l) +ifeq ($(build-mathvec),yes) +# We need to install libm.so as linker script +# for more comfortable use of vector math library. +install-lib-ldscripts := libm.so +libmvec-so-ver = libmvec.so$(libmvec.so-version) +install_subdir: $(inst_libdir)/libm.so +$(inst_libdir)/libm.so: $(common-objpfx)format.lds $(libm) \ + $(common-objpfx)mathvec/$(libmvec-so-ver) \ + $(+force) + (echo '/* GNU ld script'; echo '*/';\ + cat $<; \ + echo 'GROUP ( $(slibdir)/libm.so$(libm.so-version) ' \ + 'AS_NEEDED ( $(slibdir)/libmvec.so$(libmvec.so-version) ) )' \ + ) > $@ +endif + # Rules for the test suite. tests = test-matherr test-fenv atest-exp atest-sincos atest-exp2 basic-test \