sewardj | 8c1b7c4 | 2005-05-11 11:21:29 +0000 | [diff] [blame] | 1 | |
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame^] | 2 | include $(top_srcdir)/Makefile.tool-tests.am |
| 3 | |
sewardj | 8c1b7c4 | 2005-05-11 11:21:29 +0000 | [diff] [blame] | 4 | noinst_SCRIPTS = filter_cpuid filter_stderr filter_int gen_insn_test.pl |
| 5 | |
| 6 | CLEANFILES = $(addsuffix .c,$(INSN_TESTS)) |
sewardj | 8c1b7c4 | 2005-05-11 11:21:29 +0000 | [diff] [blame] | 7 | |
sewardj | fa18a26 | 2007-03-22 12:13:13 +0000 | [diff] [blame] | 8 | INSN_TESTS = insn_basic insn_mmx insn_sse insn_sse2 insn_fpu |
| 9 | if BUILD_SSE3_TESTS |
sewardj | 03d6900 | 2008-02-10 17:46:46 +0000 | [diff] [blame] | 10 | INSN_TESTS += insn_sse3 |
sewardj | fa18a26 | 2007-03-22 12:13:13 +0000 | [diff] [blame] | 11 | endif |
sewardj | 6d6da5b | 2008-02-09 12:07:40 +0000 | [diff] [blame] | 12 | if BUILD_SSSE3_TESTS |
sewardj | 03d6900 | 2008-02-10 17:46:46 +0000 | [diff] [blame] | 13 | INSN_TESTS += insn_ssse3 |
sewardj | 6d6da5b | 2008-02-09 12:07:40 +0000 | [diff] [blame] | 14 | endif |
sewardj | fa18a26 | 2007-03-22 12:13:13 +0000 | [diff] [blame] | 15 | |
| 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. |
sewardj | 8c1b7c4 | 2005-05-11 11:21:29 +0000 | [diff] [blame] | 19 | EXTRA_DIST = $(noinst_SCRIPTS) \ |
sewardj | 409e73f | 2006-08-17 01:39:04 +0000 | [diff] [blame] | 20 | bug127521-64.vgtest bug127521-64.stdout.exp bug127521-64.stderr.exp \ |
sewardj | 969d89c | 2006-08-28 18:53:25 +0000 | [diff] [blame] | 21 | bug132813-amd64.vgtest bug132813-amd64.stdout.exp \ |
| 22 | bug132813-amd64.stderr.exp \ |
sewardj | 268b2f5 | 2007-09-01 18:58:54 +0000 | [diff] [blame] | 23 | bug137714-amd64.vgtest bug137714-amd64.stdout.exp \ |
| 24 | bug137714-amd64.stderr.exp \ |
sewardj | cbc4bdf | 2006-09-11 11:05:26 +0000 | [diff] [blame] | 25 | bug132918.vgtest bug132918.stderr.exp bug132918.stdout.exp \ |
sewardj | f4f5cd2 | 2008-10-30 11:11:40 +0000 | [diff] [blame] | 26 | bug156404-amd64.vgtest bug156404-amd64.stdout.exp \ |
| 27 | bug156404-amd64.stderr.exp \ |
sewardj | 0e21d1d | 2006-05-12 20:28:26 +0000 | [diff] [blame] | 28 | clc.vgtest clc.stdout.exp clc.stderr.exp \ |
sewardj | 4a99459 | 2006-05-26 00:50:41 +0000 | [diff] [blame] | 29 | faultstatus.disabled faultstatus.stderr.exp \ |
sewardj | 1168428 | 2006-03-06 19:36:30 +0000 | [diff] [blame] | 30 | fcmovnu.vgtest fcmovnu.stderr.exp fcmovnu.stdout.exp \ |
sewardj | 8d904ee | 2006-03-07 01:17:12 +0000 | [diff] [blame] | 31 | fxtract.vgtest fxtract.stderr.exp fxtract.stdout.exp \ |
sewardj | 8c1b7c4 | 2005-05-11 11:21:29 +0000 | [diff] [blame] | 32 | $(addsuffix .stderr.exp,$(INSN_TESTS)) \ |
| 33 | $(addsuffix .stdout.exp,$(INSN_TESTS)) \ |
sewardj | 42a65c9 | 2005-07-07 13:20:31 +0000 | [diff] [blame] | 34 | $(addsuffix .vgtest,$(INSN_TESTS)) \ |
sewardj | fa18a26 | 2007-03-22 12:13:13 +0000 | [diff] [blame] | 35 | insn_sse3.stdout.exp insn_sse3.stderr.exp insn_sse3.vgtest \ |
sewardj | 8231f32 | 2008-02-09 01:55:52 +0000 | [diff] [blame] | 36 | insn_ssse3.stdout.exp insn_ssse3.stderr.exp insn_ssse3.vgtest \ |
sewardj | 7528bd2 | 2005-10-05 17:12:23 +0000 | [diff] [blame] | 37 | jrcxz.stderr.exp jrcxz.stdout.exp jrcxz.vgtest \ |
sewardj | dfaa496 | 2005-08-23 23:52:54 +0000 | [diff] [blame] | 38 | looper.stderr.exp looper.stdout.exp looper.vgtest \ |
sewardj | 1f84dbc | 2006-12-13 14:35:03 +0000 | [diff] [blame] | 39 | nibz_bennee_mmap.stderr.exp nibz_bennee_mmap.stdout.exp \ |
sewardj | c73fe10 | 2006-08-16 01:50:55 +0000 | [diff] [blame] | 40 | nibz_bennee_mmap.vgtest \ |
sewardj | 0d9a3ef | 2007-01-19 20:09:21 +0000 | [diff] [blame] | 41 | rcl-amd64.vgtest rcl-amd64.stdout.exp rcl-amd64.stderr.exp \ |
sewardj | 0657e1c | 2007-11-06 22:00:35 +0000 | [diff] [blame] | 42 | redundantRexW.vgtest redundantRexW.stdout.exp \ |
| 43 | redundantRexW.stderr.exp \ |
sewardj | 1f84dbc | 2006-12-13 14:35:03 +0000 | [diff] [blame] | 44 | smc1.stderr.exp smc1.stdout.exp smc1.vgtest \ |
sewardj | 1f456de | 2007-04-07 12:15:44 +0000 | [diff] [blame] | 45 | shrld.stderr.exp shrld.stdout.exp shrld.vgtest \ |
sewardj | 8231f32 | 2008-02-09 01:55:52 +0000 | [diff] [blame] | 46 | ssse3_misaligned.stderr.exp ssse3_misaligned.stdout.exp \ |
| 47 | ssse3_misaligned.vgtest \ |
sewardj | 03d6900 | 2008-02-10 17:46:46 +0000 | [diff] [blame] | 48 | ssse3_misaligned.c \ |
sewardj | 1f456de | 2007-04-07 12:15:44 +0000 | [diff] [blame] | 49 | slahf-amd64.stderr.exp slahf-amd64.stdout.exp \ |
sewardj | 0ab5548 | 2007-11-09 23:30:51 +0000 | [diff] [blame] | 50 | slahf-amd64.vgtest |
sewardj | 7559dbc | 2005-11-04 20:18:27 +0000 | [diff] [blame] | 51 | |
sewardj | 8c1b7c4 | 2005-05-11 11:21:29 +0000 | [diff] [blame] | 52 | check_PROGRAMS = \ |
sewardj | 268b2f5 | 2007-09-01 18:58:54 +0000 | [diff] [blame] | 53 | bug127521-64 bug132813-amd64 bug137714-amd64 bug132918 \ |
sewardj | f4f5cd2 | 2008-10-30 11:11:40 +0000 | [diff] [blame] | 54 | bug156404-amd64 \ |
sewardj | 0e21d1d | 2006-05-12 20:28:26 +0000 | [diff] [blame] | 55 | clc \ |
sewardj | 0d9a3ef | 2007-01-19 20:09:21 +0000 | [diff] [blame] | 56 | faultstatus fcmovnu fxtract $(INSN_TESTS) looper jrcxz \ |
sewardj | 0657e1c | 2007-11-06 22:00:35 +0000 | [diff] [blame] | 57 | rcl-amd64 \ |
| 58 | redundantRexW \ |
sewardj | 6d6da5b | 2008-02-09 12:07:40 +0000 | [diff] [blame] | 59 | smc1 shrld \ |
sewardj | 1f456de | 2007-04-07 12:15:44 +0000 | [diff] [blame] | 60 | nibz_bennee_mmap \ |
| 61 | slahf-amd64 |
sewardj | 03d6900 | 2008-02-10 17:46:46 +0000 | [diff] [blame] | 62 | if BUILD_SSSE3_TESTS |
| 63 | check_PROGRAMS += ssse3_misaligned |
| 64 | endif |
sewardj | 8c1b7c4 | 2005-05-11 11:21:29 +0000 | [diff] [blame] | 65 | |
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame^] | 66 | AM_CFLAGS += @FLAG_M64@ |
| 67 | AM_CXXFLAGS += @FLAG_M64@ |
| 68 | AM_CCASFLAGS = @FLAG_M64@ |
sewardj | 8c1b7c4 | 2005-05-11 11:21:29 +0000 | [diff] [blame] | 69 | |
| 70 | # generic C ones |
sewardj | cbc4bdf | 2006-09-11 11:05:26 +0000 | [diff] [blame] | 71 | bug132918_LDADD = -lm |
tom | 1565bce | 2005-11-04 17:07:24 +0000 | [diff] [blame] | 72 | insn_basic_SOURCES = insn_basic.def |
| 73 | insn_basic_LDADD = -lm |
sewardj | 8c1b7c4 | 2005-05-11 11:21:29 +0000 | [diff] [blame] | 74 | insn_mmx_SOURCES = insn_mmx.def |
| 75 | insn_mmx_LDADD = -lm |
| 76 | insn_sse_SOURCES = insn_sse.def |
| 77 | insn_sse_LDADD = -lm |
| 78 | insn_sse2_SOURCES = insn_sse2.def |
| 79 | insn_sse2_LDADD = -lm |
sewardj | c49ae75 | 2006-08-05 12:22:52 +0000 | [diff] [blame] | 80 | insn_sse3_SOURCES = insn_sse3.def |
| 81 | insn_sse3_LDADD = -lm |
sewardj | 8231f32 | 2008-02-09 01:55:52 +0000 | [diff] [blame] | 82 | insn_ssse3_SOURCES = insn_ssse3.def |
| 83 | insn_ssse3_LDADD = -lm |
sewardj | 9be19da | 2005-05-12 19:17:36 +0000 | [diff] [blame] | 84 | insn_fpu_SOURCES = insn_fpu.def |
| 85 | insn_fpu_LDADD = -lm |
sewardj | 8d904ee | 2006-03-07 01:17:12 +0000 | [diff] [blame] | 86 | fxtract_LDADD = -lm |
sewardj | 8c1b7c4 | 2005-05-11 11:21:29 +0000 | [diff] [blame] | 87 | |
| 88 | .def.c: $(srcdir)/gen_insn_test.pl |
| 89 | $(PERL) $(srcdir)/gen_insn_test.pl < $< > $@ |