[Gmp-commit] /var/hg/gmp-6.2: 5 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Tue Nov 10 17:53:06 UTC 2020


details:   /var/hg/gmp-6.2/rev/1b756ff7cea0
changeset: 18122:1b756ff7cea0
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Tue Nov 10 18:09:48 2020 +0100
description:
configure.ac (fat_path): Add x86/bd1 x86/goldmont x86/silvermont for CPUVEC

details:   /var/hg/gmp-6.2/rev/63020161b311
changeset: 18123:63020161b311
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Tue Nov 10 18:10:50 2020 +0100
description:
mpn/x86/fat/fat.c: Add more CPUs.

details:   /var/hg/gmp-6.2/rev/f1fb37894406
changeset: 18124:f1fb37894406
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Tue Nov 10 18:11:12 2020 +0100
description:
mpn/x86_64/fat/fat.c: Add more CPUs

details:   /var/hg/gmp-6.2/rev/dd7bbd85e566
changeset: 18125:dd7bbd85e566
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Tue Nov 10 18:11:49 2020 +0100
description:
tests/mpf/t-conv.c: Some more tests on zero

details:   /var/hg/gmp-6.2/rev/18875a0a3f89
changeset: 18126:18875a0a3f89
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Tue Nov 10 18:17:13 2020 +0100
description:
ChangeLog

diffstat:

 ChangeLog            |   8 ++++++++
 configure.ac         |   3 ++-
 mini-gmp/ChangeLog   |   4 ++++
 mpn/x86/fat/fat.c    |  35 +++++++++++++++++++++++++++++++++--
 mpn/x86_64/fat/fat.c |   5 +++--
 tests/mpf/t-conv.c   |  25 ++++++++++++++++++++++---
 6 files changed, 72 insertions(+), 8 deletions(-)

diffs (198 lines):

diff -r cac1c5b5d404 -r 18875a0a3f89 ChangeLog
--- a/ChangeLog	Wed Nov 04 23:06:35 2020 +0100
+++ b/ChangeLog	Tue Nov 10 18:17:13 2020 +0100
@@ -1,3 +1,11 @@
+2020-11-10 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* configure.ac (fat_path): Add bd1, goldmont,silvermont for CPUVEC.
+	* mpn/x86_64/fat/fat.c: Add more CPUs.
+	* mpn/x86/fat/fat.c: Add more CPUs.
+
+	* tests/mpf/t-conv.c: Some more tests on zero.
+
 2020-11-01 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* configure.ac: X86_{,64_}PATTERN: GMP_ASM_COFF_TYPE for all ABIs;
diff -r cac1c5b5d404 -r 18875a0a3f89 configure.ac
--- a/configure.ac	Wed Nov 04 23:06:35 2020 +0100
+++ b/configure.ac	Tue Nov 10 18:17:13 2020 +0100
@@ -2291,11 +2291,12 @@
 	fat_path="x86 x86/fat x86/i486
 		  x86/k6 x86/k6/mmx x86/k6/k62mmx
 		  x86/k7 x86/k7/mmx
-		  x86/k8 x86/k10 x86/bt1
+		  x86/k8 x86/k10 x86/bt1 x86/bd1
 		  x86/pentium x86/pentium/mmx
 		  x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2
 		  x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2
 		  x86/core2 x86/coreinhm x86/coreisbr
+		  x86/goldmont x86/silvermont
 		  x86/atom x86/atom/mmx x86/atom/sse2 x86/nano"
       fi
 
diff -r cac1c5b5d404 -r 18875a0a3f89 mini-gmp/ChangeLog
--- a/mini-gmp/ChangeLog	Wed Nov 04 23:06:35 2020 +0100
+++ b/mini-gmp/ChangeLog	Tue Nov 10 18:17:13 2020 +0100
@@ -1,3 +1,7 @@
+2020-11-10 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* tests/run-tests: Update WINEPATH, instead of overwriting it.
+
 2020-10-25 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* mini-mpq.c (mpq_canonical_sign): Use the correct type for size.
diff -r cac1c5b5d404 -r 18875a0a3f89 mpn/x86/fat/fat.c
--- a/mpn/x86/fat/fat.c	Wed Nov 04 23:06:35 2020 +0100
+++ b/mpn/x86/fat/fat.c	Tue Nov 10 18:17:13 2020 +0100
@@ -105,6 +105,7 @@
   { "steamroller","AuthenticAMD", MAKE_FMS (21, 0x30) },
   { "excavator",  "AuthenticAMD", MAKE_FMS (21, 0x60) },
   { "jaguar",     "AuthenticAMD", MAKE_FMS (22, 1) },
+  { "zen",        "AuthenticAMD", MAKE_FMS (23, 1) },
 
   { "viac3",      "CentaurHauls", MAKE_FMS (6, 0) },
   { "viac32",     "CentaurHauls", MAKE_FMS (6, 9) },
@@ -335,6 +336,28 @@
 		  CPUVEC_SETUP_atom_sse2;
 		  break;
 
+		case 0x37:		/* Silvermont */
+		case 0x4a:		/* Silvermont */
+		case 0x4c:		/* Airmont */
+		case 0x4d:		/* Silvermont/Avoton */
+		case 0x5a:		/* Silvermont */
+		  TRACE (printf ("  silvermont\n"));
+		  CPUVEC_SETUP_atom;
+		  CPUVEC_SETUP_atom_mmx;
+		  CPUVEC_SETUP_atom_sse2;
+		  CPUVEC_SETUP_silvermont;
+		  break;
+
+		case 0x5c:		/* Goldmont */
+		case 0x5f:		/* Goldmont */
+		case 0x7a:		/* Goldmont Plus */
+		  TRACE (printf ("  goldmont\n"));
+		  CPUVEC_SETUP_atom;
+		  CPUVEC_SETUP_atom_mmx;
+		  CPUVEC_SETUP_atom_sse2;
+		  CPUVEC_SETUP_goldmont;
+		  break;
+
 		case 0x1a:		/* NHM Gainestown */
 		case 0x1b:
 		case 0x1e:		/* NHM Lynnfield/Jasper */
@@ -362,6 +385,7 @@
 		case 0x2a:		/* SBR */
 		case 0x2d:		/* SBR-EP */
 		case 0x3a:		/* IBR */
+		case 0x3e:		/* IBR Ivytown */
 		case 0x3c:		/* Haswell client */
 		case 0x3f:		/* Haswell server */
 		case 0x45:		/* Haswell ULT */
@@ -428,8 +452,6 @@
             case 0x0f:		/* k8 */
             case 0x11:		/* "fam 11h", mix of k8 and k10 */
             case 0x13:		/* unknown, conservatively assume k8  */
-            case 0x16:		/* unknown, conservatively assume k8  */
-            case 0x17:		/* unknown, conservatively assume k8  */
               TRACE (printf ("  k8\n"));
               CPUVEC_SETUP_k7;
               CPUVEC_SETUP_k7_mmx;
@@ -444,6 +466,7 @@
 	      break;
 
             case 0x14:		/* bobcat */
+            case 0x16:		/* jaguar */
               TRACE (printf ("  bobcat\n"));
               CPUVEC_SETUP_k7;
               CPUVEC_SETUP_k7_mmx;
@@ -454,6 +477,14 @@
               TRACE (printf ("  bulldozer\n"));
               CPUVEC_SETUP_k7;
               CPUVEC_SETUP_k7_mmx;
+              CPUVEC_SETUP_bd1;
+	      break;
+
+	    case 0x17:		/* zen */
+	    case 0x19:		/* zen3 */
+	      TRACE (printf ("  zen\n"));
+	      CPUVEC_SETUP_k7;
+	      CPUVEC_SETUP_k7_mmx;
 	      break;
             }
         }
diff -r cac1c5b5d404 -r 18875a0a3f89 mpn/x86_64/fat/fat.c
--- a/mpn/x86_64/fat/fat.c	Wed Nov 04 23:06:35 2020 +0100
+++ b/mpn/x86_64/fat/fat.c	Tue Nov 10 18:17:13 2020 +0100
@@ -433,13 +433,14 @@
 	  CPUVEC_SETUP_bt2;
 	  break;
 
-	case 0x15:	    /* bulldozer, piledriver, steamroller, excavator */
+	case 0x15:		/* bulldozer, piledriver, steamroller, excavator */
 	  CPUVEC_SETUP_k8;
 	  CPUVEC_SETUP_k10;
 	  CPUVEC_SETUP_bd1;
 	  break;
 
-	case 0x17:	    /* zen */
+	case 0x17:		/* zen */
+	case 0x19:		/* zen3 */
 	  CPUVEC_SETUP_zen;
 	  break;
 	}
diff -r cac1c5b5d404 -r 18875a0a3f89 tests/mpf/t-conv.c
--- a/tests/mpf/t-conv.c	Wed Nov 04 23:06:35 2020 +0100
+++ b/tests/mpf/t-conv.c	Tue Nov 10 18:17:13 2020 +0100
@@ -1,6 +1,6 @@
 /* Test mpf_get_str and mpf_set_str.
 
-Copyright 1996, 2000, 2001, 2008, 2019 Free Software Foundation, Inc.
+Copyright 1996, 2000, 2001, 2008, 2019, 2020 Free Software Foundation, Inc.
 
 This file is part of the GNU MP Library test suite.
 
@@ -138,7 +138,7 @@
   if (mpf_cmp (x, y) != 0)
     abort ();
 
-  mpf_set_str (y, "0", 10);
+  mpf_set_str (y, "   0", 10);
   mpf_set_str (x, "00000000000000000000000000000000000000000000000000000", 10);
   MPF_CHECK_FORMAT (x);
   if (mpf_cmp (x, y) != 0)
@@ -160,7 +160,6 @@
   if (mpf_cmp (x, y) != 0)
     abort ();
 
-  mpf_set_str (y, "0", 16);
   mpf_set_str (x, "00000000000000000000000000000000000000000000000000000", 16);
   MPF_CHECK_FORMAT (x);
   if (mpf_cmp (x, y) != 0)
@@ -181,6 +180,26 @@
   MPF_CHECK_FORMAT (x);
   if (mpf_cmp (x, y) != 0)
     abort ();
+  mpf_set_str (x, "+00000000000000000000000000000000000000000000000000000e-345", 9);
+  MPF_CHECK_FORMAT (x);
+  if (mpf_cmp (x, y) != 0)
+    abort ();
+  mpf_set_str (x, "-0000000000000000000000000000000000000000000000000000. at AB", 26);
+  MPF_CHECK_FORMAT (x);
+  if (mpf_cmp (x, y) != 0)
+    abort ();
+  mpf_set_str (x, "000000000000000000000000000000000000000000000000000.0 at 78", 19);
+  MPF_CHECK_FORMAT (x);
+  if (mpf_cmp (x, y) != 0)
+    abort ();
+  mpf_set_str (x, "+.0000000000000000000000000000000000000000000000000000e555", 6);
+  MPF_CHECK_FORMAT (x);
+  if (mpf_cmp (x, y) != 0)
+    abort ();
+  mpf_set_str (x, "-0.000000000000000000000000000000000000000000000000000 at -AAAAAAAAAAAAAAAAAAAAAAAA", 17);
+  MPF_CHECK_FORMAT (x);
+  if (mpf_cmp (x, y) != 0)
+    abort ();
 
   /* Now test random values.  */
 



More information about the gmp-commit mailing list