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 master updated. glibc-2.25-39-g10303eb


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, master has been updated
       via  10303eb74bfe33d46ef167d2ea31c746ea1cd6ad (commit)
      from  b4e4172da6d43ac47cdf6763b3531e5e23102ff9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

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

commit 10303eb74bfe33d46ef167d2ea31c746ea1cd6ad
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Feb 15 01:13:15 2017 +0000

    Move most libmvec test contents from .c to .h files.
    
    The libmvec tests put substantive, architecture-specific contents in
    .c files such as test-double-vlen4.c, so making those files
    architecture-specific and causing issues for generating such files
    automatically when splitting up tests by function.
    
    This patch moves all the substantive contents to .h files, so the .c
    files only include the .h file and then libm-test.c.  This allows for
    automatic generation of per-function .c files in future.  The .h files
    in turn #include or #include_next the architecture-independent file
    and add the architecture-specific definitions to that.  (Splitting by
    function should in fact allow the TEST_VECTOR_* macros to be replaced
    by sysdeps makefile information on which functions to test in each
    case, removing the need for gen-libm-have-vector-test.sh as well as
    removing the need for some of the architecture-specific headers.)
    
    Tested for x86_64.
    
    	* sysdeps/x86_64/fpu/test-double-vlen2.c: Move most contents to,
    	and include ...
    	* sysdeps/x86_64/fpu/test-double-vlen2.h: ... here.  New file.
    	* sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Move most contents
    	to, and include ...
    	* sysdeps/x86_64/fpu/test-double-vlen4-avx2.h: ... here.  New
    	file.
    	* sysdeps/x86_64/fpu/test-double-vlen4.c: Move most contents to,
    	and include ...
    	* sysdeps/x86_64/fpu/test-double-vlen4.h: ... here.  New file.
    	* sysdeps/x86_64/fpu/test-double-vlen8.c: Move most contents to,
    	and include ...
    	* sysdeps/x86_64/fpu/test-double-vlen8.h: ... here.  New file.
    	* sysdeps/x86_64/fpu/test-float-vlen16.c: Move most contents to,
    	and include ...
    	* sysdeps/x86_64/fpu/test-float-vlen16.h: ... here.  New file.
    	* sysdeps/x86_64/fpu/test-float-vlen4.c: Move most contents to,
    	and include ...
    	* sysdeps/x86_64/fpu/test-float-vlen4.h: ... here.  New file.
    	* sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Move most contents
    	to, and include ...
    	* sysdeps/x86_64/fpu/test-float-vlen8-avx2.h: ... here.  New file.
    	* sysdeps/x86_64/fpu/test-float-vlen8.c: Move most contents to,
    	and include ...
    	* sysdeps/x86_64/fpu/test-float-vlen8.h: ... here.  New file.

diff --git a/ChangeLog b/ChangeLog
index f83f37a..b040928 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,31 @@
+2017-02-15  Joseph Myers  <joseph@codesourcery.com>
+
+	* sysdeps/x86_64/fpu/test-double-vlen2.c: Move most contents to,
+	and include ...
+	* sysdeps/x86_64/fpu/test-double-vlen2.h: ... here.  New file.
+	* sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Move most contents
+	to, and include ...
+	* sysdeps/x86_64/fpu/test-double-vlen4-avx2.h: ... here.  New
+	file.
+	* sysdeps/x86_64/fpu/test-double-vlen4.c: Move most contents to,
+	and include ...
+	* sysdeps/x86_64/fpu/test-double-vlen4.h: ... here.  New file.
+	* sysdeps/x86_64/fpu/test-double-vlen8.c: Move most contents to,
+	and include ...
+	* sysdeps/x86_64/fpu/test-double-vlen8.h: ... here.  New file.
+	* sysdeps/x86_64/fpu/test-float-vlen16.c: Move most contents to,
+	and include ...
+	* sysdeps/x86_64/fpu/test-float-vlen16.h: ... here.  New file.
+	* sysdeps/x86_64/fpu/test-float-vlen4.c: Move most contents to,
+	and include ...
+	* sysdeps/x86_64/fpu/test-float-vlen4.h: ... here.  New file.
+	* sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Move most contents
+	to, and include ...
+	* sysdeps/x86_64/fpu/test-float-vlen8-avx2.h: ... here.  New file.
+	* sysdeps/x86_64/fpu/test-float-vlen8.c: Move most contents to,
+	and include ...
+	* sysdeps/x86_64/fpu/test-float-vlen8.h: ... here.  New file.
+
 2017-02-14  Joseph Myers  <joseph@codesourcery.com>
 
 	* math/libm-test-support.h: Do not include <math-tests-arch.h>
diff --git a/sysdeps/x86_64/fpu/test-double-vlen2.c b/sysdeps/x86_64/fpu/test-double-vlen2.c
index 3745e28..b706f2a 100644
--- a/sysdeps/x86_64/fpu/test-double-vlen2.c
+++ b/sysdeps/x86_64/fpu/test-double-vlen2.c
@@ -16,13 +16,6 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-double-vlen2.h"
-
-#define TEST_VECTOR_cos 1
-#define TEST_VECTOR_sin 1
-#define TEST_VECTOR_sincos 1
-#define TEST_VECTOR_log 1
-#define TEST_VECTOR_exp 1
-#define TEST_VECTOR_pow 1
+#include <test-double-vlen2.h>
 
 #include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-double-vlen2.c b/sysdeps/x86_64/fpu/test-double-vlen2.h
similarity index 94%
copy from sysdeps/x86_64/fpu/test-double-vlen2.c
copy to sysdeps/x86_64/fpu/test-double-vlen2.h
index 3745e28..3e3ef8e 100644
--- a/sysdeps/x86_64/fpu/test-double-vlen2.c
+++ b/sysdeps/x86_64/fpu/test-double-vlen2.h
@@ -16,7 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-double-vlen2.h"
+#include_next <test-double-vlen2.h>
 
 #define TEST_VECTOR_cos 1
 #define TEST_VECTOR_sin 1
@@ -24,5 +24,3 @@
 #define TEST_VECTOR_log 1
 #define TEST_VECTOR_exp 1
 #define TEST_VECTOR_pow 1
-
-#include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-double-vlen4-avx2.c b/sysdeps/x86_64/fpu/test-double-vlen4-avx2.c
index 49f9d81..ccf2d15 100644
--- a/sysdeps/x86_64/fpu/test-double-vlen4-avx2.c
+++ b/sysdeps/x86_64/fpu/test-double-vlen4-avx2.c
@@ -16,18 +16,6 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-double-vlen4.h"
-
-#undef VEC_SUFF
-#define VEC_SUFF _vlen4_avx2
-
-#define TEST_VECTOR_cos 1
-#define TEST_VECTOR_sin 1
-#define TEST_VECTOR_sincos 1
-#define TEST_VECTOR_log 1
-#define TEST_VECTOR_exp 1
-#define TEST_VECTOR_pow 1
-
-#define REQUIRE_AVX2
+#include <test-double-vlen4-avx2.h>
 
 #include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-double-vlen4-avx2.c b/sysdeps/x86_64/fpu/test-double-vlen4-avx2.h
similarity index 80%
copy from sysdeps/x86_64/fpu/test-double-vlen4-avx2.c
copy to sysdeps/x86_64/fpu/test-double-vlen4-avx2.h
index 49f9d81..a15d4be 100644
--- a/sysdeps/x86_64/fpu/test-double-vlen4-avx2.c
+++ b/sysdeps/x86_64/fpu/test-double-vlen4-avx2.h
@@ -16,18 +16,10 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-double-vlen4.h"
+#include <test-double-vlen4.h>
 
 #undef VEC_SUFF
 #define VEC_SUFF _vlen4_avx2
 
-#define TEST_VECTOR_cos 1
-#define TEST_VECTOR_sin 1
-#define TEST_VECTOR_sincos 1
-#define TEST_VECTOR_log 1
-#define TEST_VECTOR_exp 1
-#define TEST_VECTOR_pow 1
-
+#undef REQUIRE_AVX
 #define REQUIRE_AVX2
-
-#include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-double-vlen4.c b/sysdeps/x86_64/fpu/test-double-vlen4.c
index 96acc15..f039207 100644
--- a/sysdeps/x86_64/fpu/test-double-vlen4.c
+++ b/sysdeps/x86_64/fpu/test-double-vlen4.c
@@ -16,15 +16,6 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-double-vlen4.h"
-
-#define TEST_VECTOR_cos 1
-#define TEST_VECTOR_sin 1
-#define TEST_VECTOR_sincos 1
-#define TEST_VECTOR_log 1
-#define TEST_VECTOR_exp 1
-#define TEST_VECTOR_pow 1
-
-#define REQUIRE_AVX
+#include <test-double-vlen4.h>
 
 #include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-double-vlen4.c b/sysdeps/x86_64/fpu/test-double-vlen4.h
similarity index 94%
copy from sysdeps/x86_64/fpu/test-double-vlen4.c
copy to sysdeps/x86_64/fpu/test-double-vlen4.h
index 96acc15..396b771 100644
--- a/sysdeps/x86_64/fpu/test-double-vlen4.c
+++ b/sysdeps/x86_64/fpu/test-double-vlen4.h
@@ -16,7 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-double-vlen4.h"
+#include_next <test-double-vlen4.h>
 
 #define TEST_VECTOR_cos 1
 #define TEST_VECTOR_sin 1
@@ -26,5 +26,3 @@
 #define TEST_VECTOR_pow 1
 
 #define REQUIRE_AVX
-
-#include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-double-vlen8.c b/sysdeps/x86_64/fpu/test-double-vlen8.c
index 6decfc6..04db81a 100644
--- a/sysdeps/x86_64/fpu/test-double-vlen8.c
+++ b/sysdeps/x86_64/fpu/test-double-vlen8.c
@@ -16,15 +16,6 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-double-vlen8.h"
-
-#define TEST_VECTOR_cos 1
-#define TEST_VECTOR_sin 1
-#define TEST_VECTOR_sincos 1
-#define TEST_VECTOR_log 1
-#define TEST_VECTOR_exp 1
-#define TEST_VECTOR_pow 1
-
-#define REQUIRE_AVX512F
+#include <test-double-vlen8.h>
 
 #include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-double-vlen8.c b/sysdeps/x86_64/fpu/test-double-vlen8.h
similarity index 94%
copy from sysdeps/x86_64/fpu/test-double-vlen8.c
copy to sysdeps/x86_64/fpu/test-double-vlen8.h
index 6decfc6..3809774 100644
--- a/sysdeps/x86_64/fpu/test-double-vlen8.c
+++ b/sysdeps/x86_64/fpu/test-double-vlen8.h
@@ -16,7 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-double-vlen8.h"
+#include_next <test-double-vlen8.h>
 
 #define TEST_VECTOR_cos 1
 #define TEST_VECTOR_sin 1
@@ -26,5 +26,3 @@
 #define TEST_VECTOR_pow 1
 
 #define REQUIRE_AVX512F
-
-#include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-float-vlen16.c b/sysdeps/x86_64/fpu/test-float-vlen16.c
index e8266c1..13a31d0 100644
--- a/sysdeps/x86_64/fpu/test-float-vlen16.c
+++ b/sysdeps/x86_64/fpu/test-float-vlen16.c
@@ -16,15 +16,6 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-float-vlen16.h"
-
-#define TEST_VECTOR_cosf 1
-#define TEST_VECTOR_sinf 1
-#define TEST_VECTOR_sincosf 1
-#define TEST_VECTOR_logf 1
-#define TEST_VECTOR_expf 1
-#define TEST_VECTOR_powf 1
-
-#define REQUIRE_AVX512F
+#include <test-float-vlen16.h>
 
 #include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-float-vlen16.c b/sysdeps/x86_64/fpu/test-float-vlen16.h
similarity index 94%
copy from sysdeps/x86_64/fpu/test-float-vlen16.c
copy to sysdeps/x86_64/fpu/test-float-vlen16.h
index e8266c1..0f1658f 100644
--- a/sysdeps/x86_64/fpu/test-float-vlen16.c
+++ b/sysdeps/x86_64/fpu/test-float-vlen16.h
@@ -16,7 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-float-vlen16.h"
+#include_next <test-float-vlen16.h>
 
 #define TEST_VECTOR_cosf 1
 #define TEST_VECTOR_sinf 1
@@ -26,5 +26,3 @@
 #define TEST_VECTOR_powf 1
 
 #define REQUIRE_AVX512F
-
-#include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-float-vlen4.c b/sysdeps/x86_64/fpu/test-float-vlen4.c
index 747e15f..78bc99c 100644
--- a/sysdeps/x86_64/fpu/test-float-vlen4.c
+++ b/sysdeps/x86_64/fpu/test-float-vlen4.c
@@ -16,13 +16,6 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-float-vlen4.h"
-
-#define TEST_VECTOR_cosf 1
-#define TEST_VECTOR_sinf 1
-#define TEST_VECTOR_sincosf 1
-#define TEST_VECTOR_logf 1
-#define TEST_VECTOR_expf 1
-#define TEST_VECTOR_powf 1
+#include <test-float-vlen4.h>
 
 #include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-float-vlen4.c b/sysdeps/x86_64/fpu/test-float-vlen4.h
similarity index 94%
copy from sysdeps/x86_64/fpu/test-float-vlen4.c
copy to sysdeps/x86_64/fpu/test-float-vlen4.h
index 747e15f..0831a21 100644
--- a/sysdeps/x86_64/fpu/test-float-vlen4.c
+++ b/sysdeps/x86_64/fpu/test-float-vlen4.h
@@ -16,7 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-float-vlen4.h"
+#include_next <test-float-vlen4.h>
 
 #define TEST_VECTOR_cosf 1
 #define TEST_VECTOR_sinf 1
@@ -24,5 +24,3 @@
 #define TEST_VECTOR_logf 1
 #define TEST_VECTOR_expf 1
 #define TEST_VECTOR_powf 1
-
-#include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-float-vlen8-avx2.c b/sysdeps/x86_64/fpu/test-float-vlen8-avx2.c
index 4c6d4b5..bb1f70e 100644
--- a/sysdeps/x86_64/fpu/test-float-vlen8-avx2.c
+++ b/sysdeps/x86_64/fpu/test-float-vlen8-avx2.c
@@ -16,18 +16,6 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-float-vlen8.h"
-
-#undef VEC_SUFF
-#define VEC_SUFF _vlen8_avx2
-
-#define TEST_VECTOR_cosf 1
-#define TEST_VECTOR_sinf 1
-#define TEST_VECTOR_sincosf 1
-#define TEST_VECTOR_logf 1
-#define TEST_VECTOR_expf 1
-#define TEST_VECTOR_powf 1
-
-#define REQUIRE_AVX2
+#include <test-float-vlen8-avx2.h>
 
 #include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-float-vlen8-avx2.c b/sysdeps/x86_64/fpu/test-float-vlen8-avx2.h
similarity index 80%
copy from sysdeps/x86_64/fpu/test-float-vlen8-avx2.c
copy to sysdeps/x86_64/fpu/test-float-vlen8-avx2.h
index 4c6d4b5..4967f9d 100644
--- a/sysdeps/x86_64/fpu/test-float-vlen8-avx2.c
+++ b/sysdeps/x86_64/fpu/test-float-vlen8-avx2.h
@@ -16,18 +16,10 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-float-vlen8.h"
+#include <test-float-vlen8.h>
 
 #undef VEC_SUFF
 #define VEC_SUFF _vlen8_avx2
 
-#define TEST_VECTOR_cosf 1
-#define TEST_VECTOR_sinf 1
-#define TEST_VECTOR_sincosf 1
-#define TEST_VECTOR_logf 1
-#define TEST_VECTOR_expf 1
-#define TEST_VECTOR_powf 1
-
+#undef REQUIRE_AVX
 #define REQUIRE_AVX2
-
-#include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-float-vlen8.c b/sysdeps/x86_64/fpu/test-float-vlen8.c
index efb11b1..fb50fd7 100644
--- a/sysdeps/x86_64/fpu/test-float-vlen8.c
+++ b/sysdeps/x86_64/fpu/test-float-vlen8.c
@@ -16,15 +16,6 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-float-vlen8.h"
-
-#define TEST_VECTOR_cosf 1
-#define TEST_VECTOR_sinf 1
-#define TEST_VECTOR_sincosf 1
-#define TEST_VECTOR_logf 1
-#define TEST_VECTOR_expf 1
-#define TEST_VECTOR_powf 1
-
-#define REQUIRE_AVX
+#include <test-float-vlen8.h>
 
 #include "libm-test.c"
diff --git a/sysdeps/x86_64/fpu/test-float-vlen8.c b/sysdeps/x86_64/fpu/test-float-vlen8.h
similarity index 95%
copy from sysdeps/x86_64/fpu/test-float-vlen8.c
copy to sysdeps/x86_64/fpu/test-float-vlen8.h
index efb11b1..a6bfebf 100644
--- a/sysdeps/x86_64/fpu/test-float-vlen8.c
+++ b/sysdeps/x86_64/fpu/test-float-vlen8.h
@@ -16,7 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include "test-float-vlen8.h"
+#include_next <test-float-vlen8.h>
 
 #define TEST_VECTOR_cosf 1
 #define TEST_VECTOR_sinf 1
@@ -26,5 +26,3 @@
 #define TEST_VECTOR_powf 1
 
 #define REQUIRE_AVX
-
-#include "libm-test.c"

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

Summary of changes:
 ChangeLog                                   |   28 +++++++++++++++++++++++++++
 sysdeps/x86_64/fpu/test-double-vlen2.c      |    9 +-------
 sysdeps/x86_64/fpu/test-double-vlen2.h      |   26 +++++++++++++++++++++++++
 sysdeps/x86_64/fpu/test-double-vlen4-avx2.c |   14 +------------
 sysdeps/x86_64/fpu/test-double-vlen4-avx2.h |   25 ++++++++++++++++++++++++
 sysdeps/x86_64/fpu/test-double-vlen4.c      |   11 +---------
 sysdeps/x86_64/fpu/test-double-vlen4.h      |   28 +++++++++++++++++++++++++++
 sysdeps/x86_64/fpu/test-double-vlen8.c      |   11 +---------
 sysdeps/x86_64/fpu/test-double-vlen8.h      |   28 +++++++++++++++++++++++++++
 sysdeps/x86_64/fpu/test-float-vlen16.c      |   11 +---------
 sysdeps/x86_64/fpu/test-float-vlen16.h      |   28 +++++++++++++++++++++++++++
 sysdeps/x86_64/fpu/test-float-vlen4.c       |    9 +-------
 sysdeps/x86_64/fpu/test-float-vlen4.h       |   26 +++++++++++++++++++++++++
 sysdeps/x86_64/fpu/test-float-vlen8-avx2.c  |   14 +------------
 sysdeps/x86_64/fpu/test-float-vlen8-avx2.h  |   25 ++++++++++++++++++++++++
 sysdeps/x86_64/fpu/test-float-vlen8.c       |   11 +---------
 sysdeps/x86_64/fpu/test-float-vlen8.h       |   28 +++++++++++++++++++++++++++
 17 files changed, 250 insertions(+), 82 deletions(-)
 create mode 100644 sysdeps/x86_64/fpu/test-double-vlen2.h
 create mode 100644 sysdeps/x86_64/fpu/test-double-vlen4-avx2.h
 create mode 100644 sysdeps/x86_64/fpu/test-double-vlen4.h
 create mode 100644 sysdeps/x86_64/fpu/test-double-vlen8.h
 create mode 100644 sysdeps/x86_64/fpu/test-float-vlen16.h
 create mode 100644 sysdeps/x86_64/fpu/test-float-vlen4.h
 create mode 100644 sysdeps/x86_64/fpu/test-float-vlen8-avx2.h
 create mode 100644 sysdeps/x86_64/fpu/test-float-vlen8.h


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]