[Gmp-commit] /var/hg/gmp: Add support for IBM z16.

mercurial at gmplib.org mercurial at gmplib.org
Thu Jul 27 17:52:52 CEST 2023


details:   /var/hg/gmp/rev/b71142e53f49
changeset: 18408:b71142e53f49
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Thu Jul 27 17:52:14 2023 +0200
description:
Add support for IBM z16.

diffstat:

 acinclude.m4 |  4 ++--
 config.guess |  4 +++-
 config.sub   |  4 ++--
 configure.ac |  8 +++++++-
 4 files changed, 14 insertions(+), 6 deletions(-)

diffs (66 lines):

diff -r a261cb0a2f65 -r b71142e53f49 acinclude.m4
--- a/acinclude.m4	Thu Jul 27 11:30:11 2023 +0200
+++ b/acinclude.m4	Thu Jul 27 17:52:14 2023 +0200
@@ -54,10 +54,10 @@
 [[powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-* | power1[0-9]-*-*]])
 
 define(S390_PATTERN,
-[[s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z1[0-5]esa-*-* | z196esa-*-*]])
+[[s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z1[0-6]esa-*-* | z196esa-*-*]])
 
 define(S390X_PATTERN,
-[[s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z1[0-5]-*-* | z196-*-*]])
+[[s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z1[0-6]-*-* | z196-*-*]])
 
 define(X86_PATTERN,
 [[i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*]])
diff -r a261cb0a2f65 -r b71142e53f49 config.guess
--- a/config.guess	Thu Jul 27 11:30:11 2023 +0200
+++ b/config.guess	Thu Jul 27 17:52:14 2023 +0200
@@ -1166,7 +1166,9 @@
       2097 | 2098) zcpu="z10"  ;;
       2817 | 2818 | *) zcpu="z196" ;;
     esac
-    if grep "^features.* vxe2" /proc/cpuinfo >/dev/null; then
+    if grep "^features.* vxp2" /proc/cpuinfo >/dev/null; then
+      zcpu="z16"
+    elif grep "^features.* vxe2" /proc/cpuinfo >/dev/null; then
       zcpu="z15"
     elif grep "^features.* vxe" /proc/cpuinfo >/dev/null; then
       zcpu="z14"
diff -r a261cb0a2f65 -r b71142e53f49 config.sub
--- a/config.sub	Thu Jul 27 11:30:11 2023 +0200
+++ b/config.sub	Thu Jul 27 17:52:14 2023 +0200
@@ -122,9 +122,9 @@
 sh2)
   test_cpu=sh ;;
 
-z900 | z990 | z9 | z1[0-5] | z196)
+z900 | z990 | z9 | z1[0-6] | z196)
   test_cpu=s390x;;
-z900esa | z990esa | z9esa | z1[0-5]esa | z196esa)
+z900esa | z990esa | z9esa | z1[0-6]esa | z196esa)
   test_cpu=s390;;
 
 armsa1 | armxscale | arm9tdmi | arm9te |				\
diff -r a261cb0a2f65 -r b71142e53f49 configure.ac
--- a/configure.ac	Thu Jul 27 11:30:11 2023 +0200
+++ b/configure.ac	Thu Jul 27 17:52:14 2023 +0200
@@ -1423,10 +1423,16 @@
         ;;
       z15 | z15esa)
         cpu="z15"
-	gcc_cflags_arch="-march=$cpu -march=z14 -march=z13"
+	gcc_cflags_arch="-march=$cpu -march=arch13 -march=z14 -march=z13"
 	extra_functions=""
 	path_64="s390_64/z15 s390_64/z14 s390_64/z13 $path_64"
         ;;
+      z16 | z16esa)
+	cpu="z16"
+	gcc_cflags_arch="-march=$cpu -march=arch14 -march=z15 -march=arch13 -march=z14 -march=z13"
+	extra_functions=""
+	path_64="s390_64/z16 s390_64/z15 s390_64/z14 s390_64/z13 $path_64"
+	;;
       esac
 
     if test x"$cpu" != x ; then


More information about the gmp-commit mailing list