From patchwork Tue Nov 25 17:13:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Senkevich X-Patchwork-Id: 414793 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 31A5814017A for ; Wed, 26 Nov 2014 04:14:53 +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=KN20Y+0pgAt0i07OUO0aeUliTtM1C IUfvLw9sOeR8LU8Pmz0LtmhRs0ZnakDGLxJt6oudUaADlJokQcqU9Pr4SejtN80k bUJJdajQQAdAkbJh9NwKIDggsYW7liYYXrVkmJU58S4H3jWmXb5UXMnTBqlgAt3Z 7xwpb01k/Fi3ok= 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=FJnp0CXDTtK57CoORsVyu1GF8cc=; b=cpU bUByVWweWMp6yVzG5eD4g/WJe+JLxeNFqLUE6O1ze2aFbmQcyPkuDAANStAtVtla 4v6DKSecevdHsgY+SPEZLalSCUEgr9IjzqyId1TmdjnV3c2Hkc9bNvFkIrRVWPww sQJWCREsNRAFkwcGj9onvMzevJ22zsmH6dmWGKio= Received: (qmail 15037 invoked by alias); 25 Nov 2014 17:14:26 -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 14990 invoked by uid 89); 25 Nov 2014 17:14:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 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-f180.google.com X-Received: by 10.112.150.102 with SMTP id uh6mr29320735lbb.50.1416935661605; Tue, 25 Nov 2014 09:14:21 -0800 (PST) MIME-Version: 1.0 From: Andrew Senkevich Date: Tue, 25 Nov 2014 20:13:51 +0300 Message-ID: Subject: [PATCH 8/N] [x86_64] Vectorized math functions To: libc-alpha This patch changes installation of libm.so to linker script for utilization of vector math library libmvec.so with no additional linker flags. ChangeLog 2014-11-25 Andrew Senkevich * math/Makefile: Added install rule for libm.so as linker script. test-misc test-fpucw test-fpucw-ieee tst-definitions test-tgmath \ --- WBR, Andrew diff --git a/math/Makefile b/math/Makefile index f5a23e4..4981358 100644 --- a/math/Makefile +++ b/math/Makefile @@ -85,6 +85,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 +install_subdir: $(inst_libdir)/libm.so +$(inst_libdir)/libm.so: $(common-objpfx)format.lds \ + $(libm) \ + $(common-objpfx)mathvec/libmvec.so$(libmvec.so-version) \ + $(+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 \