aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/xor_and_mat
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-07-17 12:03:39 +0200
committerCyril SIX <cyril.six@kalray.eu>2019-07-17 12:03:39 +0200
commitb288b587378984c3c419d26a13dcf93686d1b779 (patch)
tree623679ad5dd5325f4d0d11d2d85d43a638d9ad33 /test/monniaux/xor_and_mat
parentc1330c1f6863d4029bfa965b4151e629d72a2217 (diff)
downloadcompcert-kvx-b288b587378984c3c419d26a13dcf93686d1b779.tar.gz
compcert-kvx-b288b587378984c3c419d26a13dcf93686d1b779.zip
All working benches ported
Diffstat (limited to 'test/monniaux/xor_and_mat')
-rw-r--r--test/monniaux/xor_and_mat/Makefile4
-rw-r--r--test/monniaux/xor_and_mat/int_mat_run.c14
-rw-r--r--test/monniaux/xor_and_mat/make.proto3
3 files changed, 11 insertions, 10 deletions
diff --git a/test/monniaux/xor_and_mat/Makefile b/test/monniaux/xor_and_mat/Makefile
new file mode 100644
index 00000000..e6c4db77
--- /dev/null
+++ b/test/monniaux/xor_and_mat/Makefile
@@ -0,0 +1,4 @@
+TARGET=xor_and_mat
+MEASURES="c1 c2 c3 c4 c5 c6 c7"
+
+include ../rules.mk
diff --git a/test/monniaux/xor_and_mat/int_mat_run.c b/test/monniaux/xor_and_mat/int_mat_run.c
index cd902bca..a6a821d9 100644
--- a/test/monniaux/xor_and_mat/int_mat_run.c
+++ b/test/monniaux/xor_and_mat/int_mat_run.c
@@ -54,13 +54,13 @@ int main() {
"c1==c5: %s\n"
"c1==c6: %s\n"
"c1==c7: %s\n"
- "c1_time : %" PRIu64 "\n"
- "c2_time : %" PRIu64 "\n"
- "c3_time : %" PRIu64 "\n"
- "c4_time : %" PRIu64 "\n"
- "c5_time : %" PRIu64 "\n"
- "c6_time : %" PRIu64 "\n"
- "c7_time : %" PRIu64 "\n",
+ "c1 cycles: %" PRIu64 "\n"
+ "c2 cycles: %" PRIu64 "\n"
+ "c3 cycles: %" PRIu64 "\n"
+ "c4 cycles: %" PRIu64 "\n"
+ "c5 cycles: %" PRIu64 "\n"
+ "c6 cycles: %" PRIu64 "\n"
+ "c7 cycles: %" PRIu64 "\n",
xor_and_mat_equal(m, n, c1, p, c2, p)?"true":"false",
xor_and_mat_equal(m, n, c1, p, c3, p)?"true":"false",
diff --git a/test/monniaux/xor_and_mat/make.proto b/test/monniaux/xor_and_mat/make.proto
deleted file mode 100644
index 0c2f3dc1..00000000
--- a/test/monniaux/xor_and_mat/make.proto
+++ /dev/null
@@ -1,3 +0,0 @@
-sources: int_mat_run.c int_mat.c
-target: xor_and_mat
-measures: [[c2_time, c2], [c7_time, c7]]