summaryrefslogtreecommitdiff
path: root/assembler/Makefile.am
blob: 49422e02f737fd2c9471490c7149dfb9b2291735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
SUBDIRS = doc test

noinst_LTLIBRARIES = libbrw.la

bin_PROGRAMS = intel-gen4asm intel-gen4disasm

libbrw_la_SOURCES =		\
	brw_compat.h		\
	brw_context.c		\
	brw_context.h		\
	brw_disasm.c		\
	brw_defines.h		\
	brw_eu.h		\
	brw_eu.c		\
	brw_eu_compact.c	\
	brw_eu_debug.c		\
	brw_eu_emit.c		\
	brw_eu_util.c		\
	brw_reg.h		\
	brw_structs.h		\
	gen8_disasm.c		\
	gen8_instruction.h	\
	gen8_instruction.c	\
	ralloc.c		\
	ralloc.h		\
	$(NULL)

AM_YFLAGS = -d --warnings=all
AM_CFLAGS= $(ASSEMBLER_WARN_CFLAGS)

LEX = flex -i
BUILT_SOURCES = gram.h gram.c lex.c
gram.h: gram.c

intel_gen4asm_SOURCES =	\
	gen4asm.h	\
	gram.y		\
	lex.l		\
	main.c		\
	$(NULL)

intel_gen4asm_LDADD = libbrw.la

intel_gen4disasm_SOURCES =  disasm-main.c
intel_gen4disasm_LDADD = libbrw.la

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = intel-gen4asm.pc

check_SCRIPTS = test/run-test.sh

TESTS = \
	test/mov \
	test/frc \
	test/regtype \
	test/rndd \
	test/rndu \
	test/rnde \
	test/rnde-intsrc \
	test/rndz \
	test/lzd \
	test/not \
	test/immediate \
	$(NULL)

# Tests that are expected to fail because they contain some inccorect code.
XFAIL_TESTS =

# Those tests were already failing when the assembler was imported from
# the intel-gen4asm git repository:
#   http://cgit.freedesktop.org/xorg/app/intel-gen4asm/
# We disable them "for now" as a workaround to be able to release i-g-t
disabled_tests = \
	test/declare \
	test/jmpi \
	test/if \
	test/iff \
	test/while \
	test/else \
	test/break \
	test/cont \
	test/halt \
	test/wait \
	test/endif \
	$(NULL)

disabled_xfail_tests = \
	test/rnde-intsrc \
	$(NULL)

TESTDATA = \
	test/mov.expected \
	test/mov.g4a \
	test/frc.expected \
	test/frc.g4a \
	test/rndd.expected \
	test/rndd.g4a \
	test/rndu.expected \
	test/rndu.g4a \
	test/rnde.expected \
	test/rnde.g4a \
	test/rnde-intsrc.expected \
	test/rnde-intsrc.g4a \
	test/rndz.expected \
	test/rndz.g4a \
	test/lzd.expected \
	test/lzd.g4a \
	test/not.expected \
	test/not.g4a \
	test/jmpi.expected \
	test/jmpi.g4a \
	test/if.expected \
	test/if.g4a \
	test/iff.expected \
	test/iff.g4a \
	test/while.expected \
	test/while.g4a \
	test/else.expected \
	test/else.g4a \
	test/break.expected \
	test/break.g4a \
	test/cont.expected \
	test/cont.g4a \
	test/halt.expected \
	test/halt.g4a \
	test/wait.expected \
	test/wait.g4a \
	test/endif.expected \
	test/endif.g4a \
	test/declare.expected \
	test/declare.g4a \
	test/immediate.g4a \
	test/immediate.expected \
	$(NULL)

test_EXTRA_DIST = \
	${TESTDATA} \
	test/run-test.sh \
	$(NULL)

$(TESTS): test/run-test.sh
	sed "s|TEST|$@|g" ${srcdir}/test/run-test.sh > $@
	chmod +x $@

test_CLEANFILES = \
	test/*.out \
	${TESTS} \
	$(NULL)

CLEANFILES = $(BUILT_SOURCES) \
	     $(test_CLEANFILES) \
	     $(NULL)

EXTRA_DIST = \
	README \
	TODO \
	meson.build \
	intel-gen4asm.pc.in \
	$(test_EXTRA_DIST) \
	$(NULL)