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: 3903 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 \