aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/sha-2
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-04-26 16:35:30 +0200
committerCyril SIX <cyril.six@kalray.eu>2019-04-26 16:35:30 +0200
commit24e97bd87918f2c487416744ba12a78aba35a9e5 (patch)
tree839da3cc5ca3ca9976a9e4002e27754501e7fe11 /test/monniaux/sha-2
parent6d1223d053f1ff10792d5ed5d00d3830ff61e9d7 (diff)
downloadcompcert-kvx-24e97bd87918f2c487416744ba12a78aba35a9e5.tar.gz
compcert-kvx-24e97bd87918f2c487416744ba12a78aba35a9e5.zip
Changes to include a -O1 -fschedule-insns2 gcc run as well
Diffstat (limited to 'test/monniaux/sha-2')
-rw-r--r--test/monniaux/sha-2/Makefile5
-rw-r--r--test/monniaux/sha-2/sha-256.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/test/monniaux/sha-2/Makefile b/test/monniaux/sha-2/Makefile
index f3918f7f..8fba819b 100644
--- a/test/monniaux/sha-2/Makefile
+++ b/test/monniaux/sha-2/Makefile
@@ -1,6 +1,6 @@
include ../rules.mk
-PRODUCTS=sha-256.host sha-256.gcc.k1c.out sha-256.ccomp.k1c.out sha-256.ccomp.k1c.s sha-256.gcc.k1c.s sha-256.gcc.k1c sha-256.ccomp.k1c
+PRODUCTS=sha-256.host sha-256.gcc.o1.k1c.out sha-256.gcc.k1c.out sha-256.ccomp.k1c.out sha-256.ccomp.k1c.s sha-256.gcc.k1c.s sha-256.gcc.k1c sha-256.ccomp.k1c
all: $(PRODUCTS)
@@ -12,6 +12,9 @@ sha-256.gcc.k1c.s sha-256.ccomp.k1c.s sha-256_run.gcc.k1c.s: sha-256.h
sha-256.gcc.k1c: sha-256.gcc.k1c.o sha-256_run.gcc.k1c.o
$(K1C_CC) $(K1C_CFLAGS) $+ -o $@
+sha-256.gcc.o1.k1c: sha-256.gcc.o1.k1c.o sha-256_run.gcc.o1.k1c.o
+ $(K1C_CC) $(K1C_CFLAGS_O1) $+ -o $@
+
sha-256.ccomp.k1c: sha-256.ccomp.k1c.o sha-256_run.gcc.k1c.o
$(K1C_CCOMP) $(K1C_CCOMPFLAGS) $+ -o $@
diff --git a/test/monniaux/sha-2/sha-256.c b/test/monniaux/sha-2/sha-256.c
index 9306b7f1..63ac09b7 100644
--- a/test/monniaux/sha-2/sha-256.c
+++ b/test/monniaux/sha-2/sha-256.c
@@ -8,6 +8,7 @@
#include "sha-256.h"
+#define USE_ORIGINAL 1
#define AUTOINCREMENT 1
#define CHUNK_SIZE 64