1 2 include $(top_srcdir)/Makefile.tool-tests.am 3 4 dist_noinst_SCRIPTS = filter_cpuid filter_stderr 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 EXTRA_DIST = \ 24 amd64locked.vgtest amd64locked.stdout.exp amd64locked.stderr.exp \ 25 asorep.stderr.exp asorep.stdout.exp asorep.vgtest \ 26 bug127521-64.vgtest bug127521-64.stdout.exp bug127521-64.stderr.exp \ 27 bug132813-amd64.vgtest bug132813-amd64.stdout.exp \ 28 bug132813-amd64.stderr.exp \ 29 bug137714-amd64.vgtest bug137714-amd64.stdout.exp \ 30 bug137714-amd64.stderr.exp \ 31 bug132918.vgtest bug132918.stderr.exp bug132918.stdout.exp \ 32 bug132918.stdout.exp-older-glibc \ 33 bug156404-amd64.vgtest bug156404-amd64.stdout.exp \ 34 bug156404-amd64.stderr.exp \ 35 clc.vgtest clc.stdout.exp clc.stderr.exp \ 36 crc32.vgtest crc32.stdout.exp crc32.stderr.exp \ 37 cmpxchg.vgtest cmpxchg.stdout.exp cmpxchg.stderr.exp \ 38 faultstatus.disabled faultstatus.stderr.exp \ 39 fcmovnu.vgtest fcmovnu.stderr.exp fcmovnu.stdout.exp \ 40 fxtract.vgtest fxtract.stderr.exp fxtract.stdout.exp \ 41 fxtract.stdout.exp-older-glibc \ 42 $(addsuffix .stderr.exp,$(INSN_TESTS)) \ 43 $(addsuffix .stdout.exp,$(INSN_TESTS)) \ 44 $(addsuffix .vgtest,$(INSN_TESTS)) \ 45 insn_pclmulqdq.vgtest insn_pclmulqdq.stdout.exp \ 46 insn_pclmulqdq.stderr.exp \ 47 insn_sse3.stdout.exp insn_sse3.stderr.exp insn_sse3.vgtest \ 48 insn_ssse3.stdout.exp insn_ssse3.stderr.exp insn_ssse3.vgtest \ 49 jrcxz.stderr.exp jrcxz.stdout.exp jrcxz.vgtest \ 50 looper.stderr.exp looper.stdout.exp looper.vgtest \ 51 loopnel.stderr.exp loopnel.stdout.exp loopnel.vgtest \ 52 lzcnt64.stderr.exp lzcnt64.stdout.exp lzcnt64.vgtest \ 53 nibz_bennee_mmap.stderr.exp nibz_bennee_mmap.stdout.exp \ 54 nibz_bennee_mmap.vgtest \ 55 pcmpstr64.stderr.exp pcmpstr64.stdout.exp \ 56 pcmpstr64.vgtest \ 57 pcmpxstrx64.stderr.exp pcmpxstrx64.stdout.exp \ 58 pcmpxstrx64.vgtest \ 59 rcl-amd64.vgtest rcl-amd64.stdout.exp rcl-amd64.stderr.exp \ 60 redundantRexW.vgtest redundantRexW.stdout.exp \ 61 redundantRexW.stderr.exp \ 62 smc1.stderr.exp smc1.stdout.exp smc1.vgtest \ 63 sbbmisc.stderr.exp sbbmisc.stdout.exp sbbmisc.vgtest \ 64 shrld.stderr.exp shrld.stdout.exp shrld.vgtest \ 65 ssse3_misaligned.stderr.exp ssse3_misaligned.stdout.exp \ 66 ssse3_misaligned.vgtest \ 67 sse4-64.stderr.exp sse4-64.stdout.exp sse4-64.vgtest \ 68 sse4-64.stdout.exp-older-glibc \ 69 slahf-amd64.stderr.exp slahf-amd64.stdout.exp \ 70 slahf-amd64.vgtest \ 71 xadd.stderr.exp xadd.stdout.exp xadd.vgtest 72 73 check_PROGRAMS = \ 74 amd64locked \ 75 asorep \ 76 bug127521-64 bug132813-amd64 bug132918 \ 77 clc \ 78 cmpxchg \ 79 $(INSN_TESTS) \ 80 rcl-amd64 \ 81 redundantRexW \ 82 smc1 \ 83 sbbmisc \ 84 nibz_bennee_mmap \ 85 xadd 86 if BUILD_SSSE3_TESTS 87 check_PROGRAMS += ssse3_misaligned 88 endif 89 if BUILD_LZCNT_TESTS 90 check_PROGRAMS += lzcnt64 91 endif 92 if BUILD_SSE42_TESTS 93 check_PROGRAMS += pcmpstr64 pcmpxstrx64 sse4-64 crc32 94 endif 95 96 # DDD: these need to be made to work on Darwin like the x86/ ones were. 97 if ! VGCONF_OS_IS_DARWIN 98 check_PROGRAMS += \ 99 bug137714-amd64 \ 100 bug156404-amd64 \ 101 faultstatus \ 102 fcmovnu \ 103 fxtract \ 104 looper \ 105 loopnel \ 106 jrcxz \ 107 shrld \ 108 slahf-amd64 109 endif 110 111 AM_CFLAGS += @FLAG_M64@ 112 AM_CXXFLAGS += @FLAG_M64@ 113 AM_CCASFLAGS += @FLAG_M64@ 114 115 # generic C ones 116 amd64locked_CFLAGS = $(AM_CFLAGS) -O 117 bug132918_LDADD = -lm 118 fxtract_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_OVERFLOW@ 119 insn_basic_SOURCES = insn_basic.def 120 insn_basic_LDADD = -lm 121 insn_mmx_SOURCES = insn_mmx.def 122 insn_mmx_LDADD = -lm 123 insn_sse_SOURCES = insn_sse.def 124 insn_sse_LDADD = -lm 125 insn_sse2_SOURCES = insn_sse2.def 126 insn_sse2_LDADD = -lm 127 insn_sse3_SOURCES = insn_sse3.def 128 insn_sse3_LDADD = -lm 129 insn_ssse3_SOURCES = insn_ssse3.def 130 insn_ssse3_LDADD = -lm 131 insn_fpu_SOURCES = insn_fpu.def 132 insn_fpu_LDADD = -lm 133 fxtract_LDADD = -lm 134 135 .def.c: $(srcdir)/gen_insn_test.pl 136 $(PERL) $(srcdir)/gen_insn_test.pl < $< > $@ 137