aboutsummaryrefslogtreecommitdiff
path: root/generate_parameters.py
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2018-01-18 16:35:24 -0500
committerGravatar Andres Erbsen <andreser@mit.edu>2018-01-19 06:53:09 -0500
commit23b11c08bb5b810aa934d26e5f0596ff099d5389 (patch)
tree04bd76294bd0c8601162322ebf4c16d608e0e1b0 /generate_parameters.py
parent6bca5fb40730ec4aaec585597473345b05028fcc (diff)
Pass -mbmi2 to gcc
This will hopefully fix the issue where travis gcc complains about not being able to inline mulx. I hope.
Diffstat (limited to 'generate_parameters.py')
-rw-r--r--generate_parameters.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/generate_parameters.py b/generate_parameters.py
index 3a037b871..60ee5bce0 100644
--- a/generate_parameters.py
+++ b/generate_parameters.py
@@ -11,7 +11,7 @@ EXAMPLES (handwritten):
"bitwidth" : "128",
"montgomery" : "true",
"operations" : ["fenz", "feadd", "femul", "feopp", "fesub"],
- "compiler" : "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"
+ "compiler" : "gcc -fno-peephole2 `#GCC BUG 81300` -march=native -mbmi2 -mtune=native -std=gnu11 -O3 -flto -fomit-frame-pointer -fwrapv -Wno-attributes -Wno-incompatible-pointer-types -fno-strict-aliasing"
}
# p256 - amd64
@@ -22,7 +22,7 @@ EXAMPLES (handwritten):
"bitwidth" : "64",
"montgomery" : "true",
"operations" : ["fenz", "feadd", "femul", "feopp", "fesub"],
- "compiler" : "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"
+ "compiler" : "gcc -fno-peephole2 `#GCC BUG 81300` -march=native -mbmi2 -mtune=native -std=gnu11 -O3 -flto -fomit-frame-pointer -fwrapv -Wno-attributes -Wno-incompatible-pointer-types -fno-strict-aliasing"
}
@@ -49,7 +49,7 @@ EXAMPLES (handwritten):
"carry_chains" : "default",
"coef_div_modulus" : "2",
"operations" : ["femul", "fesquare", "freeze"],
- "compiler" : "gcc -march=native -mtune=native -std=gnu11 -O3 -flto -fomit-frame-pointer -fwrapv -Wno-attributes",
+ "compiler" : "gcc -march=native -mbmi2 -mtune=native -std=gnu11 -O3 -flto -fomit-frame-pointer -fwrapv -Wno-attributes",
}
# curve25519 - c32
@@ -61,7 +61,7 @@ EXAMPLES (handwritten):
"carry_chains" : "default",
"coef_div_modulus" : "2",
"operations" : ["femul", "fesquare", "freeze"],
- "compiler" : "gcc -march=native -mtune=native -std=gnu11 -O3 -flto -fomit-frame-pointer -fwrapv -Wno-attributes",
+ "compiler" : "gcc -march=native -mbmi2 -mtune=native -std=gnu11 -O3 -flto -fomit-frame-pointer -fwrapv -Wno-attributes",
}
'''
@@ -69,8 +69,8 @@ EXAMPLES (handwritten):
import math,json,sys,os,traceback,re,textwrap
from fractions import Fraction
-CC = "clang -fbracket-depth=999999 -march=native -mtune=native -std=gnu11 -O3 -flto -fuse-ld=lld -fomit-frame-pointer -fwrapv -Wno-attributes -fno-strict-aliasing"
-CCX = "clang++ -fbracket-depth=999999 -march=native -mtune=native -std=gnu++11 -O3 -flto -fuse-ld=lld -fomit-frame-pointer -fwrapv -Wno-attributes -fno-strict-aliasing"
+CC = "clang -fbracket-depth=999999 -march=native -mbmi2 -mtune=native -std=gnu11 -O3 -flto -fuse-ld=lld -fomit-frame-pointer -fwrapv -Wno-attributes -fno-strict-aliasing"
+CCX = "clang++ -fbracket-depth=999999 -march=native -mbmi2 -mtune=native -std=gnu++11 -O3 -flto -fuse-ld=lld -fomit-frame-pointer -fwrapv -Wno-attributes -fno-strict-aliasing"
# for montgomery
COMPILER_MONT = CC