]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/testsuite/gas/mips/mips.exp
* gas/mips/micromips@loc-swap-2.d: Correct test case.
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / mips / mips.exp
CommitLineData
252b5132
RH
1#
2# Some generic MIPS tests
3#
d9e138e2 4
5915a74a
CD
5# When adding a new test to this file, try to do the following things:
6#
7# * If testing assembly and disassembly of code, don't forget to test
8# the actual bit encodings of the instructions (using the
9# --show-raw-insn flag to objdump).
10#
11# * Try to run the test for as many architectures as appropriate,
12# using the "run_dump_test_arches" or "run_list_test_arches" functions,
13# along with the output from a call to "mips_arch_list_matching."
14#
15# * Be sure to compare the test output before and after your testsuite
16# changes, to verify that existing and new tests were run as expected.
17# Look for expect ERROR messages in the testsuite .log file to make sure
18# the new expect code did not contain errors.
19
20# To add support for a new CPU to this file, add an appropriate entry
21# to the sequence of "mips_arch_create" function calls below, and test
22# the result. The new CPU should automatically be used when running
23# various tests. If the new CPU is the default CPU for any tool
24# targets, make sure the call to "mips_arch_create" reflects that fact.
25
26
51124b6c
CD
27# "LOSE" marks information about tests which fail at a particular point
28# in time, but which are not XFAILed. Either they used to pass
29# and indicate either regressions or the need to tweak the tests to keep
30# up the with code, or they are new tests and it is unknown whether or not
31# they should pass as-is for the given object formats.
32
5915a74a
CD
33
34# The functions below create and manipulate an "architecture data
35# array" which contains entries for each MIPS architecture (or CPU)
36# known to these tests. The array contains the following information
37# for each architecture, indexed by the name of the architecture
38# described by the entry:
39#
40# displayname: The name of the entry to be used for pretty-printing.
41#
42# gprsize: The size in bits of General Purpose Registers provided by
43# the architecture (must be 32 or 64).
44#
45# props: A list of text strings which are associated with the
46# architecture. These include the architecture name as well as
47# information about what instructions the CPU supports. When matching
48# based on properties, an additional property is added to the normal
49# property list, "gpr<gprsize>" so that tests can match CPUs which
50# have GPRs of a specific size. The following properties are most
51# useful when matching properties for generic (i.e., not CPU-specific)
52# tests:
53#
54# mips1, mips2, mips3, mips4, mips5, mips32, mips64
55# The architecture includes the instructions defined
56# by that MIPS ISA.
57#
8d367dd5
MR
58# fpisa3, fpisa4, fpisa5
59# The architecture includes the floating-point
60# instructions defined by that MIPS ISA.
61#
af22f5b2
CD
62# gpr_ilocks
63# The architecture interlocks GPRs accesses. (That is,
64# there are no load delay slots.)
65#
5915a74a
CD
66# mips3d The architecture includes the MIPS-3D ASE.
67#
68# ror The architecture includes hardware rotate instructions.
69#
70# gpr32, gpr64
71# The architecture provides 32- or 64-bit General Purpose
72# Registers.
73#
74# as_flags: The assembler flags used when assembling tests for this
75# architecture.
76#
77# objdump_flags: The objdump flags used when disassembling tests for
78# this architecture.
79#
80# Most entries in the architecture array will have values in all of
81# the fields above. One entry, "default" represents the default CPU
82# based on the target of the assembler being built. If always has
83# empty "as_flags" and "objdump_flags."
84
4d8728e1
CD
85# mips_arch_init
86#
87# This function initializes the architecture data array ("mips_arches")
88# to be empty.
89proc mips_arch_init {} {
90 global mips_arches
74cb52a6 91
95d4c932 92 # Catch because the variable won't be set the first time through.
74cb52a6 93 catch {unset mips_arches}
4d8728e1
CD
94}
95
5915a74a
CD
96# mips_arch_create ARCH GPRSIZE EXTENDS PROPS AS_FLAGS OBJDUMP_FLAGS \
97# (optional:) DEFAULT_FOR_TARGETS
98#
99# This function creates a new entry in the architecture data array,
100# for the architecture or CPU named ARCH, and fills in the entry
101# according to the rest of the arguments.
102#
103# The new entry's property list is initialized to contain ARCH, any
104# properties specified by PROPS, and the properties associated with
105# the entry specified by EXTENDS. (The new architecture is considered
106# to extend the capabilities provided by that architecture.)
107#
108# If DEFAULT_FOR_TARGETS is specified, it is a list of targets for which
109# this architecture is the default architecture. If "istarget" returns
110# true for any of the targets in the list, a "default" entry will be
111# added to the architecture array which indicates that ARCH is the default
112# architecture.
113proc mips_arch_create {arch gprsize extends props as_flags objdump_flags
114 {default_for_targets {}}} {
115 global mips_arches
116
117 if { [info exists mips_arches($arch)] } {
118 error "mips_arch_create: arch \"$arch\" already exists"
119 }
120 if { $gprsize != 32 && $gprsize != 64 } {
121 error "mips_arch_create: invalid GPR size $gprsize"
122 }
123
124 set archdata(displayname) $arch
125 set archdata(gprsize) $gprsize
126 set archdata(as_flags) $as_flags
127 set archdata(objdump_flags) $objdump_flags
128 set archdata(props) $arch
129 eval lappend archdata(props) $props
130 if { [string length $extends] != 0 } {
131 eval lappend archdata(props) [mips_arch_properties $extends 0]
132 }
133
134 set mips_arches($arch) [array get archdata]
135
136 # Set as default if appropriate.
137 foreach target $default_for_targets {
138 if { [istarget $target] } {
139 if { [info exists mips_arches(default)] } {
140 error "mips_arch_create: default arch already exists"
141 }
142
143 set archdata(displayname) "default = $arch"
144 set archdata(as_flags) ""
145 set archdata(objdump_flags) ""
146
147 set mips_arches(default) [array get archdata]
148 break
149 }
150 }
151}
152
30cfc97a
MR
153# mips_arch_destroy ARCH
154#
155# The opposite of the above. This function removes an entry from
156# the architecture data array, for the architecture or CPU named ARCH.
157
158proc mips_arch_destroy {arch} {
159 global mips_arches
160
161 if { [info exists mips_arches($arch)] } {
162 unset mips_arches($arch)
163 }
164}
165
5915a74a
CD
166# mips_arch_list_all
167#
168# This function returns the list of all names of entries in the
169# architecture data array (including the default entry, if a default
170# is known).
171proc mips_arch_list_all {} {
172 global mips_arches
173 return [lsort -dictionary [array names mips_arches]]
174}
175
176# mips_arch_data ARCH
177#
178# This function returns the information associated with ARCH
179# in the architecture data array, in "array get" form.
180proc mips_arch_data {arch} {
181 global mips_arches
182
183 if { ! [info exists mips_arches($arch)] } {
184 error "mips_arch_data: unknown arch \"$arch\""
185 }
186 return $mips_arches($arch)
187}
188
189# mips_arch_displayname ARCH
190#
191# This function returns the printable name associated with ARCH in
192# the architecture data array.
193proc mips_arch_displayname {arch} {
194 array set archdata [mips_arch_data $arch]
195 return $archdata(displayname)
196}
197
198# mips_arch_properties ARCH (optional:) INCLUDE_GPRSIZE
199#
200# This function returns the property list associated with ARCH in the
475a10d0
MR
201# architecture data array, including the "canonical" target name as the
202# first element.
203#
204# If INCLUDE_GPRSIZE is non-zero, an additional "gpr32" or "gpr64"
205# property will be returned as part of the list based on the
206# architecture's GPR size.
5915a74a
CD
207proc mips_arch_properties {arch {include_gprsize 1}} {
208 array set archdata [mips_arch_data $arch]
209 set props $archdata(props)
210 if { $include_gprsize } {
211 lappend props gpr$archdata(gprsize)
212 }
213 return $props
214}
215
216# mips_arch_as_flags ARCH
217#
218# This function returns the assembler flags associated with ARCH in
219# the architecture data array.
220proc mips_arch_as_flags {arch} {
221 array set archdata [mips_arch_data $arch]
222 return $archdata(as_flags)
223}
224
225# mips_arch_objdump_flags ARCH
226#
227# This function returns the objdump disassembly flags associated with
228# ARCH in the architecture data array.
229proc mips_arch_objdump_flags {arch} {
230 array set archdata [mips_arch_data $arch]
231 return $archdata(objdump_flags)
232}
233
234# mips_arch_matches ARCH PROPMATCHLIST
235#
236# This function returns non-zero if ARCH matches the set of properties
237# described by PROPMATCHLIST. Each entry in PROPMATCHLIST can either
238# be the name of a property which must be matched, or "!" followed by
239# the name of a property which must not be matched. ARCH matches
240# PROPMATCHLIST if and only if all of the conditions specified by
241# PROPMATCHLIST are satisfied.
242proc mips_arch_matches {arch propmatchlist} {
243 foreach pm $propmatchlist {
244 if { [string match {!*} $pm] } {
245 # fail if present.
246 set inverted 1
247 set p [string range $pm 1 end]
248 } {
249 # fail if not present.
250 set inverted 0
251 set p $pm
252 }
253
254 set loc [lsearch -exact [mips_arch_properties $arch] $p]
255
256 # required-absent and found, or required-present and not found: fail.
257 if { ($inverted && $loc != -1) || (! $inverted && $loc == -1) } {
258 return 0
259 }
260 }
261 return 1
262}
263
264# mips_arch_list_matching ARGS
265#
266# This function returns a list of all architectures which match
267# the conditions described by its arguments. Its arguments are
268# taken as a list and used as the PROPMATCHLIST in a call to
269# "mips_arch_matches" for each known architecture.
270proc mips_arch_list_matching {args} {
271 set l ""
272 foreach arch [mips_arch_list_all] {
273 # For now, don't match default arch until we know what its
274 # properties actually are.
275 if { [string compare $arch default] == 0
276 && [string length [mips_arch_properties default]] == 0} {
c0b22597 277 continue
5915a74a
CD
278 }
279 if { [mips_arch_matches $arch $args] } {
280 lappend l $arch
281 }
282 }
283 return $l
284}
285
286
287# The functions below facilitate running various types of tests.
288
289# run_dump_test_arch NAME ARCH
290#
291# Invoke "run_dump_test" for test NAME, with extra assembler and
292# disassembler flags to test architecture ARCH.
8b7955ca
MR
293#
294# You can override the expected output for particular architectures
295# and file formats. The possible test names are, in order of preference:
296#
297# 1. CARCH@FORMAT@NAME.d
298# 2. CARCH@NAME.d
299# 3. FORMAT@NAME.d
300# 4. NAME.d
301#
302# where CARCH is the "canonical" name of architecture ARCH as recorded
303# in its associated property list, and where FORMAT is the target's
304# file format (one of "elf", "ecoff" or "aout").
5915a74a 305proc run_dump_test_arch { name arch } {
8b7955ca 306 upvar elf elf ecoff ecoff aout aout
193fa632
MR
307 global subdir srcdir
308
8b7955ca 309 set format [expr { $elf ? "elf" : $ecoff ? "ecoff" : "aout" }]
475a10d0 310 set proparch [lindex [mips_arch_properties $arch 0] 0]
8b7955ca
MR
311 foreach prefix [list ${proparch}@${format}@ ${proparch}@ ${format}@] {
312 set archname ${prefix}${name}
313 if { [file exists "$srcdir/$subdir/${archname}.d"] } {
314 set name $archname
315 break
316 }
193fa632 317 }
5915a74a
CD
318
319 if [catch {run_dump_test $name \
320 "{name {([mips_arch_displayname $arch])}}
321 {objdump {[mips_arch_objdump_flags $arch]}}
322 {as {[mips_arch_as_flags $arch]}}"} rv] {
323 perror "$rv"
324 untested "$subdir/$name ($arch)"
325 }
326}
327
328# run_dump_test_arches NAME ARCH_LIST
329#
330# Invoke "run_dump_test_arch" for test NAME, for each architecture
331# listed in ARCH_LIST.
332proc run_dump_test_arches { name arch_list } {
8b7955ca 333 upvar elf elf ecoff ecoff aout aout
5915a74a
CD
334 foreach arch $arch_list {
335 run_dump_test_arch "$name" "$arch"
336 }
337}
338
5915a74a
CD
339# run_list_test_arch NAME OPTS ARCH
340#
341# Invoke "run_list_test" for test NAME with options OPTS, with extra
342# assembler flags to test architecture ARCH.
343proc run_list_test_arch { name opts arch } {
344 global subdir
345
346 set testname "MIPS $name ([mips_arch_displayname $arch])"
347 if [catch {run_list_test "$name" "$opts [mips_arch_as_flags $arch]" \
348 "$testname"} rv] {
349 perror "$rv"
350 untested "$testname"
351 }
352}
353
354# run_list_test_arches NAME OPTS ARCH_LIST
355#
356# Invoke "run_list_test_arch" for test NAME with options OPTS, for each
357# architecture listed in ARCH_LIST.
358proc run_list_test_arches { name opts arch_list } {
359 foreach arch $arch_list {
360 run_list_test_arch "$name" "$opts" "$arch"
361 }
362}
363
364
365# Create the architecture data array by providing data for all
366# known architectures.
367#
368# Note that several targets pick default CPU based on ABI. We
369# can't easily handle that; do NOT list those targets as defaulting
370# to any architecture.
4d8728e1 371mips_arch_init
5915a74a
CD
372mips_arch_create mips1 32 {} {} \
373 { -march=mips1 -mtune=mips1 } { -mmips:3000 }
af22f5b2 374mips_arch_create mips2 32 mips1 { gpr_ilocks } \
5915a74a 375 { -march=mips2 -mtune=mips2 } { -mmips:6000 }
8d367dd5 376mips_arch_create mips3 64 mips2 { fpisa3 } \
5915a74a 377 { -march=mips3 -mtune=mips3 } { -mmips:4000 }
8d367dd5 378mips_arch_create mips4 64 mips3 { fpisa4 } \
5915a74a 379 { -march=mips4 -mtune=mips4 } { -mmips:8000 }
8d367dd5 380mips_arch_create mips5 64 mips4 { fpisa5 } \
5915a74a
CD
381 { -march=mips5 -mtune=mips5 } { -mmips:mips5 }
382mips_arch_create mips32 32 mips2 {} \
383 { -march=mips32 -mtune=mips32 } { -mmips:isa32 } \
384 { mipsisa32-*-* mipsisa32el-*-* }
8d367dd5 385mips_arch_create mips32r2 32 mips32 { fpisa3 fpisa4 fpisa5 ror } \
af7ee8bf
CD
386 { -march=mips32r2 -mtune=mips32r2 } \
387 { -mmips:isa32r2 } \
388 { mipsisa32r2-*-* mipsisa32r2el-*-* }
5915a74a
CD
389mips_arch_create mips64 64 mips5 { mips32 } \
390 { -march=mips64 -mtune=mips64 } { -mmips:isa64 } \
391 { mipsisa64-*-* mipsisa64el-*-* }
5f74bc13
CD
392mips_arch_create mips64r2 64 mips64 { mips32r2 ror } \
393 { -march=mips64r2 -mtune=mips64r2 } \
394 { -mmips:isa64r2 } \
395 { mipsisa64r2-*-* mipsisa64r2el-*-* }
30cfc97a
MR
396mips_arch_create mips16 32 {} {} \
397 { -march=mips1 -mips16 } { -mmips:16 }
df58fc94
RS
398mips_arch_create micromips 64 mips64r2 {} \
399 { -march=mips64 -mmicromips } {}
5915a74a
CD
400mips_arch_create r3000 32 mips1 {} \
401 { -march=r3000 -mtune=r3000 } { -mmips:3000 }
af22f5b2 402mips_arch_create r3900 32 mips1 { gpr_ilocks } \
5915a74a
CD
403 { -march=r3900 -mtune=r3900 } { -mmips:3900 } \
404 { mipstx39-*-* mipstx39el-*-* }
405mips_arch_create r4000 64 mips3 {} \
406 { -march=r4000 -mtune=r4000 } { -mmips:4000 }
407mips_arch_create vr5400 64 mips4 { ror } \
408 { -march=vr5400 -mtune=vr5400 } { -mmips:5400 }
409mips_arch_create sb1 64 mips64 { mips3d } \
410 { -march=sb1 -mtune=sb1 } { -mmips:sb1 } \
411 { mipsisa64sb1-*-* mipsisa64sb1el-*-* }
61d4e56d
AN
412mips_arch_create octeon 64 mips64r2 {} \
413 { -march=octeon -mtune=octeon } { -mmips:octeon } \
414 { mips64octeon*-*-* }
52b6b6b9
JM
415mips_arch_create xlr 64 mips64 {} \
416 { -march=xlr -mtune=xlr } { -mmips:xlr }
5915a74a 417
5915a74a 418#
0a44bf69
RS
419# And now begin the actual tests! VxWorks uses RELA rather than REL
420# relocations, so most of the generic dump tests will not work there.
5915a74a 421#
0a44bf69
RS
422if { [istarget mips*-*-vxworks*] } {
423 run_dump_test "vxworks1"
424 run_dump_test "vxworks1-xgot"
a284cff1
TS
425 run_dump_test "vxworks1-el"
426 run_dump_test "vxworks1-xgot-el"
0a44bf69 427} elseif { [istarget mips*-*-*] } {
ae948b86
TS
428 set elf [expr [istarget *-*-elf*] || [istarget *-*-irix5*] || [istarget *-*-irix6* ] || [istarget *-*-linux*] || [istarget *-*-netbsd*] ]
429 set ecoff [expr [istarget *-*-ecoff*] || [istarget *-*-ultrix*] || [istarget *-*-irix\[1-4\]*] ]
9fb9af6e 430 set aout [expr [istarget *-*-bsd*] || [istarget *-*-openbsd*] ]
23fce1e3 431 set addr32 [expr [istarget mipstx39*-*-*] || [istarget mips-*-linux*] || [istarget mipsel-*-linux*] || [istarget mips*-*-ecoff]]
5e0116d5 432 set has_newabi [expr [istarget *-*-irix6*] || [istarget mips64*-*-linux*]]
542982e3 433 set no_mips16 [expr !$elf]
df58fc94 434 set no_micromips [expr !$elf]
252b5132 435
4be041b2 436 if { [istarget "mips*-*-*linux*"] || [istarget "mips*-sde-elf*"] } then {
ff8715d0
L
437 set tmips "t"
438 } else {
439 set tmips ""
440 }
0c4ec151 441 if [istarget mips*el-*-*] {
5ef0935e 442 set el "el"
0c4ec151
RS
443 } {
444 set el ""
445 }
30cfc97a
MR
446 if { $no_mips16 } {
447 mips_arch_destroy mips16
448 }
df58fc94
RS
449 if { $no_micromips } {
450 mips_arch_destroy micromips
451 }
23fce1e3 452
5915a74a
CD
453 run_dump_test_arches "abs" [mips_arch_list_matching mips1]
454 run_dump_test_arches "add" [mips_arch_list_matching mips1]
455 run_dump_test_arches "and" [mips_arch_list_matching mips1]
a242dc0d
AN
456 run_dump_test_arches "mips1-fp" [mips_arch_list_matching mips1]
457 run_list_test_arches "mips1-fp" "-32 -msoft-float" \
458 [mips_arch_list_matching mips1]
252b5132
RH
459 run_dump_test "break20"
460 run_dump_test "trap20"
51124b6c
CD
461
462 # LOSE: As of 2002-02-08, "beq" through "bltu" fail for target mips-ecoff.
463 # See http://sources.redhat.com/ml/binutils/2001-10/msg00418.html for
464 # more information. Not sure if the fixes there are correct; should
465 # branches to external labels be allowed for ECOFF?
8404fc53
MR
466 run_dump_test_arches "beq" [mips_arch_list_matching mips1]
467 run_dump_test_arches "bge" [mips_arch_list_matching mips1]
468 run_dump_test_arches "bgeu" [mips_arch_list_matching mips1]
469 run_dump_test_arches "blt" [mips_arch_list_matching mips1]
470 run_dump_test_arches "bltu" [mips_arch_list_matching mips1]
471 run_dump_test_arches "branch-likely" [mips_arch_list_matching mips2]
5915a74a 472 run_dump_test_arches "branch-misc-1" [mips_arch_list_matching mips1]
bad36eac
DJ
473 run_dump_test_arches "branch-misc-2" [mips_arch_list_matching mips1]
474 run_dump_test_arches "branch-misc-2pic" [mips_arch_list_matching mips1]
475 run_dump_test_arches "branch-misc-2-64" [mips_arch_list_matching mips3]
476 run_dump_test_arches "branch-misc-2pic-64" [mips_arch_list_matching mips3]
dc36a61f 477 run_dump_test "branch-misc-3"
f7870c8d 478 run_dump_test "branch-swap"
23fce1e3 479 run_dump_test "div"
51124b6c 480
b892b944
TS
481 if { !$addr32 } {
482 run_dump_test_arches "dli" [mips_arch_list_matching mips3]
483 }
ae948b86 484 if $elf {
5915a74a 485 run_dump_test_arches "elf-jal" [mips_arch_list_matching mips1]
7388e440
L
486 } else {
487 run_dump_test "jal"
488 }
df58fc94
RS
489 run_dump_test_arches "jal-mask-11" [mips_arch_list_matching mips1]
490 run_dump_test_arches "jal-mask-12" [mips_arch_list_matching mips1]
491 run_dump_test_arches "jal-mask-21" [mips_arch_list_matching micromips]
492 run_dump_test_arches "jal-mask-22" [mips_arch_list_matching micromips]
ff239038
CM
493 run_dump_test "eret-1"
494 run_dump_test "eret-2"
495 run_dump_test "eret-3"
df58fc94
RS
496 run_dump_test_arches "24k-branch-delay-1" \
497 [mips_arch_list_matching mips1 !micromips]
17b09558 498 run_dump_test_arches "24k-triple-stores-1" \
8d367dd5 499 [mips_arch_list_matching fpisa5 !octeon !micromips]
df58fc94
RS
500 run_dump_test_arches "24k-triple-stores-2" \
501 [mips_arch_list_matching mips2 !micromips]
502 run_dump_test_arches "24k-triple-stores-3" \
8d367dd5 503 [mips_arch_list_matching mips2 !micromips]
df58fc94
RS
504 run_dump_test_arches "24k-triple-stores-4" \
505 [mips_arch_list_matching mips2 !micromips]
506 run_dump_test_arches "24k-triple-stores-5" \
507 [mips_arch_list_matching mips1 !micromips]
508 run_dump_test_arches "24k-triple-stores-6" \
509 [mips_arch_list_matching mips2 !micromips]
510 run_dump_test_arches "24k-triple-stores-7" \
511 [mips_arch_list_matching mips2 !micromips]
512 run_dump_test_arches "24k-triple-stores-8" \
513 [mips_arch_list_matching mips1 !micromips]
514 run_dump_test_arches "24k-triple-stores-9" \
515 [mips_arch_list_matching mips1 !micromips]
516 run_dump_test_arches "24k-triple-stores-10" \
517 [mips_arch_list_matching mips1 !micromips]
f11e29af
RS
518 if $elf {
519 run_dump_test_arches "24k-triple-stores-11" \
df58fc94 520 [mips_arch_list_matching mips1 !micromips]
f11e29af 521 }
6a32d874 522
4d2ad3b0
MR
523 if $elf {
524 run_dump_test_arches "jal-svr4pic" \
525 [mips_arch_list_matching mips1]
d3fca0b5
MR
526 run_dump_test_arches "jal-svr4pic-noreorder" \
527 [mips_arch_list_matching mips1]
4d2ad3b0 528 }
ae948b86 529 if $elf { run_dump_test "jal-xgot" }
21b99e26 530 run_list_test_arches "jal-range" "-32" [mips_arch_list_matching mips1]
3302cdec 531 if $has_newabi { run_dump_test "jal-newabi" }
252b5132 532 if !$aout { run_dump_test "la" }
ae948b86
TS
533 if $elf { run_dump_test "la-svr4pic" }
534 if $elf { run_dump_test "la-xgot" }
1abe91b1
MR
535 if $elf { run_dump_test "lca-svr4pic" }
536 if $elf { run_dump_test "lca-xgot" }
5915a74a
CD
537 if !$aout {
538 # XXX FIXME: Has mips2 and later insns with mips1 disassemblies.
539 # (Should split and then use appropriate arch lists.)
30cfc97a 540 run_dump_test_arches "lb" [mips_arch_list_matching mips1 !mips2]
5915a74a
CD
541 }
542 if $elf {
30cfc97a
MR
543 run_dump_test_arches "lb-svr4pic" \
544 [mips_arch_list_matching mips1 !gpr_ilocks]
269137b2 545 run_dump_test_arches "lb-svr4pic-ilocks" [mips_arch_list_matching gpr_ilocks]
5915a74a 546 }
ae948b86 547 if $elf {
252b5132
RH
548 # Both versions specify the cpu, so we can run both regardless of
549 # the interlocking in the configured default cpu.
550 run_dump_test "lb-xgot"
551 run_dump_test "lb-xgot-ilocks"
552 }
f22ba854 553 if !$aout {
f3e3843c 554 run_dump_test_arches "ld" [mips_arch_list_matching mips1]
484cf558
MR
555 run_dump_test_arches "ld-forward" \
556 [mips_arch_list_matching mips1]
17f828b3
MR
557 run_dump_test_arches "sd" [mips_arch_list_matching mips1]
558 run_dump_test_arches "sd-forward" \
559 [mips_arch_list_matching mips1]
560 run_dump_test_arches "l_d" [mips_arch_list_matching mips1]
561 run_dump_test_arches "l_d-forward" \
562 [mips_arch_list_matching mips1]
563 run_dump_test_arches "s_d" [mips_arch_list_matching mips1]
564 run_dump_test_arches "s_d-forward" \
565 [mips_arch_list_matching mips1]
566 run_dump_test_arches "ldc1" [mips_arch_list_matching mips2]
567 run_dump_test_arches "ldc1-forward" \
568 [mips_arch_list_matching mips2]
569 run_dump_test_arches "sdc1" [mips_arch_list_matching mips2]
570 run_dump_test_arches "sdc1-forward" \
571 [mips_arch_list_matching mips2]
233c7e41
MR
572 if $has_newabi {
573 run_dump_test_arches "ld-n32" \
574 [mips_arch_list_matching mips3]
484cf558
MR
575 run_dump_test_arches "ld-forward-n32" \
576 [mips_arch_list_matching mips3]
17f828b3
MR
577 run_dump_test_arches "sd-n32" \
578 [mips_arch_list_matching mips3]
579 run_dump_test_arches "sd-forward-n32" \
580 [mips_arch_list_matching mips3]
581 run_dump_test_arches "l_d-n32" \
582 [mips_arch_list_matching mips3]
583 run_dump_test_arches "l_d-forward-n32" \
584 [mips_arch_list_matching mips3]
585 run_dump_test_arches "s_d-n32" \
586 [mips_arch_list_matching mips3]
587 run_dump_test_arches "s_d-forward-n32" \
588 [mips_arch_list_matching mips3]
589 run_dump_test_arches "ldc1-n32" \
590 [mips_arch_list_matching mips3]
591 run_dump_test_arches "ldc1-forward-n32" \
592 [mips_arch_list_matching mips3]
593 run_dump_test_arches "sdc1-n32" \
594 [mips_arch_list_matching mips3]
595 run_dump_test_arches "sdc1-forward-n32" \
596 [mips_arch_list_matching mips3]
233c7e41
MR
597 run_dump_test_arches "ld-n64" \
598 [mips_arch_list_matching mips3]
484cf558
MR
599 run_dump_test_arches "ld-forward-n64" \
600 [mips_arch_list_matching mips3]
17f828b3
MR
601 run_dump_test_arches "sd-n64" \
602 [mips_arch_list_matching mips3]
603 run_dump_test_arches "sd-forward-n64" \
604 [mips_arch_list_matching mips3]
605 run_dump_test_arches "l_d-n64" \
606 [mips_arch_list_matching mips3]
607 run_dump_test_arches "l_d-forward-n64" \
608 [mips_arch_list_matching mips3]
609 run_dump_test_arches "s_d-n64" \
610 [mips_arch_list_matching mips3]
611 run_dump_test_arches "s_d-forward-n64" \
612 [mips_arch_list_matching mips3]
613 run_dump_test_arches "ldc1-n64" \
614 [mips_arch_list_matching mips3]
615 run_dump_test_arches "ldc1-forward-n64" \
616 [mips_arch_list_matching mips3]
617 run_dump_test_arches "sdc1-n64" \
618 [mips_arch_list_matching mips3]
619 run_dump_test_arches "sdc1-forward-n64" \
620 [mips_arch_list_matching mips3]
233c7e41 621 }
252b5132 622 }
ae948b86
TS
623 if $elf { run_dump_test "ld-svr4pic" }
624 if $elf { run_dump_test "ld-xgot" }
5915a74a 625 run_dump_test_arches "li" [mips_arch_list_matching mips1]
252b5132 626 if !$aout { run_dump_test "lifloat" }
ae948b86
TS
627 if $elf { run_dump_test "lif-svr4pic" }
628 if $elf { run_dump_test "lif-xgot" }
5915a74a 629 run_dump_test_arches "mips4" [mips_arch_list_matching mips4]
8d367dd5 630 run_dump_test_arches "mips4-fp" [mips_arch_list_matching fpisa4]
f6829a45 631 run_list_test_arches "mips4-fp" "-32 -msoft-float" \
8d367dd5 632 [mips_arch_list_matching fpisa4]
ad500c2e
MR
633 run_dump_test_arches "mips4-branch-likely" \
634 [mips_arch_list_matching mips4]
635 run_list_test_arches "mips4-branch-likely" "-32 -msoft-float" \
636 [mips_arch_list_matching mips4]
85bb418f 637 run_dump_test_arches "mips5-fp" [mips_arch_list_matching fpisa5]
23fce1e3 638 run_dump_test "mul"
5915a74a 639
30cfc97a 640 run_dump_test_arches "rol" [mips_arch_list_matching mips1 !ror]
5915a74a
CD
641 run_dump_test_arches "rol-hw" [mips_arch_list_matching ror]
642
643 run_dump_test_arches "rol64" [mips_arch_list_matching gpr64 !ror]
644 run_dump_test_arches "rol64-hw" [mips_arch_list_matching gpr64 ror]
645
252b5132
RH
646 if !$aout { run_dump_test "sb" }
647 run_dump_test "trunc"
648 if !$aout { run_dump_test "ulh" }
af22f5b2
CD
649 run_dump_test_arches "ulh2-eb" [mips_arch_list_matching mips1]
650 run_dump_test_arches "ulh2-el" [mips_arch_list_matching mips1]
ae948b86
TS
651 if $elf { run_dump_test "ulh-svr4pic" }
652 if $elf { run_dump_test "ulh-xgot" }
252b5132
RH
653 if !$aout {
654 run_dump_test "ulw"
655 run_dump_test "uld"
656 run_dump_test "ush"
657 run_dump_test "usw"
658 run_dump_test "usd"
659 }
30cfc97a
MR
660 run_dump_test_arches "ulw2-eb" \
661 [mips_arch_list_matching mips1 !gpr_ilocks]
af22f5b2 662 run_dump_test_arches "ulw2-eb-ilocks" [mips_arch_list_matching gpr_ilocks]
30cfc97a
MR
663 run_dump_test_arches "ulw2-el" \
664 [mips_arch_list_matching mips1 !gpr_ilocks]
af22f5b2
CD
665 run_dump_test_arches "ulw2-el-ilocks" [mips_arch_list_matching gpr_ilocks]
666
667 run_dump_test_arches "uld2-eb" [mips_arch_list_matching mips3]
668 run_dump_test_arches "uld2-el" [mips_arch_list_matching mips3]
669
252b5132
RH
670 # The mips16 test can only be run on ELF, because only ELF
671 # supports the necessary mips16 reloc.
3396de36
TS
672 if { $elf && !$no_mips16 } {
673 run_dump_test "mips16"
32159579 674 run_dump_test "mips16-64"
cd9260d9 675 # Check MIPS16e extensions
df58fc94
RS
676 run_dump_test_arches "mips16e" \
677 [mips_arch_list_matching mips32 !micromips]
3396de36
TS
678 # Check jalx handling
679 run_dump_test "mips16-jalx"
680 run_dump_test "mips-jalx"
f79e2745 681 run_dump_test "mips-jalx-2"
d6f16593
MR
682 # Check MIPS16 HI16/LO16 relocations
683 run_dump_test "mips16-hilo"
684 if $has_newabi {
685 run_dump_test "mips16-hilo-n32"
686 }
35903be0 687 run_dump_test "mips16-hilo-match"
3396de36 688 }
252b5132
RH
689 run_dump_test "delay"
690 run_dump_test "nodelay"
691 run_dump_test "mips4010"
692 run_dump_test "mips4650"
693 run_dump_test "mips4100"
60b63b72
RS
694 run_dump_test "vr4111"
695 run_dump_test "vr4120"
532c738a 696 run_dump_test "vr4120-2"
11db99f8 697 run_dump_test "vr4130"
60b63b72
RS
698 run_dump_test "vr5400"
699 run_dump_test "vr5500"
5a7ea749 700 run_dump_test "rm7000"
99c14723 701 run_dump_test "perfcount"
252b5132
RH
702 run_dump_test "lineno"
703 run_dump_test "sync"
5915a74a
CD
704
705 run_dump_test_arches "mips32" [mips_arch_list_matching mips32]
df58fc94 706 run_dump_test_arches "mips32-imm" [mips_arch_list_matching mips32]
5915a74a 707
1787fe5b 708 run_dump_test_arches "mips32-sf32" [mips_arch_list_matching mips32]
f6829a45
AN
709 run_list_test_arches "mips32-sf32" "-32 -msoft-float" \
710 [mips_arch_list_matching mips32]
a6d8f55b
AN
711 run_dump_test_arches "mips32-cp2" [mips_arch_list_matching mips32 \
712 !octeon]
1787fe5b 713
af7ee8bf 714 run_dump_test_arches "mips32r2" [mips_arch_list_matching mips32r2]
a6d8f55b
AN
715 run_dump_test_arches "mips32r2-cp2" [mips_arch_list_matching mips32r2 \
716 !octeon]
f6829a45
AN
717 run_dump_test_arches "mips32r2-fp32" \
718 [mips_arch_list_matching mips32r2]
719 run_list_test_arches "mips32r2-fp32" "-32 -msoft-float" \
720 [mips_arch_list_matching mips32r2]
5f74bc13 721 run_list_test_arches "mips32r2-ill" "-32" \
f6829a45 722 [mips_arch_list_matching mips32r2 gpr32]
5f74bc13 723 run_list_test_arches "mips32r2-ill-fp64" "-mabi=o64" \
f6829a45
AN
724 [mips_arch_list_matching mips32r2 gpr64]
725 run_list_test_arches "mips32r2-ill-nofp" "-32 -msoft-float" \
726 [mips_arch_list_matching mips32r2]
af7ee8bf 727
5915a74a 728 run_dump_test_arches "mips64" [mips_arch_list_matching mips64]
a6d8f55b
AN
729 run_dump_test_arches "mips64-cp2" [mips_arch_list_matching mips64 \
730 !octeon]
5915a74a 731
5f74bc13
CD
732 run_dump_test_arches "mips64r2" [mips_arch_list_matching mips64r2]
733 run_list_test_arches "mips64r2-ill" "" [mips_arch_list_matching mips64r2]
734
fef14a42
TS
735 run_dump_test "set-arch"
736
b892b944
TS
737 if { !$addr32 } {
738 run_dump_test "mips64-mips3d"
739 run_dump_test_arches "mips64-mips3d-incl" [mips_arch_list_matching mips3d]
5915a74a 740
b892b944
TS
741 run_dump_test "mips64-mdmx"
742 run_dump_test "sb1-ext-mdmx"
743 run_dump_test "sb1-ext-ps"
52b6b6b9 744 run_dump_test "xlr-ext"
b892b944 745 }
252b5132 746
66b3e8da
MR
747 run_dump_test_arches "relax" [mips_arch_list_matching mips2]
748 run_dump_test_arches "relax-at" [mips_arch_list_matching mips2]
895921c9
MR
749 run_dump_test "relax-swap1-mips1"
750 run_dump_test "relax-swap1-mips2"
751 run_dump_test "relax-swap2"
9301f9c3 752 run_dump_test_arches "relax-swap3" [mips_arch_list_all]
d455268f 753 run_list_test_arches "relax-bposge" "-mdsp -relax-branch" \
df58fc94
RS
754 [mips_arch_list_matching mips64r2 \
755 !micromips]
594e740f 756
21b99e26
AO
757 run_list_test "illegal" "-32"
758 run_list_test "baddata1" "-32"
e7c604dd 759 run_list_test "jalr" ""
d9e138e2 760
51124b6c
CD
761 # LOSE: As of 2002-02-08, the next 4 tests fail for target mips-ecoff.
762 # It's unknown whether they _should_ pass as-is, or whether different
763 # variants are needed for ELF and ECOFF.
dc462216
RS
764 run_dump_test "mips-gp32-fp32"
765 run_dump_test "mips-gp32-fp64"
766 run_dump_test "mips-gp64-fp32"
767 run_dump_test "mips-gp64-fp64"
dc462216 768
ae948b86 769 if $elf {
2cd5676f
CD
770 # Make sure that -mcpu=FOO and -mFOO are equivalent. Assemble a file
771 # containing 4650-specific instructions with -m4650 and -mcpu=4650,
772 # and verify that they're the same. Specifically, we're checking
773 # that the EF_MIPS_MACH field is set, and that the 4650 'mul'
f22ba854 774 # instruction does get used. In previous versions of GAS,
2cd5676f
CD
775 # only -mcpu=4650 would set the EF_MIPS_MACH field; -m4650 wouldn't.
776 run_dump_test "elf_e_flags1"
777 run_dump_test "elf_e_flags2"
778 run_dump_test "elf_e_flags3"
779 run_dump_test "elf_e_flags4"
f22ba854 780
b337e146
CD
781 # Check EF_MIPS_ARCH markings for each supported architecture.
782 run_dump_test "elf_arch_mips1"
783 run_dump_test "elf_arch_mips2"
784 run_dump_test "elf_arch_mips3"
785 run_dump_test "elf_arch_mips4"
786 run_dump_test "elf_arch_mips5"
787 run_dump_test "elf_arch_mips32"
788 run_dump_test "elf_arch_mips32r2"
789 run_dump_test "elf_arch_mips64"
5f74bc13 790 run_dump_test "elf_arch_mips64r2"
b337e146 791
70a31400 792 # Verify that ASE markings are handled properly.
738f4d98
MR
793 if { !$no_mips16 } {
794 run_dump_test "elf_ase_mips16"
795 run_dump_test "elf_ase_mips16-2"
796 }
df58fc94
RS
797 if { !$no_micromips } {
798 run_dump_test "elf_ase_micromips"
799 run_dump_test "elf_ase_micromips-2"
800 }
70a31400 801
dc462216
RS
802 run_dump_test "mips-gp32-fp32-pic"
803 run_dump_test "mips-gp32-fp64-pic"
804 run_dump_test "mips-gp64-fp32-pic"
805 run_dump_test "mips-gp64-fp64-pic"
ae948b86
TS
806
807 run_dump_test "mips-abi32"
808 run_dump_test "mips-abi32-pic"
885add95 809 run_dump_test "mips-abi32-pic2"
ff8715d0 810
0c4ec151 811 run_dump_test "elf${el}-rel"
cd9260d9
TS
812 run_dump_test_arches "elf${el}-rel2" [mips_arch_list_matching gpr64]
813 run_dump_test "e32${el}-rel2"
0c4ec151 814 run_dump_test "elf${el}-rel3"
cd9260d9
TS
815 run_dump_test_arches "elf-rel4" [mips_arch_list_matching gpr64]
816 run_dump_test "e32-rel4"
5f266a81 817 run_dump_test "elf-rel5"
98605598 818 run_dump_test "elf-rel6"
1dd3d627
TS
819 if $has_newabi {
820 run_dump_test "elf-rel6-n32"
821 run_dump_test "elf-rel6-n64"
822 }
631cb423 823 run_dump_test "elf-rel7"
5e0116d5 824 run_dump_test "elf-rel8"
738e5348 825 run_dump_test "elf-rel8-mips16"
5e0116d5 826 run_dump_test "elf-rel9"
738e5348 827 run_dump_test "elf-rel9-mips16"
5e0116d5
RS
828 if $has_newabi {
829 run_dump_test "elf-rel10"
830 run_dump_test "elf-rel11"
831 }
5919d012
RS
832 run_dump_test "elf-rel12"
833 run_dump_test "elf-rel13"
738e5348 834 run_dump_test "elf-rel13-mips16"
64bdfcaf 835 run_dump_test "elf-rel14"
05760fd2
AO
836
837 if $has_newabi {
34ce925e 838 run_dump_test "elf-rel15"
0a6ace1e 839 run_dump_test "elf-rel16"
34ce925e 840
05760fd2
AO
841 run_dump_test "elf-rel-got-n32"
842 run_dump_test "elf-rel-xgot-n32"
843 run_dump_test "elf-rel-got-n64"
844 run_dump_test "elf-rel-xgot-n64"
845 }
30ac9238 846 run_dump_test "elf-rel17"
cc3d92a5
RS
847 if $has_newabi {
848 run_dump_test "elf-rel18"
849 }
4d7206a2 850 run_dump_test "elf-rel19"
3b91255e 851 run_dump_test "elf-rel20"
b1dca8ee
RS
852 if $has_newabi {
853 run_dump_test "elf-rel21"
99022dfb 854 run_dump_test "elf-rel22"
6e1304d8 855 run_dump_test "elf-rel23"
e8ede7c7
ILT
856 run_dump_test "elf-rel23a"
857 run_dump_test "elf-rel23b"
6e1304d8 858 run_dump_test "elf-rel24"
b1dca8ee 859 }
05760fd2 860
e8ede7c7
ILT
861 run_dump_test "elf-rel25"
862 run_dump_test "elf-rel25a"
df1f3cda 863 run_dump_test "elf-rel26"
e8ede7c7 864
30cfc97a
MR
865 run_dump_test_arches "elf-rel27" [mips_arch_list_all]
866
e391c024
RS
867 if $has_newabi {
868 run_dump_test "elf-rel28-n32"
869 run_dump_test "elf-rel28-n64"
870 }
871
f22ba854
NC
872 if { !$no_mips16 } {
873 run_dump_test "${tmips}mips${el}16-e"
874 run_dump_test "${tmips}mips${el}16-f"
bb2d6cd7 875 }
fdb987ee 876 run_dump_test "elf-consthilo"
09b8f35a 877 run_dump_test "expr1"
b2715587
RS
878
879 run_list_test "tls-ill" "-32"
880 run_dump_test "tls-o32"
1180b5a4 881 run_dump_test "jalr2"
08ddc280
MR
882
883 run_dump_test_arches "aent" [mips_arch_list_matching mips1]
ce70d90a
MR
884
885 run_dump_test_arches "branch-misc-4" \
886 [mips_arch_list_matching mips1]
887 run_dump_test_arches "branch-misc-4-64" \
888 [mips_arch_list_matching mips3]
e3a82c8e
MR
889
890 run_dump_test_arches "loc-swap" [mips_arch_list_all]
891 run_dump_test_arches "loc-swap-dis" \
892 [mips_arch_list_all]
5045d766 893 run_dump_test_arches "loc-swap-2" [mips_arch_list_all]
07147777 894 }
640c0ccd 895
5e0116d5 896 if $has_newabi {
a4cb6c4d
AO
897 run_dump_test "n32-consec"
898 }
899
640c0ccd
CD
900 # tests of objdump's ability to disassemble using different
901 # register names.
902 run_dump_test "gpr-names-numeric"
903 run_dump_test "gpr-names-32"
904 run_dump_test "gpr-names-n32"
905 run_dump_test "gpr-names-64"
906
907 run_dump_test "fpr-names-numeric"
908 run_dump_test "fpr-names-32"
909 run_dump_test "fpr-names-n32"
910 run_dump_test "fpr-names-64"
911
912 run_dump_test "cp0-names-numeric"
f409fd1e
MR
913 run_dump_test "cp0-names-r3000"
914 run_dump_test "cp0-names-r4000" \
915 { { {name} {(r4000)} } { {objdump} {-M cp0-names=r4000} } }
916 run_dump_test "cp0-names-r4000" \
917 { { {name} {(r4400)} } { {objdump} {-M cp0-names=r4400} } }
640c0ccd 918 run_dump_test "cp0-names-mips32"
af7ee8bf 919 run_dump_test "cp0-names-mips32r2"
640c0ccd 920 run_dump_test "cp0-names-mips64"
5f74bc13 921 run_dump_test "cp0-names-mips64r2"
640c0ccd 922 run_dump_test "cp0-names-sb1"
af7ee8bf 923
bbcc0807
CD
924 run_dump_test "cp0sel-names-numeric"
925 run_dump_test "cp0sel-names-mips32"
926 run_dump_test "cp0sel-names-mips32r2"
927 run_dump_test "cp0sel-names-mips64"
5f74bc13 928 run_dump_test "cp0sel-names-mips64r2"
bbcc0807
CD
929 run_dump_test "cp0sel-names-sb1"
930
af7ee8bf
CD
931 run_dump_test "hwr-names-numeric"
932 run_dump_test "hwr-names-mips32r2"
5f74bc13 933 run_dump_test "hwr-names-mips64r2"
ecd13cd3
TS
934
935 run_dump_test "ldstla-32"
2051e8c4 936 run_dump_test "ldstla-32-mips3"
ecd13cd3 937 run_dump_test "ldstla-32-shared"
2051e8c4
MR
938 run_dump_test "ldstla-32-mips3-shared"
939 run_list_test "ldstla-32-1" "-mabi=32" \
940 "MIPS ld-st-la bad constants (ABI o32)"
941 run_list_test "ldstla-32-mips3-1" "-mabi=32" \
942 "MIPS ld-st-la bad constants (ABI o32, mips3)"
943 run_list_test "ldstla-32-1" "-KPIC -mabi=32" \
944 "MIPS ld-st-la bad constants (ABI o32, shared)"
945 run_list_test "ldstla-32-mips3-1" "-KPIC -mabi=32" \
946 "MIPS ld-st-la bad constants (ABI o32, mips3, shared)"
aed1a261 947 run_dump_test "ldstla-eabi64"
ecd13cd3 948 if $has_newabi {
ecd13cd3
TS
949 run_dump_test "ldstla-n64"
950 run_dump_test "ldstla-n64-shared"
aed1a261 951 run_dump_test "ldstla-n64-sym32"
ecd13cd3 952 }
5fc68419
RS
953
954 run_dump_test "macro-warn-1"
955 run_dump_test "macro-warn-2"
956 run_dump_test "macro-warn-3"
957 run_dump_test "macro-warn-4"
958 if $has_newabi {
959 run_dump_test "macro-warn-1-n32"
960 run_dump_test "macro-warn-2-n32"
961 }
8fc2e39e
TS
962
963 run_dump_test "noat-1"
964 run_list_test "noat-2" ""
965 run_list_test "noat-3" ""
966 run_list_test "noat-4" ""
967 run_list_test "noat-5" ""
968 run_list_test "noat-6" ""
969 run_list_test "noat-7" ""
58e2ea4d 970
741fe287
MR
971 run_dump_test "at-1"
972 run_list_test "at-2" "-32 -mips1" "MIPS at-2"
973
350cc38d
MS
974 run_dump_test "loongson-2e"
975 run_dump_test "loongson-2f"
c67a084a
NC
976 run_dump_test "loongson-2f-2"
977 run_dump_test "loongson-2f-3"
61d4e56d 978
a471ec3a 979 run_dump_test "loongson-3a"
98675402
RS
980 run_dump_test "loongson-3a-2"
981 run_dump_test "loongson-3a-3"
a471ec3a 982
bb35fb24
NC
983 run_dump_test_arches "octeon" [mips_arch_list_matching octeon]
984 run_list_test_arches "octeon-ill" "" \
985 [mips_arch_list_matching octeon]
d954098f 986 run_dump_test_arches "octeon-pref" [mips_arch_list_matching octeon]
350cc38d 987
0797561a
AN
988 run_dump_test "smartmips"
989 run_dump_test "mips32-dsp"
990 run_dump_test "mips32-dspr2"
991 run_dump_test "mips64-dsp"
992 run_dump_test "mips32-mt"
305e06d3 993
58e2ea4d
MR
994 if { $elf && !$no_mips16 } {
995 run_dump_test "mips16-dwarf2"
9def96e7
MR
996 if $has_newabi {
997 run_dump_test "mips16-dwarf2-n32"
998 }
58e2ea4d 999 }
0499d65b
TS
1000 if { !$no_mips16 } {
1001 run_dump_test "mips16e-jrc"
1002 run_dump_test "mips16e-save"
9b3f89ee 1003 run_dump_test "mips16e-64"
21b956c6 1004 run_list_test "mips16e-64" "-march=mips32 -32"
b9d58d71 1005 run_dump_test "mips16-intermix"
0499d65b 1006 }
0a44bf69
RS
1007 run_dump_test "vxworks1"
1008 run_dump_test "vxworks1-xgot"
a284cff1
TS
1009 run_dump_test "vxworks1-el"
1010 run_dump_test "vxworks1-xgot-el"
ef75f014
TS
1011
1012 run_dump_test "noreorder"
49954fb4 1013 run_dump_test "align"
742a56fe
RS
1014 run_dump_test "align2"
1015 run_dump_test "align2-el"
c8ab98e0 1016 run_dump_test "odd-float"
f6829a45
AN
1017
1018 run_list_test_arches "mips-macro-ill-sfp" "-32 -msingle-float" \
1019 [mips_arch_list_matching mips2]
1020 run_list_test_arches "mips-macro-ill-nofp" "-32 -msoft-float" \
1021 [mips_arch_list_matching mips2]
1022
1023 run_list_test_arches "mips-hard-float-flag" \
1024 "-32 -msoft-float -mhard-float" \
1025 [mips_arch_list_matching mips1]
1026 run_list_test_arches "mips-double-float-flag" \
1027 "-32 -msingle-float -mdouble-float" \
1028 [mips_arch_list_matching mips1]
30c09090
RS
1029
1030 run_dump_test "mips16-vis-1"
861fb55a 1031 run_dump_test "call-nonpic-1"
5fb8dac1 1032 run_dump_test "mips32-sync"
f6690563
MR
1033 run_dump_test_arches "mips32r2-sync" \
1034 [mips_arch_list_matching mips32r2]
8d367dd5 1035 run_dump_test_arches "alnv_ps-swap" [mips_arch_list_matching fpisa5]
df58fc94
RS
1036 run_dump_test_arches "cache" [lsort -dictionary -unique [concat \
1037 [mips_arch_list_matching mips3] \
1038 [mips_arch_list_matching mips32] ] ]
1039 run_dump_test_arches "daddi" [mips_arch_list_matching mips3]
1040 run_dump_test_arches "pref" [lsort -dictionary -unique [concat \
1041 [mips_arch_list_matching mips4] \
1042 [mips_arch_list_matching mips32] ] ]
5fb8dac1 1043
a79558d9 1044 if $has_newabi { run_dump_test "cfi-n64-1" }
f77ef3e2
RS
1045
1046 run_dump_test "pr12915"
4c260379
RS
1047 run_dump_test "reginfo-1a"
1048 run_dump_test "reginfo-1b"
df58fc94
RS
1049
1050 if { !$no_micromips } {
1051 run_dump_test "micromips"
1052 run_dump_test "micromips-trap"
1053 run_list_test "micromips-size-0" \
1054 "-32 -march=mips64 -mmicromips" "microMIPS instruction size 0"
1055 run_dump_test "micromips-size-1"
1056 run_dump_test "micromips-branch-relax"
1057 run_dump_test "micromips-branch-relax-pic"
1058 run_dump_test "micromips-branch-delay"
1059 }
dec0624d
MR
1060
1061 run_dump_test_arches "mcu" [mips_arch_list_matching mips32r2 \
1062 !octeon]
252b5132 1063}