This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch hjl/pr19590 created. glibc-2.22-723-gc4bf698


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, hjl/pr19590 has been created
        at  c4bf6987eb5e226c39929b5242f60ac6df1a9ce8 (commit)

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=c4bf6987eb5e226c39929b5242f60ac6df1a9ce8

commit c4bf6987eb5e226c39929b5242f60ac6df1a9ce8
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Feb 15 06:19:26 2016 -0800

    Fix test-libmvec-alias test

diff --git a/math/Makefile b/math/Makefile
index b2bc67c..7d573a0 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -126,17 +126,15 @@ test-longdouble-yes = test-ldouble test-ildoubl test-ldouble-finite
 
 ifneq (no,$(PERL))
 libm-vec-tests = $(addprefix test-,$(libmvec-tests))
-libm-vec-alias-tests = $(addprefix test-,$(libmvec-alias-tests))
 libm-tests = test-float test-double $(test-longdouble-$(long-double-fcts)) \
 	test-ifloat test-idouble test-float-finite test-double-finite \
-	$(libm-vec-tests) $(libm-vec-alias-tests)
+	$(libm-vec-tests)
 libm-tests.o = $(addsuffix .o,$(libm-tests))
 
 tests += $(libm-tests)
 libm-tests-generated = libm-test-ulps.h libm-have-vector-test.h libm-test.c
 generated += $(libm-tests-generated) libm-test.stmp
 
-
 # This is needed for dependencies
 before-compile += $(objpfx)libm-test.c
 
@@ -236,7 +234,6 @@ include ../Rules
 ifneq (no,$(PERL))
 # This must come after the inclusion of sysdeps Makefiles via Rules.
 $(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests))): $(objpfx)libm-test.stmp
-$(addprefix $(objpfx), $(addsuffix .os, $(libmvec-alias-tests))): $(objpfx)libm-test.stmp
 
 # Run the math programs to automatically generate ULPs files.
 .PHONY: regen-ulps
@@ -304,13 +301,6 @@ $(addprefix $(objpfx),$(tests-static)): $(objpfx)libm.a
 $(addprefix $(objpfx), $(libm-vec-tests)): $(objpfx)%: $(objpfx)%-wrappers.o $(libm) \
 					   $(libmvec)
 
-# $(objpfx)$(libm-vec-alias-tests): $($(addprefix $(objpfx),$(libm-vec-alias-tests)):%=%.os) $(objpfx)../mathvec/libmvec_nonshared.a $(libmvec)
-
-$(addprefix $(objpfx), $(libm-vec-alias-tests)): $(addprefix $(objpfx), $(addsuffix -main.o, $(libm-vec-alias-tests))) $(objpfx)../mathvec/libmvec_nonshared.a $(libmvec)
-
-# $(objpfx)test-libmvec-alias.so: $(addprefix $(objpfx),addsuffix .os, $(libm-vec-alias-tests)) $(objpfx)../mathvec/libmvec_nonshared.a $(libmvec)
-
-
 gmp-objs = $(patsubst %,$(common-objpfx)stdlib/%.o,\
 		      add_n sub_n cmp addmul_1 mul_1 mul_n divmod_1 \
 		      lshift rshift mp_clz_tab udiv_qrnnd inlines \
diff --git a/sysdeps/x86_64/fpu/Makefile b/sysdeps/x86_64/fpu/Makefile
index 807c208..2dc253d 100644
--- a/sysdeps/x86_64/fpu/Makefile
+++ b/sysdeps/x86_64/fpu/Makefile
@@ -29,12 +29,20 @@ endif
 ifeq ($(subdir),math)
 ifeq ($(build-mathvec),yes)
 libmvec-tests += double-vlen2 double-vlen4 double-vlen4-avx2 \
-		 float-vlen4 float-vlen8 float-vlen8-avx2
-libmvec-alias-tests = libmvec-alias
+		 float-vlen4 float-vlen8 float-vlen8-avx2 libmvec-alias
+modules-names += test-libmvec-alias-mod
+test-libmvec-alias-mod.so-no-z-defs = yes
+
+$(objpfx)test-libmvec-alias: $(objpfx)test-libmvec-alias-mod.so \
+  $(objpfx)../mathvec/libmvec_nonshared.a
 
 ifeq (yes,$(config-cflags-avx512))
-libmvec-tests += double-vlen8 float-vlen16
-libmvec-alias-tests += libmvec-alias-avx512
+libmvec-tests += double-vlen8 float-vlen16 #libmvec-alias-avx512
+modules-names += test-libmvec-alias-avx512-mod
+$(objpfx)test-libmvec-alias-avx512: \
+  $(objpfx)test-libmvec-alias-avx512-mod.so \
+  $(objpfx)../mathvec/libmvec_nonshared.a
+test-libmvec-alias-avx512-mod.so-no-z-defs = yes
 endif
 
 double-vlen4-arch-ext-cflags = -mavx
@@ -45,10 +53,8 @@ float-vlen8-arch-ext-cflags = -mavx
 float-vlen8-arch-ext2-cflags = -mavx2
 float-vlen16-arch-ext-cflags = -mavx512f
 
-CFLAGS-test-libmvec-alias.c = -fPIC -Wl,-shared $(double-vlen4-arch-ext2-cflags)
-LDFLAGS-test-libmvec-alias.so = -shared
-CFLAGS-test-libmvec-alias-avx512.c = -fPIC -Wl,-shared $(double-vlen8-arch-ext-cflags)
-LDFLAGS-test-libmvec-alias-avx512.so = -shared
+CFLAGS-test-libmvec-alias-mod.c = $(double-vlen4-arch-ext2-cflags)
+CFLAGS-test-libmvec-alias-avx512-mod.c = $(double-vlen8-arch-ext-cflags)
 
 CFLAGS-test-double-vlen4-avx2.c = $(libm-test-vec-cflags)
 CFLAGS-test-double-vlen4-avx2-wrappers.c = $(double-vlen4-arch-ext2-cflags)
diff --git a/sysdeps/x86_64/fpu/test-libmvec-alias-main.c b/sysdeps/x86_64/fpu/test-libmvec-alias-main.c
deleted file mode 100644
index acd465b..0000000
--- a/sysdeps/x86_64/fpu/test-libmvec-alias-main.c
+++ /dev/null
@@ -1,56 +0,0 @@
-
-extern double log_vlen2 (double);
-extern double exp_vlen2 (double);
-extern double pow_vlen2 (double, double);
-
-extern double log_vlen4 (double);
-extern double exp_vlen4 (double);
-extern double pow_vlen4 (double, double);
-
-extern double log_vlen4_avx2 (double);
-extern double exp_vlen4_avx2 (double);
-extern double pow_vlen4_avx2 (double, double);
-
-extern float logf_vlen4 (float);
-extern float expf_vlen4 (float);
-extern float powf_vlen4 (float, float);
-
-extern float logf_vlen8 (float);
-extern float expf_vlen8 (float);
-extern float powf_vlen8 (float, float);
-
-extern float logf_vlen8_avx2 (float);
-extern float expf_vlen8_avx2 (float);
-extern float powf_vlen8_avx2 (float, float);
-
-int main( void)
-{
-  double res = 0.0;
-  float resf = 0.0;
-
-  res += log_vlen2(1.0);
-  res += exp_vlen2(1.0);
-  res += pow_vlen2(1.1, 1.1);
-
-  res += log_vlen4(1.0);
-  res += exp_vlen4(1.0);
-  res += pow_vlen4(1.1, 1.1);
-
-  res += log_vlen4_avx2(1.0);
-  res += exp_vlen4_avx2(1.0);
-  res += pow_vlen4_avx2(1.1, 1.1);
-
-  resf += logf_vlen4(1.0);
-  resf += expf_vlen4(1.0);
-  resf += powf_vlen4(1.1, 1.1);
-
-  resf += logf_vlen8(1.0);
-  resf += expf_vlen8(1.0);
-  resf += powf_vlen8(1.1, 1.1);
-
-  resf += logf_vlen8_avx2(1.0);
-  resf += expf_vlen8_avx2(1.0);
-  resf += powf_vlen8_avx2(1.1, 1.1);
-
-  return 0;
-}
diff --git a/sysdeps/x86_64/fpu/test-libmvec-alias.c b/sysdeps/x86_64/fpu/test-libmvec-alias-mod.c
similarity index 100%
copy from sysdeps/x86_64/fpu/test-libmvec-alias.c
copy to sysdeps/x86_64/fpu/test-libmvec-alias-mod.c
diff --git a/sysdeps/x86_64/fpu/test-libmvec-alias-wrappers.c b/sysdeps/x86_64/fpu/test-libmvec-alias-wrappers.c
new file mode 100644
index 0000000..9d841c9
--- /dev/null
+++ b/sysdeps/x86_64/fpu/test-libmvec-alias-wrappers.c
@@ -0,0 +1 @@
+/* Dummy file.  */
diff --git a/sysdeps/x86_64/fpu/test-libmvec-alias.c b/sysdeps/x86_64/fpu/test-libmvec-alias.c
index 6a6a103..acd465b 100644
--- a/sysdeps/x86_64/fpu/test-libmvec-alias.c
+++ b/sysdeps/x86_64/fpu/test-libmvec-alias.c
@@ -1,72 +1,28 @@
-#include <immintrin.h>
 
-#include "test-double-vlen2.h"
-#define VEC_TYPE __m128d
+extern double log_vlen2 (double);
+extern double exp_vlen2 (double);
+extern double pow_vlen2 (double, double);
 
-VECTOR_WRAPPER (WRAPPER_NAME (log), _ZGVbN2v___log_finite)
-VECTOR_WRAPPER (WRAPPER_NAME (exp), _ZGVbN2v___exp_finite)
-VECTOR_WRAPPER_ff (WRAPPER_NAME (pow), _ZGVbN2vv___pow_finite)
+extern double log_vlen4 (double);
+extern double exp_vlen4 (double);
+extern double pow_vlen4 (double, double);
 
-#undef VEC_TYPE
-#undef VECTOR_WRAPPER
-#undef VECTOR_WRAPPER_ff
-#undef VEC_SUFF
-#undef VEC_LEN
+extern double log_vlen4_avx2 (double);
+extern double exp_vlen4_avx2 (double);
+extern double pow_vlen4_avx2 (double, double);
 
-#include "test-double-vlen4.h"
-#define VEC_TYPE __m256d
+extern float logf_vlen4 (float);
+extern float expf_vlen4 (float);
+extern float powf_vlen4 (float, float);
 
-VECTOR_WRAPPER (WRAPPER_NAME (log), _ZGVcN4v___log_finite)
-VECTOR_WRAPPER (WRAPPER_NAME (exp), _ZGVcN4v___exp_finite)
-VECTOR_WRAPPER_ff (WRAPPER_NAME (pow), _ZGVcN4vv___pow_finite)
+extern float logf_vlen8 (float);
+extern float expf_vlen8 (float);
+extern float powf_vlen8 (float, float);
 
-#undef VEC_SUFF
-#define VEC_SUFF _vlen4_avx2
+extern float logf_vlen8_avx2 (float);
+extern float expf_vlen8_avx2 (float);
+extern float powf_vlen8_avx2 (float, float);
 
-VECTOR_WRAPPER (WRAPPER_NAME (log), _ZGVdN4v___log_finite)
-VECTOR_WRAPPER (WRAPPER_NAME (exp), _ZGVdN4v___exp_finite)
-VECTOR_WRAPPER_ff (WRAPPER_NAME (pow), _ZGVdN4vv___pow_finite)
-
-#undef FUNC
-#undef FLOAT
-#undef BUILD_COMPLEX
-#undef TEST_MSG
-#undef CHOOSE
-#undef FUNC_TEST
-#undef VEC_TYPE
-#undef VECTOR_WRAPPER
-#undef VECTOR_WRAPPER_ff
-#undef VEC_SUFF
-#undef VEC_LEN
-
-#include "test-float-vlen4.h"
-#define VEC_TYPE __m128
-
-VECTOR_WRAPPER (WRAPPER_NAME (logf), _ZGVbN4v___logf_finite)
-VECTOR_WRAPPER (WRAPPER_NAME (expf), _ZGVbN4v___expf_finite)
-VECTOR_WRAPPER_ff (WRAPPER_NAME (powf), _ZGVbN4vv___powf_finite)
-
-#undef VEC_TYPE
-#undef VECTOR_WRAPPER
-#undef VECTOR_WRAPPER_ff
-#undef VEC_SUFF
-#undef VEC_LEN
-
-#include "test-float-vlen8.h"
-#define VEC_TYPE __m256
-
-VECTOR_WRAPPER (WRAPPER_NAME (logf), _ZGVcN8v___logf_finite)
-VECTOR_WRAPPER (WRAPPER_NAME (expf), _ZGVcN8v___expf_finite)
-VECTOR_WRAPPER_ff (WRAPPER_NAME (powf), _ZGVcN8vv___powf_finite)
-
-#undef VEC_SUFF
-#define VEC_SUFF _vlen8_avx2
-
-VECTOR_WRAPPER (WRAPPER_NAME (logf), _ZGVdN8v___logf_finite)
-VECTOR_WRAPPER (WRAPPER_NAME (expf), _ZGVdN8v___expf_finite)
-VECTOR_WRAPPER_ff (WRAPPER_NAME (powf), _ZGVdN8vv___powf_finite)
-
-/*
 int main( void)
 {
   double res = 0.0;
@@ -98,4 +54,3 @@ int main( void)
 
   return 0;
 }
-*/

-----------------------------------------------------------------------


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]