aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextract-function.sh6
-rwxr-xr-xsrc/Specific/NISTP256/AMD64/compiler.sh2
-rw-r--r--src/Specific/NISTP256/AMD64/icc/measurements.txt2
-rw-r--r--src/Specific/NISTP256/AMD64/measurements.txt2
-rw-r--r--src/Specific/X25519/C64/measurements.txt2
-rw-r--r--third_party/openssl-curve25519/measurements.txt2
-rw-r--r--third_party/openssl-nistp256c64/measurements.txt2
-rw-r--r--third_party/openssl-nistz256/measurements.txt1
8 files changed, 13 insertions, 6 deletions
diff --git a/extract-function.sh b/extract-function.sh
index c00ae274b..b99862405 100755
--- a/extract-function.sh
+++ b/extract-function.sh
@@ -23,6 +23,12 @@ cat <<EOF
typedef unsigned int uint128_t __attribute__((mode(TI)));
+#if (defined(__GNUC__) || defined(__GNUG__)) && !(defined(__clang__)||defined(__INTEL_COMPILER))
+// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81294
+#define _subborrow_u32 __builtin_ia32_sbb_u32
+#define _subborrow_u64 __builtin_ia32_sbb_u64
+#endif
+
#undef force_inline
#define force_inline __attribute__((always_inline))
diff --git a/src/Specific/NISTP256/AMD64/compiler.sh b/src/Specific/NISTP256/AMD64/compiler.sh
index 90136bfbe..9a89c85f7 100755
--- a/src/Specific/NISTP256/AMD64/compiler.sh
+++ b/src/Specific/NISTP256/AMD64/compiler.sh
@@ -1,4 +1,4 @@
#!/bin/sh
set -eu
-gcc -march=native -mtune=native -std=gnu11 -O3 -flto -fomit-frame-pointer -fwrapv -Wno-attributes -Wno-incompatible-pointer-types -fno-strict-aliasing $@
+gcc -fno-peephole2 `#GCC BUG 81300` -march=native -mtune=native -std=gnu11 -O3 -flto -fomit-frame-pointer -fwrapv -Wno-attributes -Wno-incompatible-pointer-types -fno-strict-aliasing $@
diff --git a/src/Specific/NISTP256/AMD64/icc/measurements.txt b/src/Specific/NISTP256/AMD64/icc/measurements.txt
index 102afc182..7e5395a0d 100644
--- a/src/Specific/NISTP256/AMD64/icc/measurements.txt
+++ b/src/Specific/NISTP256/AMD64/icc/measurements.txt
@@ -1,2 +1,2 @@
1140 ashryn-noht-notb-noac-broadwell 2.60ghz 7.1.1 cac291e0
-1160 ashryn-noht-notb-ac-broadwell 2.50ghz 7.1.1 448af3b4
+1160 ashryn-noht-notb-ac-broadwell 2.50ghz 7.1.1 e35a6ddb
diff --git a/src/Specific/NISTP256/AMD64/measurements.txt b/src/Specific/NISTP256/AMD64/measurements.txt
index d4dca8e54..8b31d66a1 100644
--- a/src/Specific/NISTP256/AMD64/measurements.txt
+++ b/src/Specific/NISTP256/AMD64/measurements.txt
@@ -1,2 +1,2 @@
1576 ashryn-noht-notb-noac-broadwell 2.60ghz 7.1.1 cac291e0
-1640 ashryn-noht-notb-ac-broadwell 2.50ghz 7.1.1 6c558bd2
+1728 ashryn-noht-notb-ac-broadwell 2.50ghz 7.1.1 e35a6ddb
diff --git a/src/Specific/X25519/C64/measurements.txt b/src/Specific/X25519/C64/measurements.txt
index 145c4f1fc..debc4b2a4 100644
--- a/src/Specific/X25519/C64/measurements.txt
+++ b/src/Specific/X25519/C64/measurements.txt
@@ -1,6 +1,6 @@
136156 ashryn-ht-tb-ac-broadwell 3.10ghz 7.1.1 448af3b4
168279 JASONGROSS-X230-ht-tb-nops-ivybridge 2.90ghz 6.3.0 c003b54
168628 ashryn-noht-notb-noac-broadwell 2.60ghz 7.1.1 cac291e0
-174368 ashryn-noht-notb-ac-broadwell 2.50ghz 7.1.1 d7ad9528
+174304 ashryn-noht-notb-ac-broadwell 2.50ghz 7.1.1 e35a6ddb
187992 jgross-Leopard-WS-ht-tb-nops-haswell 3.70ghz 5.4.0 19a7001
217869 JASONGROSS-X230-ht-tb-nops-core-avx-i 2.90ghz 4.8 c003b54
diff --git a/third_party/openssl-curve25519/measurements.txt b/third_party/openssl-curve25519/measurements.txt
index b28317900..8c9d3d98e 100644
--- a/third_party/openssl-curve25519/measurements.txt
+++ b/third_party/openssl-curve25519/measurements.txt
@@ -1 +1 @@
-359336 ashryn-noht-notb-ac-broadwell 2.50ghz 7.1.1 56d7eec6
+359416 ashryn-noht-notb-ac-broadwell 2.50ghz 7.1.1 e35a6ddb
diff --git a/third_party/openssl-nistp256c64/measurements.txt b/third_party/openssl-nistp256c64/measurements.txt
index 7d03767b5..6ecb94abb 100644
--- a/third_party/openssl-nistp256c64/measurements.txt
+++ b/third_party/openssl-nistp256c64/measurements.txt
@@ -1 +1 @@
-2040 ashryn-noht-notb-ac-broadwell 2.50ghz 7.1.1 8ae1ab29
+2040 ashryn-noht-notb-ac-broadwell 2.50ghz 7.1.1 e35a6ddb
diff --git a/third_party/openssl-nistz256/measurements.txt b/third_party/openssl-nistz256/measurements.txt
index 332ba0d6f..1342a6c93 100644
--- a/third_party/openssl-nistz256/measurements.txt
+++ b/third_party/openssl-nistz256/measurements.txt
@@ -1,3 +1,4 @@
JASONGROSS-X230-ht-tb-nops-core-avx-i 2.90ghz 4.8 c003b54
JASONGROSS-X230-ht-tb-nops-ivybridge 2.90ghz 6.3.0 c003b54
+564 ashryn-noht-notb-ac-broadwell 2.50ghz 7.1.1 e35a6ddb
564 ashryn-noht-notb-noac-broadwell 2.50ghz 7.1.1 fe5b5b3b