1 2include $(top_srcdir)/Makefile.tool-tests.am 3 4dist_noinst_SCRIPTS = filter_cpuid filter_stderr filter_int gen_insn_test.pl 5 6CLEANFILES = $(addsuffix .c,$(INSN_TESTS)) 7 8INSN_TESTS = insn_basic insn_mmx insn_sse insn_sse2 insn_fpu 9if BUILD_SSE3_TESTS 10 INSN_TESTS += insn_sse3 11endif 12if BUILD_SSSE3_TESTS 13 INSN_TESTS += insn_ssse3 14endif 15if BUILD_PCLMULQDQ_TESTS 16INSN_TESTS += insn_pclmulqdq 17endif 18 19# Explicitly include insn_sse3 even if ! BUILD_SSE3_TESTS, 20# to avoid packaging screwups if 'make dist' is run on a machine 21# which failed the BUILD_SSE3_TESTS test in configure.in. 22 23## FIXME: move lzcnt64 to SSE4 conditionalisation, when that happens. 24 25EXTRA_DIST = \ 26 amd64locked.vgtest amd64locked.stdout.exp amd64locked.stderr.exp \ 27 bug127521-64.vgtest bug127521-64.stdout.exp bug127521-64.stderr.exp \ 28 bug132813-amd64.vgtest bug132813-amd64.stdout.exp \ 29 bug132813-amd64.stderr.exp \ 30 bug137714-amd64.vgtest bug137714-amd64.stdout.exp \ 31 bug137714-amd64.stderr.exp \ 32 bug132918.vgtest bug132918.stderr.exp bug132918.stdout.exp \ 33 bug156404-amd64.vgtest bug156404-amd64.stdout.exp \ 34 bug156404-amd64.stderr.exp \ 35 clc.vgtest clc.stdout.exp clc.stderr.exp \ 36 cmpxchg.vgtest cmpxchg.stdout.exp cmpxchg.stderr.exp \ 37 faultstatus.disabled faultstatus.stderr.exp \ 38 fcmovnu.vgtest fcmovnu.stderr.exp fcmovnu.stdout.exp \ 39 fxtract.vgtest fxtract.stderr.exp fxtract.stdout.exp \ 40 $(addsuffix .stderr.exp,$(INSN_TESTS)) \ 41 $(addsuffix .stdout.exp,$(INSN_TESTS)) \ 42 $(addsuffix .vgtest,$(INSN_TESTS)) \ 43 insn_sse3.stdout.exp insn_sse3.stderr.exp insn_sse3.vgtest \ 44 insn_ssse3.stdout.exp insn_ssse3.stderr.exp insn_ssse3.vgtest \ 45 jrcxz.stderr.exp jrcxz.stdout.exp jrcxz.vgtest \ 46 looper.stderr.exp looper.stdout.exp looper.vgtest \ 47 lzcnt64.stderr.exp lzcnt64.stdout.exp lzcnt64.vgtest \ 48 nibz_bennee_mmap.stderr.exp nibz_bennee_mmap.stdout.exp \ 49 nibz_bennee_mmap.vgtest \ 50 rcl-amd64.vgtest rcl-amd64.stdout.exp rcl-amd64.stderr.exp \ 51 redundantRexW.vgtest redundantRexW.stdout.exp \ 52 redundantRexW.stderr.exp \ 53 smc1.stderr.exp smc1.stdout.exp smc1.vgtest \ 54 sbbmisc.stderr.exp sbbmisc.stdout.exp sbbmisc.vgtest \ 55 shrld.stderr.exp shrld.stdout.exp shrld.vgtest \ 56 ssse3_misaligned.stderr.exp ssse3_misaligned.stdout.exp \ 57 ssse3_misaligned.vgtest \ 58 ssse3_misaligned.c \ 59 slahf-amd64.stderr.exp slahf-amd64.stdout.exp \ 60 slahf-amd64.vgtest \ 61 xadd.stderr.exp xadd.stdout.exp xadd.vgtest 62 63check_PROGRAMS = \ 64 amd64locked \ 65 bug127521-64 bug132813-amd64 bug132918 \ 66 clc \ 67 cmpxchg \ 68 $(INSN_TESTS) \ 69 rcl-amd64 \ 70 redundantRexW \ 71 smc1 \ 72 sbbmisc \ 73 nibz_bennee_mmap \ 74 xadd 75if BUILD_SSSE3_TESTS 76 check_PROGRAMS += ssse3_misaligned 77endif 78if BUILD_LZCNT_TESTS 79 check_PROGRAMS += lzcnt64 80endif 81 82# DDD: these need to be made to work on Darwin like the x86/ ones were. 83if ! VGCONF_OS_IS_DARWIN 84 check_PROGRAMS += \ 85 bug137714-amd64 \ 86 bug156404-amd64 \ 87 faultstatus \ 88 fcmovnu \ 89 fxtract \ 90 looper \ 91 jrcxz \ 92 shrld \ 93 slahf-amd64 94endif 95 96AM_CFLAGS += @FLAG_M64@ 97AM_CXXFLAGS += @FLAG_M64@ 98AM_CCASFLAGS += @FLAG_M64@ 99 100# generic C ones 101amd64locked_CFLAGS = $(AM_CFLAGS) -O 102bug132918_LDADD = -lm 103insn_basic_SOURCES = insn_basic.def 104insn_basic_LDADD = -lm 105insn_mmx_SOURCES = insn_mmx.def 106insn_mmx_LDADD = -lm 107insn_sse_SOURCES = insn_sse.def 108insn_sse_LDADD = -lm 109insn_sse2_SOURCES = insn_sse2.def 110insn_sse2_LDADD = -lm 111insn_sse3_SOURCES = insn_sse3.def 112insn_sse3_LDADD = -lm 113insn_ssse3_SOURCES = insn_ssse3.def 114insn_ssse3_LDADD = -lm 115insn_fpu_SOURCES = insn_fpu.def 116insn_fpu_LDADD = -lm 117fxtract_LDADD = -lm 118 119.def.c: $(srcdir)/gen_insn_test.pl 120 $(PERL) $(srcdir)/gen_insn_test.pl < $< > $@ 121