]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/testsuite/mips64r5900-elf/Makefile.in
Fix sign extension on 32 bit add/sub instructions.
[thirdparty/binutils-gdb.git] / sim / testsuite / mips64r5900-elf / Makefile.in
1 # Makefile for regression testing the GNU debugger.
2 # Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
3
4 # This file is part of GDB.
5
6 # GDB is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
10
11 # GDB is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20 VPATH = @srcdir@
21 srcdir = @srcdir@
22 srcroot = $(srcdir)/..
23
24 prefix = @prefix@
25 exec_prefix = @exec_prefix@
26
27 host_alias = @host_alias@
28 target_alias = @target_alias@
29 program_transform_name = @program_transform_name@
30 build_canonical = @build@
31 host_canonical = @host@
32 target_canonical = @target@
33 target_cpu = @target_cpu@
34
35
36 SHELL = /bin/sh
37 SUBDIRS = @subdirs@
38 RPATH_ENVVAR = @RPATH_ENVVAR@
39
40 EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
41 echo $${rootme}/../../expect/expect ; \
42 else echo expect ; fi`
43
44 RUNTEST = $(RUNTEST_FOR_TARGET)
45
46 RUNTESTFLAGS =
47
48 RUNTEST_FOR_TARGET = `\
49 if [ -f $${srcdir}/../../../dejagnu/runtest ]; then \
50 echo $${srcdir}/../../../dejagnu/runtest; \
51 else \
52 if [ "$(host_canonical)" = "$(target_canonical)" ]; then \
53 echo runtest; \
54 else \
55 t='$(program_transform_name)'; echo runtest | sed -e '' $$t; \
56 fi; \
57 fi`
58
59
60 AS_FOR_TARGET = `\
61 if [ -x ../../../gas/as-new ]; then \
62 echo ../../../gas/as-new ; \
63 else \
64 echo $(target_alias)-as ; \
65 fi`
66
67 LD_FOR_TARGET = `\
68 if [ -x ../../../ld/ld-new ]; then \
69 echo ../../../ld/ld-new ; \
70 else \
71 echo $(target_alias)-ld ; \
72 fi`
73
74 RUN_FOR_TARGET = `\
75 if [ -x ../../../sim/mips/run ]; then \
76 echo ../../../sim/mips/run ; \
77 else \
78 echo $(target_alias)-run ; \
79 fi`
80
81 TESTS = \
82 hello.hi \
83 exit47.ko \
84 \
85 f-abs.ok \
86 f-add.ok \
87 f-adda.ok \
88 $(f-bc1f.ok) \
89 $(f-bc1fl.ok) \
90 $(f-bc1t.ok) \
91 $(f-bc1tl.ok) \
92 f-cond.ok \
93 $(f-cfc1.ok) \
94 $(f-ctc1.ok) \
95 f-cvt.ok \
96 f-div.ok \
97 $(f-lwc1.ok) \
98 f-madd.ok \
99 f-madda.ok \
100 f-max.ok \
101 $(f-mfc1.ok) \
102 f-min.ok \
103 f-msub.ok \
104 f-msuba.ok \
105 $(f-mtc1.ok) \
106 f-mul.ok \
107 f-mula.ok \
108 f-neg.ok \
109 f-rsqrt.ok \
110 f-sqrt.ok \
111 f-sub.ok \
112 f-suba.ok \
113 $(f-swc1.ok) \
114 \
115 t-dadd.ok \
116 t-ddiv.ok \
117 t-div.ok \
118 t-div1.ok \
119 t-divu.ok \
120 t-divu1.ok \
121 t-sub.ok \
122 \
123 t-mtsa.ok \
124 t-pabsh.ok \
125 t-pabsw.ok \
126 t-paddb.ok \
127 t-paddsb.ok \
128 t-paddsh.ok \
129 t-paddsw.ok \
130 t-paddub.ok \
131 t-padduh.ok \
132 t-padduw.ok \
133 t-pcpyh.ok \
134 t-pdivbw.ok \
135 t-pdivuw.ok \
136 t-pdivw.ok \
137 t-pexcw.ok \
138 t-pexoh.ok \
139 t-pext5.ok \
140 t-pextlb.ok \
141 t-pextlh.ok \
142 t-pextlw.ok \
143 t-pextub.ok \
144 t-pextuh.ok \
145 t-pextuw.ok \
146 t-phmaddh.ok \
147 t-phmsubh.ok \
148 t-pinth.ok \
149 t-pintoh.ok \
150 t-pmaddh.ok \
151 t-pmadduw.ok \
152 t-pmaddw.ok \
153 t-pmfhl-lh.ok \
154 t-pmfhl-lw.ok \
155 t-pmfhl-sh.ok \
156 t-pmfhl-slw.ok \
157 t-pmfhl-uw.ok \
158 t-pmsubh.ok \
159 t-pmthl-lw.ok \
160 t-pmulth.ok \
161 t-pmultuw.ok \
162 t-pmultw.ok \
163 t-ppac5.ok \
164 t-ppacb.ok \
165 t-ppach.ok \
166 t-ppacw.ok \
167 t-prot3w.ok \
168 t-psllvw.ok \
169 t-psrlvw.ok \
170 t-psravw.ok \
171 t-psubsb.ok \
172 t-psubsh.ok \
173 t-psubsw.ok \
174 t-psubub.ok \
175 t-psubuh.ok \
176 t-psubuw.ok \
177 t-psubw.ok \
178 t-qfsrv.ok \
179 t-sdl.ok \
180 \
181 trap.ok \
182
183 check: sanity $(TESTS)
184 sanity:
185 @eval echo AS_FOR_TARGET = $(AS_FOR_TARGET)
186 @eval echo LD_FOR_TARGET = $(LD_FOR_TARGET)
187 @eval echo RUN_FOR_TARGET = $(RUN_FOR_TARGET)
188
189
190
191 # Rules for running all the tests, put into three types
192 # exit success, exit fail, print "Hello World"
193
194 .u.log:
195 uudecode $*.u
196 $(RUN_FOR_TARGET) $* > $*.log
197
198
199 # Rules for running the tests
200
201 .SUFFIXES: .u .uue .ok .ok .run .hi .ko .ko
202 .run.ok:
203 rm -f tmp-$* $*.ok
204 ulimit -t 5 ; $(RUN_FOR_TARGET) $*.run > tmp-$*
205 mv tmp-$* $*.ok
206 .run.hi:
207 rm -f tmp-$* $*.hi diff-$*
208 ulimit -t 5 ; $(RUN_FOR_TARGET) $*.run > tmp-$*
209 echo 'Hello World!' | diff - tmp-$* > diff-$*
210 cat tmp-$* diff-$* > $*.hi
211 .run.ko:
212 rm -f tmp-$* $*.ko
213 set +e ; \
214 ulimit -t 5 ; $(RUN_FOR_TARGET) $*.run > tmp-$* ; \
215 if [ $$? -eq 47 ] ; then \
216 exit 0 ; \
217 else \
218 exit 1 ; \
219 fi
220 mv tmp-$* $*.ko
221
222
223 # Rules for building all the tests and packing them into
224 # uuencoded files.
225
226 .run.u:
227 uuencode < $*.run $*.run > $*.u
228 @echo "Move $*.u $*.uue"
229 .uue.run:
230 uudecode $(srcdir)/$*.uue
231 .o.run:
232 $(LD_FOR_TARGET) -Ttext 0xa0020000 -o $*.run $*.o
233 .s.o:
234 $(AS_FOR_TARGET) -I $(srcdir) $(srcdir)/$*.s -o $*.o
235
236
237 #
238 # Standard
239 #
240 clean mostlyclean:
241 -rm -f *~ core *.o a.out *.x *.grt *.run tmp-* diff-*
242 rm -f $(TESTS)
243 # if [ x"${SUBDIRS}" != x ] ; then \
244 # for dir in ${SUBDIRS}; \
245 # do \
246 # echo "$$dir:"; \
247 # if [ -d $$dir ]; then \
248 # (cd $$dir; $(MAKE) clean); \
249 # fi; \
250 # done ; \
251 # else true; fi
252
253 distclean maintainer-clean realclean: clean
254 -rm -f *~ core
255 -rm -f Makefile config.status *-init.exp
256 -rm -fr *.log summary detail *.plog *.sum *.psum site.*
257 # if [ x"${SUBDIRS}" != x ] ; then \
258 # for dir in ${SUBDIRS}; \
259 # do \
260 # echo "$$dir:"; \
261 # if [ -d $$dir ]; then \
262 # (cd $$dir; $(MAKE) distclean); \
263 # fi; \
264 # done ; \
265 # else true; fi
266
267 Makefile : Makefile.in config.status
268 $(SHELL) config.status
269
270 config.status: configure
271 $(SHELL) config.status --recheck