Mercurial > vec
annotate test/Makefile.template @ 48:7d55b2bf8152 default tip
vec: these macros literally never worked, oops
| author | Paper <paper@tflc.us> | 
|---|---|
| date | Sat, 09 Aug 2025 16:03:34 -0400 | 
| parents | 7955bed1d169 | 
| children | 
| rev | line source | 
|---|---|
| 41 
c6e0df09b86f
*: performance improvements with old GCC, reimplement altivec
 Paper <paper@tflc.us> parents: 
40diff
changeset | 1 CPPFLAGS += -g -O2 -I../include -Wall | 
| 36 | 2 CFLAGS += $(CPPFLAGS) -std=c99 | 
| 3 CXXFLAGS += $(CPPFLAGS) -std=c++11 | |
| 45 
7955bed1d169
*: add preliminary floating point support
 Paper <paper@tflc.us> parents: 
41diff
changeset | 4 LDADD += -lm | 
| 36 | 5 | 
| 6 HEADERS = ../include/vec/vec.h \ | |
| 39 
f9ca85d2f14c
*: rearrange some things; add avx512bw support
 Paper <paper@tflc.us> parents: 
37diff
changeset | 7 ../include/vec/cpu.h \ | 
| 
f9ca85d2f14c
*: rearrange some things; add avx512bw support
 Paper <paper@tflc.us> parents: 
37diff
changeset | 8 ../include/vec/mem.h \ | 
| 
f9ca85d2f14c
*: rearrange some things; add avx512bw support
 Paper <paper@tflc.us> parents: 
37diff
changeset | 9 ../include/vec/defs.h \ | 
| 36 | 10 ../include/vec/impl/ppc/altivec.h \ | 
| 45 
7955bed1d169
*: add preliminary floating point support
 Paper <paper@tflc.us> parents: 
41diff
changeset | 11 ../include/vec/impl/ppc/vsx.h \ | 
| 36 | 12 ../include/vec/impl/x86/avx2.h \ | 
| 13 ../include/vec/impl/x86/avx512f.h \ | |
| 39 
f9ca85d2f14c
*: rearrange some things; add avx512bw support
 Paper <paper@tflc.us> parents: 
37diff
changeset | 14 ../include/vec/impl/x86/avx512bw.h \ | 
| 36 | 15 ../include/vec/impl/x86/mmx.h \ | 
| 16 ../include/vec/impl/x86/sse2.h \ | |
| 39 
f9ca85d2f14c
*: rearrange some things; add avx512bw support
 Paper <paper@tflc.us> parents: 
37diff
changeset | 17 ../include/vec/impl/x86/sse3.h \ | 
| 36 | 18 ../include/vec/impl/x86/sse41.h \ | 
| 39 
f9ca85d2f14c
*: rearrange some things; add avx512bw support
 Paper <paper@tflc.us> parents: 
37diff
changeset | 19 ../include/vec/impl/x86/sse42.h \ | 
| 36 | 20 ../include/vec/impl/generic.h \ | 
| 40 
55cadb1fac4b
*: add mod operation, add GCC vector backend
 Paper <paper@tflc.us> parents: 
39diff
changeset | 21 ../include/vec/impl/gcc.h \ | 
| 36 | 22 test_align.h \ | 
| 23 test_arith.h \ | |
| 24 test_compare.h \ | |
| 37 
4b5a557aa64f
*: turns out extern is a practical joke. rewrite to be always inline again
 Paper <paper@tflc.us> parents: 
36diff
changeset | 25 test_shift.h \ | 
| 39 
f9ca85d2f14c
*: rearrange some things; add avx512bw support
 Paper <paper@tflc.us> parents: 
37diff
changeset | 26 test_benchmark.h \ | 
| 
f9ca85d2f14c
*: rearrange some things; add avx512bw support
 Paper <paper@tflc.us> parents: 
37diff
changeset | 27 test_benchmark_vec.c \ | 
| 
f9ca85d2f14c
*: rearrange some things; add avx512bw support
 Paper <paper@tflc.us> parents: 
37diff
changeset | 28 test_benchmark_simple.c | 
| 36 | 29 BINS = test-generic test-host test-cxx | 
| 37 
4b5a557aa64f
*: turns out extern is a practical joke. rewrite to be always inline again
 Paper <paper@tflc.us> parents: 
36diff
changeset | 30 OBJS = test.o test-cxx.o test_benchmark_simple.o test_benchmark_vec.o | 
| 36 | 31 | 
| 32 .PHONY: all clean test | |
| 33 | |
| 34 all: $(BINS) | |
| 35 | |
| 37 
4b5a557aa64f
*: turns out extern is a practical joke. rewrite to be always inline again
 Paper <paper@tflc.us> parents: 
36diff
changeset | 36 test.o: test.c test_benchmark_simple.o test_benchmark_vec.o $(HEADERS) | 
| 36 | 37 $(CC) $(CFLAGS) -c -o $@ $< | 
| 38 | |
| 39 test-cxx.o: test.cc | |
| 40 $(CXX) $(CXXFLAGS) -c -o $@ $< | |
| 41 | |
| 37 
4b5a557aa64f
*: turns out extern is a practical joke. rewrite to be always inline again
 Paper <paper@tflc.us> parents: 
36diff
changeset | 42 test-generic: test.o test_benchmark_simple.o test_benchmark_vec.o | 
| 45 
7955bed1d169
*: add preliminary floating point support
 Paper <paper@tflc.us> parents: 
41diff
changeset | 43 $(CC) $(LDFLAGS) -o $@ $^ $(LDADD) | 
| 36 | 44 | 
| 37 
4b5a557aa64f
*: turns out extern is a practical joke. rewrite to be always inline again
 Paper <paper@tflc.us> parents: 
36diff
changeset | 45 test-host: test.o test_benchmark_simple.o test_benchmark_vec.o | 
| 45 
7955bed1d169
*: add preliminary floating point support
 Paper <paper@tflc.us> parents: 
41diff
changeset | 46 $(CC) $(LDFLAGS) -o $@ $^ $(LDADD) | 
| 36 | 47 | 
| 48 test-cxx: test-cxx.o $(HEADERS) | |
| 45 
7955bed1d169
*: add preliminary floating point support
 Paper <paper@tflc.us> parents: 
41diff
changeset | 49 $(CXX) $(LDFLAGS) -o $@ $< $(LDADD) | 
| 36 | 50 | 
| 51 clean: | |
| 52 $(RM) $(BINS) $(OBJS) | |
| 53 | |
| 54 test: clean $(BINS) | |
| 55 ./test-generic | |
| 56 ./test-host | |
| 57 ./test-cxx | 
