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