blob: b1a5b68fea812dec137c6bf3872d37f9b7636c44 [file] [log] [blame]
sewardj8c1b7c42005-05-11 11:21:29 +00001
njn53044572009-02-19 09:52:05 +00002include $(top_srcdir)/Makefile.tool-tests.am
3
sewardj8c1b7c42005-05-11 11:21:29 +00004noinst_SCRIPTS = filter_cpuid filter_stderr filter_int gen_insn_test.pl
5
6CLEANFILES = $(addsuffix .c,$(INSN_TESTS))
sewardj8c1b7c42005-05-11 11:21:29 +00007
sewardjfa18a262007-03-22 12:13:13 +00008INSN_TESTS = insn_basic insn_mmx insn_sse insn_sse2 insn_fpu
9if BUILD_SSE3_TESTS
sewardj03d69002008-02-10 17:46:46 +000010 INSN_TESTS += insn_sse3
sewardjfa18a262007-03-22 12:13:13 +000011endif
sewardj6d6da5b2008-02-09 12:07:40 +000012if BUILD_SSSE3_TESTS
sewardj03d69002008-02-10 17:46:46 +000013 INSN_TESTS += insn_ssse3
sewardj6d6da5b2008-02-09 12:07:40 +000014endif
sewardjfa18a262007-03-22 12:13:13 +000015
16# Explicitly include insn_sse3 even if ! BUILD_SSE3_TESTS,
17# to avoid packaging screwups if 'make dist' is run on a machine
18# which failed the BUILD_SSE3_TESTS test in configure.in.
sewardj8c1b7c42005-05-11 11:21:29 +000019EXTRA_DIST = $(noinst_SCRIPTS) \
sewardj409e73f2006-08-17 01:39:04 +000020 bug127521-64.vgtest bug127521-64.stdout.exp bug127521-64.stderr.exp \
sewardj969d89c2006-08-28 18:53:25 +000021 bug132813-amd64.vgtest bug132813-amd64.stdout.exp \
22 bug132813-amd64.stderr.exp \
sewardj268b2f52007-09-01 18:58:54 +000023 bug137714-amd64.vgtest bug137714-amd64.stdout.exp \
24 bug137714-amd64.stderr.exp \
sewardjcbc4bdf2006-09-11 11:05:26 +000025 bug132918.vgtest bug132918.stderr.exp bug132918.stdout.exp \
sewardjf4f5cd22008-10-30 11:11:40 +000026 bug156404-amd64.vgtest bug156404-amd64.stdout.exp \
27 bug156404-amd64.stderr.exp \
sewardj0e21d1d2006-05-12 20:28:26 +000028 clc.vgtest clc.stdout.exp clc.stderr.exp \
sewardj4a994592006-05-26 00:50:41 +000029 faultstatus.disabled faultstatus.stderr.exp \
sewardj11684282006-03-06 19:36:30 +000030 fcmovnu.vgtest fcmovnu.stderr.exp fcmovnu.stdout.exp \
sewardj8d904ee2006-03-07 01:17:12 +000031 fxtract.vgtest fxtract.stderr.exp fxtract.stdout.exp \
sewardj8c1b7c42005-05-11 11:21:29 +000032 $(addsuffix .stderr.exp,$(INSN_TESTS)) \
33 $(addsuffix .stdout.exp,$(INSN_TESTS)) \
sewardj42a65c92005-07-07 13:20:31 +000034 $(addsuffix .vgtest,$(INSN_TESTS)) \
sewardjfa18a262007-03-22 12:13:13 +000035 insn_sse3.stdout.exp insn_sse3.stderr.exp insn_sse3.vgtest \
sewardj8231f322008-02-09 01:55:52 +000036 insn_ssse3.stdout.exp insn_ssse3.stderr.exp insn_ssse3.vgtest \
sewardj7528bd22005-10-05 17:12:23 +000037 jrcxz.stderr.exp jrcxz.stdout.exp jrcxz.vgtest \
sewardjdfaa4962005-08-23 23:52:54 +000038 looper.stderr.exp looper.stdout.exp looper.vgtest \
sewardj1f84dbc2006-12-13 14:35:03 +000039 nibz_bennee_mmap.stderr.exp nibz_bennee_mmap.stdout.exp \
sewardjc73fe102006-08-16 01:50:55 +000040 nibz_bennee_mmap.vgtest \
sewardj0d9a3ef2007-01-19 20:09:21 +000041 rcl-amd64.vgtest rcl-amd64.stdout.exp rcl-amd64.stderr.exp \
sewardj0657e1c2007-11-06 22:00:35 +000042 redundantRexW.vgtest redundantRexW.stdout.exp \
43 redundantRexW.stderr.exp \
sewardj1f84dbc2006-12-13 14:35:03 +000044 smc1.stderr.exp smc1.stdout.exp smc1.vgtest \
sewardj1f456de2007-04-07 12:15:44 +000045 shrld.stderr.exp shrld.stdout.exp shrld.vgtest \
sewardj8231f322008-02-09 01:55:52 +000046 ssse3_misaligned.stderr.exp ssse3_misaligned.stdout.exp \
47 ssse3_misaligned.vgtest \
sewardj03d69002008-02-10 17:46:46 +000048 ssse3_misaligned.c \
sewardj1f456de2007-04-07 12:15:44 +000049 slahf-amd64.stderr.exp slahf-amd64.stdout.exp \
sewardj0ab55482007-11-09 23:30:51 +000050 slahf-amd64.vgtest
sewardj7559dbc2005-11-04 20:18:27 +000051
sewardj8c1b7c42005-05-11 11:21:29 +000052check_PROGRAMS = \
sewardj268b2f52007-09-01 18:58:54 +000053 bug127521-64 bug132813-amd64 bug137714-amd64 bug132918 \
sewardjf4f5cd22008-10-30 11:11:40 +000054 bug156404-amd64 \
sewardj0e21d1d2006-05-12 20:28:26 +000055 clc \
sewardj0d9a3ef2007-01-19 20:09:21 +000056 faultstatus fcmovnu fxtract $(INSN_TESTS) looper jrcxz \
sewardj0657e1c2007-11-06 22:00:35 +000057 rcl-amd64 \
58 redundantRexW \
sewardj6d6da5b2008-02-09 12:07:40 +000059 smc1 shrld \
sewardj1f456de2007-04-07 12:15:44 +000060 nibz_bennee_mmap \
61 slahf-amd64
sewardj03d69002008-02-10 17:46:46 +000062if BUILD_SSSE3_TESTS
63 check_PROGRAMS += ssse3_misaligned
64endif
sewardj8c1b7c42005-05-11 11:21:29 +000065
njn53044572009-02-19 09:52:05 +000066AM_CFLAGS += @FLAG_M64@
67AM_CXXFLAGS += @FLAG_M64@
68AM_CCASFLAGS = @FLAG_M64@
sewardj8c1b7c42005-05-11 11:21:29 +000069
70# generic C ones
sewardjcbc4bdf2006-09-11 11:05:26 +000071bug132918_LDADD = -lm
tom1565bce2005-11-04 17:07:24 +000072insn_basic_SOURCES = insn_basic.def
73insn_basic_LDADD = -lm
sewardj8c1b7c42005-05-11 11:21:29 +000074insn_mmx_SOURCES = insn_mmx.def
75insn_mmx_LDADD = -lm
76insn_sse_SOURCES = insn_sse.def
77insn_sse_LDADD = -lm
78insn_sse2_SOURCES = insn_sse2.def
79insn_sse2_LDADD = -lm
sewardjc49ae752006-08-05 12:22:52 +000080insn_sse3_SOURCES = insn_sse3.def
81insn_sse3_LDADD = -lm
sewardj8231f322008-02-09 01:55:52 +000082insn_ssse3_SOURCES = insn_ssse3.def
83insn_ssse3_LDADD = -lm
sewardj9be19da2005-05-12 19:17:36 +000084insn_fpu_SOURCES = insn_fpu.def
85insn_fpu_LDADD = -lm
sewardj8d904ee2006-03-07 01:17:12 +000086fxtract_LDADD = -lm
sewardj8c1b7c42005-05-11 11:21:29 +000087
88.def.c: $(srcdir)/gen_insn_test.pl
89 $(PERL) $(srcdir)/gen_insn_test.pl < $< > $@