From 23b11c08bb5b810aa934d26e5f0596ff099d5389 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Thu, 18 Jan 2018 16:35:24 -0500 Subject: Pass -mbmi2 to gcc This will hopefully fix the issue where travis gcc complains about not being able to inline mulx. I hope. --- generate_parameters.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'generate_parameters.py') 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 -- cgit v1.2.3