• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2include $(top_srcdir)/Makefile.tool-tests.am
3
4dist_noinst_SCRIPTS = filter_cpuid filter_inf_nan filter_stderr 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
16 INSN_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
23EXTRA_DIST = \
24	aes.vgtest aes.stdout.exp aes.stderr.exp \
25	amd64locked.vgtest amd64locked.stdout.exp amd64locked.stderr.exp \
26	avx-1.vgtest avx-1.stdout.exp avx-1.stderr.exp \
27	avx2-1.vgtest avx2-1.stdout.exp avx2-1.stderr.exp \
28	asorep.stderr.exp asorep.stdout.exp asorep.vgtest \
29	bmi.stderr.exp bmi.stdout.exp bmi.vgtest \
30	fma.stderr.exp fma.stdout.exp fma.vgtest \
31	bug127521-64.vgtest bug127521-64.stdout.exp bug127521-64.stderr.exp \
32	bug132813-amd64.vgtest bug132813-amd64.stdout.exp \
33	bug132813-amd64.stderr.exp \
34	bug137714-amd64.vgtest bug137714-amd64.stdout.exp \
35	bug137714-amd64.stderr.exp \
36	bug132918.vgtest bug132918.stderr.exp bug132918.stdout.exp \
37	bug132918.stdout.exp-older-glibc \
38	bug156404-amd64.vgtest bug156404-amd64.stdout.exp \
39	bug156404-amd64.stderr.exp \
40	clc.vgtest clc.stdout.exp clc.stderr.exp \
41	crc32.vgtest crc32.stdout.exp crc32.stderr.exp \
42	cmpxchg.vgtest cmpxchg.stdout.exp cmpxchg.stderr.exp \
43	faultstatus.disabled faultstatus.stderr.exp \
44	fcmovnu.vgtest fcmovnu.stderr.exp fcmovnu.stdout.exp \
45	fxtract.vgtest fxtract.stderr.exp fxtract.stdout.exp \
46	fxtract.stdout.exp-older-glibc \
47	getseg.stdout.exp getseg.stderr.exp getseg.vgtest \
48	$(addsuffix .stderr.exp,$(INSN_TESTS)) \
49	$(addsuffix .stdout.exp,$(INSN_TESTS)) \
50	$(addsuffix .vgtest,$(INSN_TESTS)) \
51	insn_pclmulqdq.vgtest insn_pclmulqdq.stdout.exp \
52	insn_pclmulqdq.stderr.exp \
53	insn_sse3.stdout.exp insn_sse3.stderr.exp insn_sse3.vgtest \
54	insn_ssse3.stdout.exp insn_ssse3.stderr.exp insn_ssse3.vgtest \
55	jrcxz.stderr.exp jrcxz.stdout.exp jrcxz.vgtest \
56	looper.stderr.exp looper.stdout.exp looper.vgtest \
57	loopnel.stderr.exp loopnel.stdout.exp loopnel.vgtest \
58	lzcnt64.stderr.exp lzcnt64.stdout.exp lzcnt64.vgtest \
59	movbe.stderr.exp movbe.stdout.exp movbe.vgtest \
60	mpx.stderr.exp mpx.stdout.exp mpx.vgtest \
61	nan80and64.stderr.exp nan80and64.stdout.exp nan80and64.vgtest \
62	nibz_bennee_mmap.stderr.exp nibz_bennee_mmap.stdout.exp \
63	nibz_bennee_mmap.vgtest \
64	pcmpstr64.stderr.exp pcmpstr64.stdout.exp \
65	pcmpstr64.vgtest \
66	pcmpstr64w.stderr.exp pcmpstr64w.stdout.exp \
67	pcmpstr64w.vgtest \
68	pcmpxstrx64.stderr.exp pcmpxstrx64.stdout.exp \
69	pcmpxstrx64.vgtest \
70	pcmpxstrx64w.stderr.exp pcmpxstrx64w.stdout.exp \
71	pcmpxstrx64w.vgtest \
72	rcl-amd64.vgtest rcl-amd64.stdout.exp rcl-amd64.stderr.exp \
73	redundantRexW.vgtest redundantRexW.stdout.exp \
74	redundantRexW.stderr.exp \
75	smc1.stderr.exp smc1.stdout.exp smc1.vgtest \
76	sbbmisc.stderr.exp sbbmisc.stdout.exp sbbmisc.vgtest \
77	shrld.stderr.exp shrld.stdout.exp shrld.vgtest \
78	ssse3_misaligned.stderr.exp ssse3_misaligned.stdout.exp \
79	ssse3_misaligned.vgtest \
80	sse4-64.stderr.exp sse4-64.stdout.exp sse4-64.vgtest \
81	sse4-64.stdout.exp-older-glibc \
82	slahf-amd64.stderr.exp slahf-amd64.stdout.exp \
83	slahf-amd64.vgtest \
84	tm1.vgtest tm1.stderr.exp tm1.stdout.exp \
85	x87trigOOR.vgtest x87trigOOR.stderr.exp x87trigOOR.stdout.exp \
86	xacq_xrel.stderr.exp xacq_xrel.stdout.exp xacq_xrel.vgtest \
87	xadd.stderr.exp xadd.stdout.exp xadd.vgtest
88
89check_PROGRAMS = \
90	allexec \
91	amd64locked \
92	bug127521-64 bug132813-amd64 bug132918 bug137714-amd64 \
93	clc \
94	cmpxchg \
95	getseg \
96	$(INSN_TESTS) \
97	nan80and64 \
98	rcl-amd64 \
99	redundantRexW \
100	smc1 \
101	sbbmisc \
102	nibz_bennee_mmap \
103	x87trigOOR \
104	xadd
105if BUILD_ADDR32_TESTS
106 check_PROGRAMS += asorep
107endif
108if BUILD_AVX_TESTS
109if BUILD_VPCLMULQDQ_TESTS
110  check_PROGRAMS += avx-1
111endif
112endif
113if BUILD_AVX2_TESTS
114if !COMPILER_IS_ICC
115  check_PROGRAMS += avx2-1
116endif
117endif
118if BUILD_SSSE3_TESTS
119 check_PROGRAMS += ssse3_misaligned
120endif
121if BUILD_LZCNT_TESTS
122 check_PROGRAMS += lzcnt64
123endif
124if BUILD_MOVBE_TESTS
125 check_PROGRAMS += movbe
126endif
127if BUILD_SSE42_TESTS
128 check_PROGRAMS += \
129	pcmpstr64 pcmpxstrx64 sse4-64 crc32 aes \
130	pcmpstr64w pcmpxstrx64w
131endif
132if BUILD_TSX_TESTS
133  check_PROGRAMS += tm1 xacq_xrel
134endif
135if BUILD_BMI_TESTS
136 check_PROGRAMS += bmi
137endif
138if BUILD_FMA_TESTS
139 check_PROGRAMS += fma
140endif
141if BUILD_MPX_TESTS
142 check_PROGRAMS += mpx
143endif
144
145
146# DDD: these need to be made to work on Darwin like the x86/ ones were.
147if ! VGCONF_OS_IS_DARWIN
148   check_PROGRAMS += \
149	bug156404-amd64 \
150	faultstatus \
151	fcmovnu \
152	fxtract \
153	looper \
154	jrcxz \
155	shrld \
156	slahf-amd64
157if BUILD_LOOPNEL_TESTS
158   check_PROGRAMS += loopnel
159endif
160endif
161
162AM_CFLAGS    += @FLAG_M64@
163AM_CXXFLAGS  += @FLAG_M64@
164AM_CCASFLAGS += @FLAG_M64@
165
166allexec_CFLAGS		= $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
167
168# generic C ones
169amd64locked_CFLAGS	= $(AM_CFLAGS) -O
170bug132918_LDADD		= -lm
171fxtract_CFLAGS		= $(AM_CFLAGS) @FLAG_W_NO_OVERFLOW@
172insn_basic_SOURCES	= insn_basic.def
173insn_basic_LDADD	= -lm
174insn_mmx_SOURCES	= insn_mmx.def
175insn_mmx_LDADD		= -lm
176insn_sse_SOURCES	= insn_sse.def
177insn_sse_LDADD		= -lm
178insn_sse2_SOURCES	= insn_sse2.def
179insn_sse2_LDADD		= -lm
180insn_sse3_SOURCES	= insn_sse3.def
181insn_sse3_LDADD		= -lm
182insn_ssse3_SOURCES	= insn_ssse3.def
183insn_ssse3_LDADD	= -lm
184insn_fpu_SOURCES	= insn_fpu.def
185insn_fpu_LDADD		= -lm
186insn_pclmulqdq_SOURCES  = insn_pclmulqdq.def
187fxtract_LDADD		= -lm
188
189.def.c: $(srcdir)/gen_insn_test.pl
190	$(PERL) $(srcdir)/gen_insn_test.pl < $< > $@
191