1 2 include $(top_srcdir)/Makefile.tool-tests.am 3 4 dist_noinst_SCRIPTS = filter_cpuid filter_stderr filter_int gen_insn_test.pl 5 6 CLEANFILES = $(addsuffix .c,$(INSN_TESTS)) 7 8 INSN_TESTS = insn_basic insn_mmx insn_sse insn_sse2 insn_fpu 9 if BUILD_SSE3_TESTS 10 INSN_TESTS += insn_sse3 11 endif 12 if BUILD_SSSE3_TESTS 13 INSN_TESTS += insn_ssse3 14 endif 15 if BUILD_PCLMULQDQ_TESTS 16 INSN_TESTS += insn_pclmulqdq 17 endif 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 25 EXTRA_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 63 check_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 75 if BUILD_SSSE3_TESTS 76 check_PROGRAMS += ssse3_misaligned 77 endif 78 if BUILD_LZCNT_TESTS 79 check_PROGRAMS += lzcnt64 80 endif 81 82 # DDD: these need to be made to work on Darwin like the x86/ ones were. 83 if ! 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 94 endif 95 96 AM_CFLAGS += @FLAG_M64@ 97 AM_CXXFLAGS += @FLAG_M64@ 98 AM_CCASFLAGS += @FLAG_M64@ 99 100 # generic C ones 101 amd64locked_CFLAGS = $(AM_CFLAGS) -O 102 bug132918_LDADD = -lm 103 insn_basic_SOURCES = insn_basic.def 104 insn_basic_LDADD = -lm 105 insn_mmx_SOURCES = insn_mmx.def 106 insn_mmx_LDADD = -lm 107 insn_sse_SOURCES = insn_sse.def 108 insn_sse_LDADD = -lm 109 insn_sse2_SOURCES = insn_sse2.def 110 insn_sse2_LDADD = -lm 111 insn_sse3_SOURCES = insn_sse3.def 112 insn_sse3_LDADD = -lm 113 insn_ssse3_SOURCES = insn_ssse3.def 114 insn_ssse3_LDADD = -lm 115 insn_fpu_SOURCES = insn_fpu.def 116 insn_fpu_LDADD = -lm 117 fxtract_LDADD = -lm 118 119 .def.c: $(srcdir)/gen_insn_test.pl 120 $(PERL) $(srcdir)/gen_insn_test.pl < $< > $@ 121