diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-06-07 09:44:40 +0200 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-06-07 09:44:40 +0200 |
commit | 5af2a08cfae5b1ecc21f9be3ddc20648415c3847 (patch) | |
tree | 9d011ab0e238f5ccc6969f7747fa7256d9b9dfbd /test | |
parent | 1b4315d734f8b1173b5333cb7a650c0587b22aa3 (diff) | |
download | compcert-kvx-5af2a08cfae5b1ecc21f9be3ddc20648415c3847.tar.gz compcert-kvx-5af2a08cfae5b1ecc21f9be3ddc20648415c3847.zip |
tiff example
Diffstat (limited to 'test')
-rw-r--r-- | test/monniaux/rules.mk | 2 | ||||
-rw-r--r-- | test/monniaux/tiff-4.0.10/Makefile | 17 | ||||
-rw-r--r-- | test/monniaux/tiff-4.0.10/example_bw.pbm.bz2 | bin | 0 -> 4301 bytes | |||
-rw-r--r-- | test/monniaux/xor_and_mat/Makefile | 36 |
4 files changed, 17 insertions, 38 deletions
diff --git a/test/monniaux/rules.mk b/test/monniaux/rules.mk index 781b94c7..33a71a46 100644 --- a/test/monniaux/rules.mk +++ b/test/monniaux/rules.mk @@ -1,4 +1,4 @@ -ALL_CCOMPFLAGS=-fno-unprototyped +ALL_CCOMPFLAGS+=-fno-unprototyped CCOMP=ccomp-x86 CCOMPFLAGS=-g -O3 -Wall $(ALL_CCOMPFLAGS) $(ALL_CFLAGS) diff --git a/test/monniaux/tiff-4.0.10/Makefile b/test/monniaux/tiff-4.0.10/Makefile index 3547748b..db3428fa 100644 --- a/test/monniaux/tiff-4.0.10/Makefile +++ b/test/monniaux/tiff-4.0.10/Makefile @@ -14,7 +14,6 @@ all: $(PRODUCTS) .PHONY: run: measures.csv - ppm2tiff.gcc.host: $(src:.c=.gcc.host.o) ../clock.gcc.host.o $(CC) $(CFLAGS) $+ $(LIBS) -o $@ ppm2tiff.ccomp.host: $(src:.c=.ccomp.host.o) ../clock.gcc.host.o @@ -25,6 +24,22 @@ ppm2tiff.gcc.o1.k1c: $(src:.c=.gcc.o1.k1c.o) ../clock.gcc.k1c.o $(K1C_CC) $(K1C_CFLAGS_O1) $+ $(LIBS) -o $@ ppm2tiff.ccomp.k1c: $(src:.c=.ccomp.k1c.o) ../clock.gcc.k1c.o $(K1C_CCOMP) $(K1C_CCOMPFLAGS) $+ $(LIBS) -o $@ + +ppm2tiff.gcc.host.out: ppm2tiff.gcc.host + bunzip2 < example_bw.pbm.bz2 | ./$< -c g3 $<.g3.tif | tee $@ + +ppm2tiff.ccomp.host.out: ppm2tiff.ccomp.host + bunzip2 < example_bw.pbm.bz2 | ./$< -c g3 $<.g3.tif | tee $@ + +ppm2tiff.gcc.k1c.out: ppm2tiff.gcc.k1c + bunzip2 < example_bw.pbm.bz2 | $(EXECUTE_CYCLES) ./$< -c g3 $<.g3.tif | tee $@ + +ppm2tiff.gcc.o1.k1c.out: ppm2tiff.gcc.o1.k1c + bunzip2 < example_bw.pbm.bz2 | $(EXECUTE_CYCLES) ./$< -c g3 $<.g3.tif | tee $@ + +ppm2tiff.ccomp.k1c.out: ppm2tiff.ccomp.k1c + bunzip2 < example_bw.pbm.bz2 | $(EXECUTE_CYCLES) ./$< -c g3 $<.g3.tif | tee $@ + measures.csv: $(PRODUCTS_OUT) echo "benches, gcc host,ccomp host,gcc k1c,gcc o1 k1c,ccomp k1c" > $@ echo "ppm2tiff ", $$(grep 'cycles' ppm2tiff.gcc.host.out | cut -d':' -f2), $$(grep 'cycles' ppm2tiff.ccomp.host.out | cut -d':' -f2), $$(grep 'cycles' ppm2tiff.gcc.k1c.out | cut -d':' -f2), $$(grep 'cycles' ppm2tiff.gcc.o1.k1c.out | cut -d':' -f2), $$(grep 'cycles' ppm2tiff.ccomp.k1c.out | cut -d':' -f2)>> $@ diff --git a/test/monniaux/tiff-4.0.10/example_bw.pbm.bz2 b/test/monniaux/tiff-4.0.10/example_bw.pbm.bz2 Binary files differnew file mode 100644 index 00000000..ebf0ede0 --- /dev/null +++ b/test/monniaux/tiff-4.0.10/example_bw.pbm.bz2 diff --git a/test/monniaux/xor_and_mat/Makefile b/test/monniaux/xor_and_mat/Makefile deleted file mode 100644 index be4d8158..00000000 --- a/test/monniaux/xor_and_mat/Makefile +++ /dev/null @@ -1,36 +0,0 @@ - -include ../rules.mk - - -src=int_mat_run.c int_mat.c - -PRODUCTS?=xor_and_mat.gcc.host xor_and_mat.ccomp.host xor_and_mat.gcc.k1c xor_and_mat.gcc.o1.k1c xor_and_mat.ccomp.k1c -PRODUCTS_OUT=$(addsuffix .out,$(PRODUCTS)) - -all: $(PRODUCTS) - -.PHONY: -run: measures.csv - - -xor_and_mat.gcc.host: $(src:.c=.gcc.host.o) ../clock.gcc.host.o - $(CC) $(CFLAGS) $+ -o $@ -xor_and_mat.ccomp.host: $(src:.c=.ccomp.host.o) ../clock.gcc.host.o - $(CCOMP) $(CCOMPFLAGS) $+ -o $@ -xor_and_mat.gcc.k1c: $(src:.c=.gcc.k1c.o) ../clock.gcc.k1c.o - $(K1C_CC) $(K1C_CFLAGS) $+ -o $@ -xor_and_mat.gcc.o1.k1c: $(src:.c=.gcc.o1.k1c.o) ../clock.gcc.k1c.o - $(K1C_CC) $(K1C_CFLAGS_O1) $+ -o $@ -xor_and_mat.ccomp.k1c: $(src:.c=.ccomp.k1c.o) ../clock.gcc.k1c.o - $(K1C_CCOMP) $(K1C_CCOMPFLAGS) $+ -o $@ -measures.csv: $(PRODUCTS_OUT) - echo "benches, gcc host,ccomp host,gcc k1c,gcc o1 k1c,ccomp k1c" > $@ - echo "xor_and_mat c2", $$(grep 'c2_time' xor_and_mat.gcc.host.out | cut -d':' -f2), $$(grep 'c2_time' xor_and_mat.ccomp.host.out | cut -d':' -f2), $$(grep 'c2_time' xor_and_mat.gcc.k1c.out | cut -d':' -f2), $$(grep 'c2_time' xor_and_mat.gcc.o1.k1c.out | cut -d':' -f2), $$(grep 'c2_time' xor_and_mat.ccomp.k1c.out | cut -d':' -f2)>> $@ - echo "xor_and_mat c7", $$(grep 'c7_time' xor_and_mat.gcc.host.out | cut -d':' -f2), $$(grep 'c7_time' xor_and_mat.ccomp.host.out | cut -d':' -f2), $$(grep 'c7_time' xor_and_mat.gcc.k1c.out | cut -d':' -f2), $$(grep 'c7_time' xor_and_mat.gcc.o1.k1c.out | cut -d':' -f2), $$(grep 'c7_time' xor_and_mat.ccomp.k1c.out | cut -d':' -f2)>> $@ - -.SECONDARY: - -.PHONY: -clean: - rm -f *.o *.s *.k1c *.csv - |