[MIPS/GAS] Add Loongson EXT2 Instructions support.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / mips / mips.exp
CommitLineData
219d1afa 1# Copyright (C) 2012-2018 Free Software Foundation, Inc.
5bf135a7
NC
2
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation; either version 3 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program; if not, write to the Free Software
15# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
16
252b5132
RH
17#
18# Some generic MIPS tests
19#
d9e138e2 20
5915a74a
CD
21# When adding a new test to this file, try to do the following things:
22#
23# * If testing assembly and disassembly of code, don't forget to test
24# the actual bit encodings of the instructions (using the
25# --show-raw-insn flag to objdump).
26#
27# * Try to run the test for as many architectures as appropriate,
28# using the "run_dump_test_arches" or "run_list_test_arches" functions,
29# along with the output from a call to "mips_arch_list_matching."
30#
31# * Be sure to compare the test output before and after your testsuite
32# changes, to verify that existing and new tests were run as expected.
33# Look for expect ERROR messages in the testsuite .log file to make sure
34# the new expect code did not contain errors.
35
36# To add support for a new CPU to this file, add an appropriate entry
37# to the sequence of "mips_arch_create" function calls below, and test
38# the result. The new CPU should automatically be used when running
39# various tests. If the new CPU is the default CPU for any tool
40# targets, make sure the call to "mips_arch_create" reflects that fact.
41
42
5915a74a
CD
43# The functions below create and manipulate an "architecture data
44# array" which contains entries for each MIPS architecture (or CPU)
45# known to these tests. The array contains the following information
46# for each architecture, indexed by the name of the architecture
47# described by the entry:
48#
49# displayname: The name of the entry to be used for pretty-printing.
50#
51# gprsize: The size in bits of General Purpose Registers provided by
52# the architecture (must be 32 or 64).
53#
54# props: A list of text strings which are associated with the
55# architecture. These include the architecture name as well as
56# information about what instructions the CPU supports. When matching
57# based on properties, an additional property is added to the normal
58# property list, "gpr<gprsize>" so that tests can match CPUs which
59# have GPRs of a specific size. The following properties are most
60# useful when matching properties for generic (i.e., not CPU-specific)
61# tests:
62#
63# mips1, mips2, mips3, mips4, mips5, mips32, mips64
64# The architecture includes the instructions defined
65# by that MIPS ISA.
66#
8d367dd5
MR
67# fpisa3, fpisa4, fpisa5
68# The architecture includes the floating-point
69# instructions defined by that MIPS ISA.
70#
af22f5b2
CD
71# gpr_ilocks
72# The architecture interlocks GPRs accesses. (That is,
73# there are no load delay slots.)
74#
5915a74a
CD
75# mips3d The architecture includes the MIPS-3D ASE.
76#
77# ror The architecture includes hardware rotate instructions.
78#
79# gpr32, gpr64
80# The architecture provides 32- or 64-bit General Purpose
81# Registers.
82#
e407c74b
NC
83# singlefloat
84# The CPU is 64 bit, but only supports 32 bit FPU.
85#
0aa27725
RS
86# nollsc
87# The CPU doesn't support ll, sc, lld and scd instructions.
88#
351cdf24
MF
89# oddspreg
90# The CPU has odd-numbered single-precision registers
91# available and GAS enables use of them by default.
92#
5915a74a
CD
93# as_flags: The assembler flags used when assembling tests for this
94# architecture.
95#
96# objdump_flags: The objdump flags used when disassembling tests for
97# this architecture.
98#
99# Most entries in the architecture array will have values in all of
100# the fields above. One entry, "default" represents the default CPU
101# based on the target of the assembler being built. If always has
102# empty "as_flags" and "objdump_flags."
103
4d8728e1
CD
104# mips_arch_init
105#
106# This function initializes the architecture data array ("mips_arches")
107# to be empty.
108proc mips_arch_init {} {
109 global mips_arches
74cb52a6 110
95d4c932 111 # Catch because the variable won't be set the first time through.
74cb52a6 112 catch {unset mips_arches}
4d8728e1
CD
113}
114
5915a74a
CD
115# mips_arch_create ARCH GPRSIZE EXTENDS PROPS AS_FLAGS OBJDUMP_FLAGS \
116# (optional:) DEFAULT_FOR_TARGETS
117#
118# This function creates a new entry in the architecture data array,
119# for the architecture or CPU named ARCH, and fills in the entry
120# according to the rest of the arguments.
121#
122# The new entry's property list is initialized to contain ARCH, any
123# properties specified by PROPS, and the properties associated with
124# the entry specified by EXTENDS. (The new architecture is considered
125# to extend the capabilities provided by that architecture.)
126#
127# If DEFAULT_FOR_TARGETS is specified, it is a list of targets for which
128# this architecture is the default architecture. If "istarget" returns
129# true for any of the targets in the list, a "default" entry will be
130# added to the architecture array which indicates that ARCH is the default
131# architecture.
132proc mips_arch_create {arch gprsize extends props as_flags objdump_flags
133 {default_for_targets {}}} {
134 global mips_arches
135
136 if { [info exists mips_arches($arch)] } {
137 error "mips_arch_create: arch \"$arch\" already exists"
138 }
139 if { $gprsize != 32 && $gprsize != 64 } {
140 error "mips_arch_create: invalid GPR size $gprsize"
141 }
142
143 set archdata(displayname) $arch
144 set archdata(gprsize) $gprsize
145 set archdata(as_flags) $as_flags
146 set archdata(objdump_flags) $objdump_flags
147 set archdata(props) $arch
148 eval lappend archdata(props) $props
149 if { [string length $extends] != 0 } {
150 eval lappend archdata(props) [mips_arch_properties $extends 0]
151 }
152
153 set mips_arches($arch) [array get archdata]
154
155 # Set as default if appropriate.
156 foreach target $default_for_targets {
157 if { [istarget $target] } {
158 if { [info exists mips_arches(default)] } {
159 error "mips_arch_create: default arch already exists"
160 }
161
162 set archdata(displayname) "default = $arch"
163 set archdata(as_flags) ""
164 set archdata(objdump_flags) ""
165
166 set mips_arches(default) [array get archdata]
167 break
168 }
169 }
170}
171
30cfc97a
MR
172# mips_arch_destroy ARCH
173#
174# The opposite of the above. This function removes an entry from
175# the architecture data array, for the architecture or CPU named ARCH.
176
177proc mips_arch_destroy {arch} {
178 global mips_arches
179
180 if { [info exists mips_arches($arch)] } {
181 unset mips_arches($arch)
182 }
183}
184
5915a74a
CD
185# mips_arch_list_all
186#
187# This function returns the list of all names of entries in the
188# architecture data array (including the default entry, if a default
189# is known).
190proc mips_arch_list_all {} {
191 global mips_arches
192 return [lsort -dictionary [array names mips_arches]]
193}
194
195# mips_arch_data ARCH
196#
197# This function returns the information associated with ARCH
198# in the architecture data array, in "array get" form.
199proc mips_arch_data {arch} {
200 global mips_arches
201
202 if { ! [info exists mips_arches($arch)] } {
203 error "mips_arch_data: unknown arch \"$arch\""
204 }
205 return $mips_arches($arch)
206}
207
208# mips_arch_displayname ARCH
209#
210# This function returns the printable name associated with ARCH in
211# the architecture data array.
212proc mips_arch_displayname {arch} {
213 array set archdata [mips_arch_data $arch]
214 return $archdata(displayname)
215}
216
217# mips_arch_properties ARCH (optional:) INCLUDE_GPRSIZE
218#
219# This function returns the property list associated with ARCH in the
475a10d0
MR
220# architecture data array, including the "canonical" target name as the
221# first element.
222#
223# If INCLUDE_GPRSIZE is non-zero, an additional "gpr32" or "gpr64"
224# property will be returned as part of the list based on the
225# architecture's GPR size.
5915a74a
CD
226proc mips_arch_properties {arch {include_gprsize 1}} {
227 array set archdata [mips_arch_data $arch]
228 set props $archdata(props)
229 if { $include_gprsize } {
230 lappend props gpr$archdata(gprsize)
231 }
232 return $props
233}
234
235# mips_arch_as_flags ARCH
236#
237# This function returns the assembler flags associated with ARCH in
238# the architecture data array.
239proc mips_arch_as_flags {arch} {
240 array set archdata [mips_arch_data $arch]
241 return $archdata(as_flags)
242}
243
244# mips_arch_objdump_flags ARCH
245#
246# This function returns the objdump disassembly flags associated with
247# ARCH in the architecture data array.
248proc mips_arch_objdump_flags {arch} {
249 array set archdata [mips_arch_data $arch]
250 return $archdata(objdump_flags)
251}
252
253# mips_arch_matches ARCH PROPMATCHLIST
254#
255# This function returns non-zero if ARCH matches the set of properties
256# described by PROPMATCHLIST. Each entry in PROPMATCHLIST can either
257# be the name of a property which must be matched, or "!" followed by
258# the name of a property which must not be matched. ARCH matches
259# PROPMATCHLIST if and only if all of the conditions specified by
260# PROPMATCHLIST are satisfied.
261proc mips_arch_matches {arch propmatchlist} {
262 foreach pm $propmatchlist {
263 if { [string match {!*} $pm] } {
264 # fail if present.
265 set inverted 1
266 set p [string range $pm 1 end]
267 } {
268 # fail if not present.
269 set inverted 0
270 set p $pm
271 }
272
273 set loc [lsearch -exact [mips_arch_properties $arch] $p]
274
275 # required-absent and found, or required-present and not found: fail.
276 if { ($inverted && $loc != -1) || (! $inverted && $loc == -1) } {
277 return 0
278 }
279 }
280 return 1
281}
282
283# mips_arch_list_matching ARGS
284#
285# This function returns a list of all architectures which match
286# the conditions described by its arguments. Its arguments are
287# taken as a list and used as the PROPMATCHLIST in a call to
288# "mips_arch_matches" for each known architecture.
289proc mips_arch_list_matching {args} {
290 set l ""
291 foreach arch [mips_arch_list_all] {
292 # For now, don't match default arch until we know what its
293 # properties actually are.
294 if { [string compare $arch default] == 0
295 && [string length [mips_arch_properties default]] == 0} {
c0b22597 296 continue
5915a74a
CD
297 }
298 if { [mips_arch_matches $arch $args] } {
299 lappend l $arch
300 }
301 }
302 return $l
303}
304
305
306# The functions below facilitate running various types of tests.
307
725fc8ed 308# run_dump_test_arch NAME OPTS ARCH
5915a74a 309#
725fc8ed
RS
310# Invoke "run_dump_test" for test NAME with additional assembler options OPTS.
311# Add the assembler and disassembler flags that are associated with
312# architecture ARCH.
8b7955ca 313#
16e5e222
RS
314# You can override the expected output for particular architectures.
315# The possible test names are, in order of preference:
8b7955ca 316#
16e5e222
RS
317# 1. CARCH@NAME.d
318# 2. NAME.d
8b7955ca
MR
319#
320# where CARCH is the "canonical" name of architecture ARCH as recorded
16e5e222 321# in its associated property list.
725fc8ed 322proc run_dump_test_arch { name opts arch } {
193fa632
MR
323 global subdir srcdir
324
475a10d0 325 set proparch [lindex [mips_arch_properties $arch 0] 0]
16e5e222 326 set prefixes [list ${proparch}@ ]
70ab592f
MR
327 if { [ string match "mips16e2*" $proparch ] } {
328 lappend prefixes mips16e2@
329 }
6b438200
MR
330 if { [ string match "mips16e*" $proparch ] } {
331 lappend prefixes mips16e@
332 }
333 if { [ string match "mips16*" $proparch ] } {
334 lappend prefixes mips16@
335 }
dd6a37e7 336 if { [ string match "octeon*" $proparch ] && $proparch != "octeon" } {
16e5e222 337 lappend prefixes octeon@
dd6a37e7 338 }
7361da2c
AB
339 if { [ string match "mips*r6" $proparch ]} {
340 lappend prefixes mipsr6@
341 }
dd6a37e7 342 foreach prefix ${prefixes} {
8b7955ca
MR
343 set archname ${prefix}${name}
344 if { [file exists "$srcdir/$subdir/${archname}.d"] } {
345 set name $archname
346 break
347 }
193fa632 348 }
5915a74a
CD
349
350 if [catch {run_dump_test $name \
725fc8ed
RS
351 "{name {([concat $opts [mips_arch_displayname $arch]])}}
352 {objdump {[mips_arch_objdump_flags $arch]}}
353 {as {[concat $opts [mips_arch_as_flags $arch]]}}"} rv] {
5915a74a
CD
354 perror "$rv"
355 untested "$subdir/$name ($arch)"
356 }
357}
358
725fc8ed 359# run_dump_test_arches NAME [OPTS] ARCH_LIST
5915a74a
CD
360#
361# Invoke "run_dump_test_arch" for test NAME, for each architecture
725fc8ed
RS
362# listed in ARCH_LIST. OPTS, if specified, is a list of additional
363# assembler options that should be used for all architectures.
364proc run_dump_test_arches { name args } {
725fc8ed
RS
365 set opts ""
366 if { [llength $args] > 1 } {
367 set opts [lindex $args 0]
368 set args [lrange $args 1 end]
369 }
370 set arch_list [lindex $args 0]
5915a74a 371 foreach arch $arch_list {
725fc8ed 372 run_dump_test_arch $name $opts $arch
5915a74a
CD
373 }
374}
375
5915a74a
CD
376# run_list_test_arch NAME OPTS ARCH
377#
725fc8ed
RS
378# Invoke "run_list_test" for test NAME with additional assembler options OPTS.
379# Add the assembler flags that are associated with architecture ARCH.
5915a74a 380proc run_list_test_arch { name opts arch } {
7361da2c 381 global subdir srcdir
5915a74a 382
725fc8ed 383 set testname "MIPS $name ([concat $opts [mips_arch_displayname $arch]])"
7361da2c
AB
384 set proparch [lindex [mips_arch_properties $arch 0] 0]
385 set prefixes [list ${proparch}@ ]
70ab592f
MR
386 if { [ string match "mips16e2*" $proparch ] } {
387 lappend prefixes mips16e2@
388 }
6b438200
MR
389 if { [ string match "mips16e*" $proparch ] } {
390 lappend prefixes mips16e@
391 }
392 if { [ string match "mips16*" $proparch ] } {
393 lappend prefixes mips16@
394 }
7361da2c
AB
395 if { [ string match "octeon*" $proparch ] && $proparch != "octeon" } {
396 lappend prefixes octeon@
397 }
398 if { [ string match "mips*r6" $proparch ]} {
399 lappend prefixes mipsr6@
400 }
401 foreach prefix ${prefixes} {
402 set archname ${prefix}${name}
403 if { [file exists "$srcdir/$subdir/${archname}.l"] } {
404 set name $archname
405 break
406 }
407 }
408
725fc8ed
RS
409 if [catch {run_list_test \
410 $name \
411 [concat $opts [mips_arch_as_flags $arch]] \
412 $testname} rv] {
5915a74a
CD
413 perror "$rv"
414 untested "$testname"
415 }
416}
417
725fc8ed 418# run_list_test_arches NAME [OPTS] ARCH_LIST
5915a74a 419#
725fc8ed
RS
420# Invoke "run_list_test_arch" for test NAME, for each architecture listed
421# in ARCH_LIST. OPTS, if specified, is a list of additional assembler
422# options that should be used for all architectures.
423proc run_list_test_arches { name args } {
424 set opts ""
425 if { [llength $args] > 1 } {
426 set opts [lindex $args 0]
427 set args [lrange $args 1 end]
428 }
429 set arch_list [lindex $args 0]
5915a74a
CD
430 foreach arch $arch_list {
431 run_list_test_arch "$name" "$opts" "$arch"
432 }
433}
434
435
436# Create the architecture data array by providing data for all
437# known architectures.
438#
439# Note that several targets pick default CPU based on ABI. We
440# can't easily handle that; do NOT list those targets as defaulting
441# to any architecture.
4d8728e1 442mips_arch_init
5915a74a
CD
443mips_arch_create mips1 32 {} {} \
444 { -march=mips1 -mtune=mips1 } { -mmips:3000 }
af22f5b2 445mips_arch_create mips2 32 mips1 { gpr_ilocks } \
5915a74a 446 { -march=mips2 -mtune=mips2 } { -mmips:6000 }
8d367dd5 447mips_arch_create mips3 64 mips2 { fpisa3 } \
5915a74a 448 { -march=mips3 -mtune=mips3 } { -mmips:4000 }
8d367dd5 449mips_arch_create mips4 64 mips3 { fpisa4 } \
5915a74a 450 { -march=mips4 -mtune=mips4 } { -mmips:8000 }
8d367dd5 451mips_arch_create mips5 64 mips4 { fpisa5 } \
5915a74a
CD
452 { -march=mips5 -mtune=mips5 } { -mmips:mips5 }
453mips_arch_create mips32 32 mips2 {} \
454 { -march=mips32 -mtune=mips32 } { -mmips:isa32 } \
455 { mipsisa32-*-* mipsisa32el-*-* }
8d367dd5 456mips_arch_create mips32r2 32 mips32 { fpisa3 fpisa4 fpisa5 ror } \
af7ee8bf
CD
457 { -march=mips32r2 -mtune=mips32r2 } \
458 { -mmips:isa32r2 } \
459 { mipsisa32r2-*-* mipsisa32r2el-*-* }
ae52f483
AB
460mips_arch_create mips32r3 32 mips32r2 { fpisa3 fpisa4 fpisa5 ror } \
461 { -march=mips32r3 -mtune=mips32r3 } \
462 { -mmips:isa32r3 } \
463 { mipsisa32r3-*-* mipsisa32r3el-*-* }
464mips_arch_create mips32r5 32 mips32r3 { fpisa3 fpisa4 fpisa5 ror } \
465 { -march=mips32r5 -mtune=mips32r5 } \
466 { -mmips:isa32r5 } \
467 { mipsisa32r5-*-* mipsisa32r5el-*-* }
7361da2c
AB
468mips_arch_create mips32r6 32 mips32r5 { fpisa3 fpisa4 fpisa5 ror } \
469 { -march=mips32r6 -mtune=mips32r6 --defsym r6=} \
470 { -mmips:isa32r6 } \
471 { mipsisa32r6-*-* mipsisa32r6el-*-* }
5915a74a
CD
472mips_arch_create mips64 64 mips5 { mips32 } \
473 { -march=mips64 -mtune=mips64 } { -mmips:isa64 } \
474 { mipsisa64-*-* mipsisa64el-*-* }
5f74bc13
CD
475mips_arch_create mips64r2 64 mips64 { mips32r2 ror } \
476 { -march=mips64r2 -mtune=mips64r2 } \
477 { -mmips:isa64r2 } \
478 { mipsisa64r2-*-* mipsisa64r2el-*-* }
ae52f483
AB
479mips_arch_create mips64r3 64 mips64r2 { mips32r3 ror } \
480 { -march=mips64r3 -mtune=mips64r3 } \
481 { -mmips:isa64r3 } \
482 { mipsisa64r3-*-* mipsisa64r3el-*-* }
483mips_arch_create mips64r5 64 mips64r3 { mips32r5 ror } \
484 { -march=mips64r5 -mtune=mips64r5 } \
485 { -mmips:isa64r5 } \
486 { mipsisa64r5-*-* mipsisa64r5el-*-* }
7361da2c
AB
487mips_arch_create mips64r6 64 mips64r5 { mips32r6 ror } \
488 { -march=mips64r6 -mtune=mips64r6 --defsym r6=} \
489 { -mmips:isa64r6 } \
490 { mipsisa64r6-*-* mipsisa64r6el-*-* }
6b438200
MR
491mips_arch_create mips16-32 32 {} {} \
492 { -march=mips1 -mips16 } { -mmips:3000 }
493mips_arch_create mips16-64 64 mips16-32 {} \
494 { -march=mips3 -mips16 } { -mmips:4000 }
495mips_arch_create mips16e-32 32 mips16-32 {} \
496 { -march=mips32 -mips16 } { -mmips:isa32 }
70ab592f
MR
497mips_arch_create mips16e2-32 32 mips16e-32 {} \
498 { -march=mips32r2 -mips16 -mmips16e2 } \
499 { -mmips:isa32r2 }
6b438200
MR
500mips_arch_create mips16e-64 64 mips16-64 { mips16e-32 } \
501 { -march=mips64 -mips16 } { -mmips:isa64 }
70ab592f
MR
502mips_arch_create mips16e2-64 64 mips16e-64 { mips16e2-32 } \
503 { -march=mips64r2 -mips16 -mmips16e2 } \
504 { -mmips:isa64r2 }
df58fc94 505mips_arch_create micromips 64 mips64r2 {} \
919731af 506 { -march=mips64r2 -mmicromips } {}
5915a74a
CD
507mips_arch_create r3000 32 mips1 {} \
508 { -march=r3000 -mtune=r3000 } { -mmips:3000 }
af22f5b2 509mips_arch_create r3900 32 mips1 { gpr_ilocks } \
5915a74a
CD
510 { -march=r3900 -mtune=r3900 } { -mmips:3900 } \
511 { mipstx39-*-* mipstx39el-*-* }
512mips_arch_create r4000 64 mips3 {} \
513 { -march=r4000 -mtune=r4000 } { -mmips:4000 }
514mips_arch_create vr5400 64 mips4 { ror } \
515 { -march=vr5400 -mtune=vr5400 } { -mmips:5400 }
c7d289d1
MR
516mips_arch_create interaptiv-mr2 32 mips32r3 {} \
517 { -march=interaptiv-mr2 -mtune=interaptiv-mr2 } \
518 { -mmips:interaptiv-mr2 }
351cdf24 519mips_arch_create sb1 64 mips64 { mips3d oddspreg } \
5915a74a
CD
520 { -march=sb1 -mtune=sb1 } { -mmips:sb1 } \
521 { mipsisa64sb1-*-* mipsisa64sb1el-*-* }
351cdf24 522mips_arch_create octeon 64 mips64r2 { oddspreg } \
61d4e56d
AN
523 { -march=octeon -mtune=octeon } { -mmips:octeon } \
524 { mips64octeon*-*-* }
351cdf24 525mips_arch_create octeonp 64 octeon { oddspreg } \
dd6a37e7
AP
526 { -march=octeon+ -mtune=octeon+ } { -mmips:octeon+ } \
527 { }
351cdf24 528mips_arch_create octeon2 64 octeonp { oddspreg } \
432233b3
AP
529 { -march=octeon2 -mtune=octeon2 } { -mmips:octeon2 } \
530 { }
2c629856
N
531mips_arch_create octeon3 64 octeon2 { oddspreg } \
532 { -march=octeon3 -mtune=octeon3 } { -mmips:octeon3 } \
533 { }
351cdf24 534mips_arch_create xlr 64 mips64 { oddspreg } \
52b6b6b9 535 { -march=xlr -mtune=xlr } { -mmips:xlr }
0aa27725 536mips_arch_create r5900 64 mips3 { gpr_ilocks singlefloat nollsc } \
e407c74b
NC
537 { -march=r5900 -mtune=r5900 } { -mmips:5900 } \
538 { mipsr5900el-*-* mips64r5900el-*-* }
c7d289d1
MR
539mips_arch_create mips16e2-interaptiv-mr2 32 mips16e2-32 {} \
540 { -march=interaptiv-mr2 -mips16 } \
541 { -mmips:interaptiv-mr2 }
5915a74a 542
5915a74a 543#
0a44bf69
RS
544# And now begin the actual tests! VxWorks uses RELA rather than REL
545# relocations, so most of the generic dump tests will not work there.
5915a74a 546#
0a44bf69
RS
547if { [istarget mips*-*-vxworks*] } {
548 run_dump_test "vxworks1"
549 run_dump_test "vxworks1-xgot"
a284cff1
TS
550 run_dump_test "vxworks1-el"
551 run_dump_test "vxworks1-xgot-el"
668c5ebc
MR
552
553 run_list_test "option-pic-vxworks-1" "-mvxworks-pic" \
554 "MIPS invalid PIC option in VxWorks PIC"
555 run_list_test "option-pic-vxworks-2" "-mvxworks-pic" \
556 "MIPS invalid switch to SVR4 PIC from VxWorks PIC"
0a44bf69 557} elseif { [istarget mips*-*-*] } {
b138b7a9
MF
558 set addr32 [expr [istarget mipstx39*-*-*] || [istarget mips-*-linux*] || [istarget mipsel-*-linux*] \
559 || [istarget mipsisa32-*-linux*] || [istarget mipsisa32el-*-linux*]]
d4a43794 560 set has_newabi [expr [istarget *-*-irix6*] || [istarget mips*-*-linux*] \
a9d58c06
AB
561 || [istarget mips*-sde-elf*] || [istarget mips*-mti-elf*] \
562 || [istarget mips*-img-elf*]]
252b5132 563
16e5e222
RS
564 if { [istarget "mips*-*-*linux*"]
565 || [istarget "mips*-sde-elf*"]
d4a43794 566 || [istarget "mips*-mti-elf*"]
a9d58c06 567 || [istarget "mips*-img-elf*"]
16e5e222 568 || [istarget "mips*-*-*bsd*"] } then {
ff8715d0
L
569 set tmips "t"
570 } else {
571 set tmips ""
572 }
0c4ec151 573 if [istarget mips*el-*-*] {
5ef0935e 574 set el "el"
0c4ec151
RS
575 } {
576 set el ""
577 }
e1b47bd5
RS
578
579 run_dump_test_arches "dot-1" [mips_arch_list_matching mips1]
5915a74a
CD
580 run_dump_test_arches "abs" [mips_arch_list_matching mips1]
581 run_dump_test_arches "add" [mips_arch_list_matching mips1]
582 run_dump_test_arches "and" [mips_arch_list_matching mips1]
a242dc0d
AN
583 run_dump_test_arches "mips1-fp" [mips_arch_list_matching mips1]
584 run_list_test_arches "mips1-fp" "-32 -msoft-float" \
585 [mips_arch_list_matching mips1]
252b5132
RH
586 run_dump_test "break20"
587 run_dump_test "trap20"
51124b6c 588
8404fc53
MR
589 run_dump_test_arches "beq" [mips_arch_list_matching mips1]
590 run_dump_test_arches "bge" [mips_arch_list_matching mips1]
591 run_dump_test_arches "bgeu" [mips_arch_list_matching mips1]
592 run_dump_test_arches "blt" [mips_arch_list_matching mips1]
593 run_dump_test_arches "bltu" [mips_arch_list_matching mips1]
7361da2c 594 run_dump_test_arches "branch-likely" [mips_arch_list_matching mips2 !mips32r6]
5915a74a 595 run_dump_test_arches "branch-misc-1" [mips_arch_list_matching mips1]
bad36eac
DJ
596 run_dump_test_arches "branch-misc-2" [mips_arch_list_matching mips1]
597 run_dump_test_arches "branch-misc-2pic" [mips_arch_list_matching mips1]
dc36a61f 598 run_dump_test "branch-misc-3"
e51af157 599 run_dump_test_arches "branch-misc-4" [mips_arch_list_matching mips1]
00437d3b
MR
600 run_dump_test_arches "branch-misc-5" [mips_arch_list_matching mips1]
601 run_dump_test_arches "branch-misc-5pic" [mips_arch_list_matching mips1]
d7f20d66
MR
602 if $has_newabi {
603 run_dump_test_arches "branch-misc-2-64" \
604 [mips_arch_list_matching mips3]
605 run_dump_test_arches "branch-misc-2pic-64" \
606 [mips_arch_list_matching mips3]
607 run_dump_test_arches "branch-misc-4-64" \
608 [mips_arch_list_matching mips3]
00437d3b
MR
609 run_dump_test_arches "branch-misc-5-64" \
610 [mips_arch_list_matching mips3]
611 run_dump_test_arches "branch-misc-5pic-64" \
612 [mips_arch_list_matching mips3]
d7f20d66 613 }
f7870c8d 614 run_dump_test "branch-swap"
464ab0e5 615
16e5e222
RS
616 # Sweep a range of branch offsets so that it hits a position where
617 # it is at the beginning of a frag and then swapped with a 16-bit
618 # instruction from the preceding frag. The offset will be somewhere
619 # close below 4096 as this is the default obstack size limit that
620 # we use and some space will have been already consumed. The exact
621 # amount depends on the host's programming model.
622 for { set count 960 } { $count <= 1024 } { incr count } {
623 run_list_test "branch-swap-2" "--defsym count=$count" \
624 "MIPS branch swapping ($count)"
464ab0e5
MR
625 }
626
99e7978b
MF
627 run_dump_test_arches "branch-swap-3" [mips_arch_list_all]
628 run_dump_test_arches "branch-swap-4" [mips_arch_list_all]
629
c1f61bd2
MR
630 run_dump_test "branch-section-1"
631 run_dump_test "branch-section-2"
632 run_dump_test "branch-section-3"
633 run_dump_test "branch-section-4"
634 run_dump_test "branch-extern-1"
635 run_dump_test "branch-extern-2"
636 run_dump_test "branch-extern-3"
637 run_dump_test "branch-extern-4"
991f40a9
MR
638 run_dump_test "branch-weak-1"
639 run_dump_test "branch-weak-2"
640 run_dump_test "branch-weak-3"
641 run_dump_test "branch-weak-4"
642 run_dump_test "branch-weak-5"
c9775dde
MR
643 run_dump_test "branch-weak-6"
644 run_dump_test "branch-weak-7"
0e9c5a5c 645 run_dump_test "branch-local-1"
7795a8f8 646 run_dump_test "branch-local-2"
8b10b0b3 647 run_dump_test "branch-local-ignore-2"
7795a8f8 648 run_dump_test "branch-local-3"
8b10b0b3 649 run_dump_test "branch-local-ignore-3"
a6ebf616 650 run_dump_test "branch-local-4"
37b2d327
MR
651 run_dump_test "branch-local-5"
652 run_dump_test "branch-local-ignore-5"
653 run_dump_test "branch-local-6"
654 run_dump_test "branch-local-ignore-6"
655 run_dump_test "branch-local-7"
0e9c5a5c
MR
656 if $has_newabi {
657 run_dump_test "branch-local-n32-1"
7795a8f8 658 run_dump_test "branch-local-n32-2"
8b10b0b3 659 run_dump_test "branch-local-ignore-n32-2"
7795a8f8 660 run_dump_test "branch-local-n32-3"
8b10b0b3 661 run_dump_test "branch-local-ignore-n32-3"
a6ebf616 662 run_dump_test "branch-local-n32-4"
37b2d327
MR
663 run_dump_test "branch-local-n32-5"
664 run_dump_test "branch-local-ignore-n32-5"
665 run_dump_test "branch-local-n32-6"
666 run_dump_test "branch-local-ignore-n32-6"
667 run_dump_test "branch-local-n32-7"
0e9c5a5c 668 run_dump_test "branch-local-n64-1"
7795a8f8 669 run_dump_test "branch-local-n64-2"
8b10b0b3 670 run_dump_test "branch-local-ignore-n64-2"
7795a8f8 671 run_dump_test "branch-local-n64-3"
8b10b0b3 672 run_dump_test "branch-local-ignore-n64-3"
a6ebf616 673 run_dump_test "branch-local-n64-4"
37b2d327
MR
674 run_dump_test "branch-local-n64-5"
675 run_dump_test "branch-local-ignore-n64-5"
676 run_dump_test "branch-local-n64-6"
677 run_dump_test "branch-local-ignore-n64-6"
678 run_dump_test "branch-local-n64-7"
a6ebf616
MR
679 }
680 run_dump_test "branch-addend"
70e65ca8 681 run_dump_test "branch-addend-micromips"
a6ebf616
MR
682 if $has_newabi {
683 run_dump_test "branch-addend-n32"
70e65ca8 684 run_dump_test "branch-addend-micromips-n32"
a6ebf616 685 run_dump_test "branch-addend-n64"
70e65ca8 686 run_dump_test "branch-addend-micromips-n64"
0e9c5a5c 687 }
0c117286 688 run_dump_test "branch-absolute"
b416ba9b 689 run_dump_test "branch-absolute-addend"
0c117286
MR
690 if $has_newabi {
691 run_dump_test "branch-absolute-n32"
692 run_dump_test "branch-absolute-addend-n32"
693 run_dump_test "branch-absolute-n64"
694 run_dump_test "branch-absolute-addend-n64"
695 }
c1f61bd2 696
92281a5b
MR
697 run_dump_test_arches "nal-1" [mips_arch_list_matching mips1 !micromips]
698 run_dump_test_arches "nal-2" [mips_arch_list_matching mips1 !micromips]
699
2f0c68f2
CM
700 run_dump_test "compact-eh-eb-1"
701 run_dump_test "compact-eh-eb-2"
702 run_dump_test "compact-eh-eb-3"
703 run_dump_test "compact-eh-eb-4"
704 run_dump_test "compact-eh-eb-5"
705 run_dump_test "compact-eh-eb-6"
706 run_dump_test "compact-eh-eb-7"
707 run_dump_test "compact-eh-el-1"
708 run_dump_test "compact-eh-el-2"
709 run_dump_test "compact-eh-el-3"
710 run_dump_test "compact-eh-el-4"
711 run_dump_test "compact-eh-el-5"
712 run_dump_test "compact-eh-el-6"
713 run_dump_test "compact-eh-el-7"
714 run_list_test "compact-eh-err1"
715 run_list_test "compact-eh-err2"
716
23fce1e3 717 run_dump_test "div"
51124b6c 718
95f6ac88 719 if { !$addr32 && $has_newabi } {
16e5e222 720 run_dump_test_arches "dli" [mips_arch_list_matching mips3]
7388e440 721 }
16e5e222 722 run_dump_test_arches "jal" [mips_arch_list_matching mips1]
df58fc94
RS
723 run_dump_test_arches "jal-mask-11" [mips_arch_list_matching mips1]
724 run_dump_test_arches "jal-mask-12" [mips_arch_list_matching mips1]
725 run_dump_test_arches "jal-mask-21" [mips_arch_list_matching micromips]
726 run_dump_test_arches "jal-mask-22" [mips_arch_list_matching micromips]
ff239038
CM
727 run_dump_test "eret-1"
728 run_dump_test "eret-2"
729 run_dump_test "eret-3"
95f6ac88
MR
730 if { $has_newabi } {
731 run_dump_test_arches "fix-rm7000-1" \
7361da2c
AB
732 [mips_arch_list_matching mips3 !singlefloat \
733 !mips64r6]
95f6ac88 734 }
a8d14a88 735 run_dump_test_arches "fix-rm7000-2" \
7361da2c
AB
736 [mips_arch_list_matching mips3 !singlefloat \
737 !mips64r6]
df58fc94 738 run_dump_test_arches "24k-branch-delay-1" \
fbdd3712 739 [mips_arch_list_matching mips1]
17b09558 740 run_dump_test_arches "24k-triple-stores-1" \
fbdd3712 741 [mips_arch_list_matching fpisa5 !octeon]
df58fc94 742 run_dump_test_arches "24k-triple-stores-2" \
fbdd3712 743 [mips_arch_list_matching mips2]
0aa27725
RS
744 run_dump_test_arches "24k-triple-stores-2-llsc" \
745 [mips_arch_list_matching mips2 !nollsc]
df58fc94 746 run_dump_test_arches "24k-triple-stores-3" \
fbdd3712 747 [mips_arch_list_matching mips2]
df58fc94 748 run_dump_test_arches "24k-triple-stores-4" \
e407c74b 749 [mips_arch_list_matching mips2 !singlefloat]
df58fc94 750 run_dump_test_arches "24k-triple-stores-5" \
fbdd3712 751 [mips_arch_list_matching mips1]
df58fc94 752 run_dump_test_arches "24k-triple-stores-6" \
e407c74b 753 [mips_arch_list_matching mips2 !singlefloat]
df58fc94 754 run_dump_test_arches "24k-triple-stores-7" \
e407c74b 755 [mips_arch_list_matching mips2 !singlefloat]
df58fc94 756 run_dump_test_arches "24k-triple-stores-8" \
fbdd3712 757 [mips_arch_list_matching mips1]
df58fc94 758 run_dump_test_arches "24k-triple-stores-9" \
fbdd3712 759 [mips_arch_list_matching mips1]
df58fc94 760 run_dump_test_arches "24k-triple-stores-10" \
fbdd3712 761 [mips_arch_list_matching mips1]
16e5e222 762 run_dump_test_arches "24k-triple-stores-11" \
fbdd3712 763 [mips_arch_list_matching mips1]
6a32d874 764
16e5e222
RS
765 run_dump_test_arches "jal-svr4pic" [mips_arch_list_matching mips1]
766 run_dump_test_arches "jal-svr4pic-noreorder" \
4d2ad3b0 767 [mips_arch_list_matching mips1]
97f50151
MR
768 run_dump_test_arches "jal-svr4pic-local" \
769 [mips_arch_list_matching mips1]
770 if $has_newabi {
771 run_dump_test_arches "jal-svr4pic-local-n32" \
772 [mips_arch_list_matching mips3]
773 run_dump_test_arches "jal-svr4pic-local-n64" \
774 [mips_arch_list_matching mips3]
775 }
16e5e222 776 run_dump_test "jal-xgot"
21b99e26 777 run_list_test_arches "jal-range" "-32" [mips_arch_list_matching mips1]
3302cdec 778 if $has_newabi { run_dump_test "jal-newabi" }
16e5e222
RS
779 run_dump_test "la"
780 run_dump_test "la-svr4pic"
781 run_dump_test "la-xgot"
782 run_dump_test "lca-svr4pic"
783 run_dump_test "lca-xgot"
784 # XXX FIXME: Has mips2 and later insns with mips1 disassemblies.
785 # (Should split and then use appropriate arch lists.)
786 run_dump_test_arches "lb" [mips_arch_list_matching mips1 !mips2]
787 run_dump_test_arches "lb-svr4pic" \
30cfc97a 788 [mips_arch_list_matching mips1 !gpr_ilocks]
16e5e222
RS
789 run_dump_test_arches "lb-svr4pic-ilocks" [mips_arch_list_matching gpr_ilocks]
790 # Both versions specify the cpu, so we can run both regardless of
791 # the interlocking in the configured default cpu.
792 run_dump_test "lb-xgot"
793 run_dump_test "lb-xgot-ilocks"
794 run_dump_test_arches "ld" [mips_arch_list_matching mips1]
795 run_dump_test_arches "ld-forward" [mips_arch_list_matching mips1]
796 run_dump_test_arches "sd" [mips_arch_list_matching mips1]
797 run_dump_test_arches "sd-forward" [mips_arch_list_matching mips1]
798 run_dump_test_arches "l_d" [mips_arch_list_matching mips1 !singlefloat]
799 run_dump_test_arches "l_d-single" [mips_arch_list_matching mips1 singlefloat]
800 run_dump_test_arches "l_d-forward" [mips_arch_list_matching mips1 !singlefloat]
801 run_dump_test_arches "s_d" [mips_arch_list_matching mips1 !singlefloat]
802 run_dump_test_arches "s_d-single" [mips_arch_list_matching mips1 singlefloat]
803 run_dump_test_arches "s_d-forward" [mips_arch_list_matching mips1 !singlefloat]
804 run_dump_test_arches "ldc1" [mips_arch_list_matching mips2 !singlefloat]
805 run_dump_test_arches "ldc1-forward" [mips_arch_list_matching mips2 !singlefloat]
806 run_dump_test_arches "sdc1" [mips_arch_list_matching mips2 !singlefloat]
807 run_dump_test_arches "sdc1-forward" [mips_arch_list_matching mips2 !singlefloat]
808 if $has_newabi {
809 run_dump_test_arches "ld-n32" [mips_arch_list_matching mips3]
810 run_dump_test_arches "ld-forward-n32" \
17f828b3 811 [mips_arch_list_matching mips3]
16e5e222
RS
812 run_dump_test_arches "sd-n32" [mips_arch_list_matching mips3]
813 run_dump_test_arches "sd-forward-n32" \
17f828b3 814 [mips_arch_list_matching mips3]
16e5e222
RS
815 run_dump_test_arches "l_d-n32" [mips_arch_list_matching mips3 !singlefloat]
816 run_dump_test_arches "l_d-forward-n32" \
e407c74b 817 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
818 run_dump_test_arches "s_d-n32" [mips_arch_list_matching mips3 !singlefloat]
819 run_dump_test_arches "s_d-forward-n32" \
e407c74b 820 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
821 run_dump_test_arches "ldc1-n32" [mips_arch_list_matching mips3 !singlefloat]
822 run_dump_test_arches "ldc1-forward-n32" \
e407c74b 823 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
824 run_dump_test_arches "sdc1-n32" [mips_arch_list_matching mips3 !singlefloat]
825 run_dump_test_arches "sdc1-forward-n32" \
e407c74b 826 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
827 run_dump_test_arches "ld-n64" [mips_arch_list_matching mips3]
828 run_dump_test_arches "ld-forward-n64" \
484cf558 829 [mips_arch_list_matching mips3]
16e5e222
RS
830 run_dump_test_arches "sd-n64" [mips_arch_list_matching mips3]
831 run_dump_test_arches "sd-forward-n64" \
17f828b3 832 [mips_arch_list_matching mips3]
16e5e222
RS
833 run_dump_test_arches "l_d-n64" [mips_arch_list_matching mips3 !singlefloat]
834 run_dump_test_arches "l_d-forward-n64" \
e407c74b 835 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
836 run_dump_test_arches "s_d-n64" [mips_arch_list_matching mips3 !singlefloat]
837 run_dump_test_arches "s_d-forward-n64" \
e407c74b 838 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
839 run_dump_test_arches "ldc1-n64" [mips_arch_list_matching mips3 !singlefloat]
840 run_dump_test_arches "ldc1-forward-n64" \
e407c74b 841 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
842 run_dump_test_arches "sdc1-n64" [mips_arch_list_matching mips3 !singlefloat]
843 run_dump_test_arches "sdc1-forward-n64" \
e407c74b 844 [mips_arch_list_matching mips3 !singlefloat]
252b5132 845 }
f19ccbda
MR
846 run_dump_test_arches "ld-zero" [mips_arch_list_matching mips1]
847 run_dump_test_arches "ld-zero-2" [mips_arch_list_matching mips2 !nollsc]
848 run_dump_test_arches "ld-zero-3" [mips_arch_list_matching mips3 !nollsc]
849 run_dump_test_arches "ld-zero-u" [mips_arch_list_matching micromips]
850 run_dump_test_arches "ld-zero-q" [mips_arch_list_matching r5900]
16e5e222
RS
851 run_dump_test "ld-svr4pic"
852 run_dump_test "ld-xgot"
5915a74a 853 run_dump_test_arches "li" [mips_arch_list_matching mips1]
16e5e222
RS
854 run_dump_test "lifloat"
855 run_dump_test "lif-svr4pic"
856 run_dump_test "lif-xgot"
5915a74a 857 run_dump_test_arches "mips4" [mips_arch_list_matching mips4]
725fc8ed
RS
858 run_dump_test_arches "mips4-fp" "-32" \
859 [mips_arch_list_matching fpisa4]
860 run_dump_test_arches "mips4-fp" "-mabi=o64" \
861 [mips_arch_list_matching fpisa4 gpr64]
f6829a45 862 run_list_test_arches "mips4-fp" "-32 -msoft-float" \
8d367dd5 863 [mips_arch_list_matching fpisa4]
ad500c2e 864 run_dump_test_arches "mips4-branch-likely" \
7361da2c 865 [mips_arch_list_matching mips4 !mips32r6]
ad500c2e 866 run_list_test_arches "mips4-branch-likely" "-32 -msoft-float" \
7361da2c 867 [mips_arch_list_matching mips4 !mips32r6]
725fc8ed
RS
868 run_dump_test_arches "mips5-fp" "-32" \
869 [mips_arch_list_matching fpisa5]
870 run_dump_test_arches "mips5-fp" "-mabi=o64" \
871 [mips_arch_list_matching fpisa5 gpr64]
23fce1e3 872 run_dump_test "mul"
5915a74a 873
30cfc97a 874 run_dump_test_arches "rol" [mips_arch_list_matching mips1 !ror]
5915a74a
CD
875 run_dump_test_arches "rol-hw" [mips_arch_list_matching ror]
876
6b438200
MR
877 run_dump_test_arches "rol64" \
878 [mips_arch_list_matching gpr64 !ror !mips16-32]
5915a74a
CD
879 run_dump_test_arches "rol64-hw" [mips_arch_list_matching gpr64 ror]
880
16e5e222 881 run_dump_test "sb"
00acd688 882 run_dump_test_arches "sdata-gp" [mips_arch_list_matching mips1]
252b5132 883 run_dump_test "trunc"
16e5e222 884 run_dump_test "ulh"
7361da2c
AB
885 run_dump_test_arches "ulh2-eb" [mips_arch_list_matching mips1 !mips32r6]
886 run_dump_test_arches "ulh2-el" [mips_arch_list_matching mips1 !mips32r6]
16e5e222
RS
887 run_dump_test "ulh-svr4pic"
888 run_dump_test "ulh-xgot"
889 run_dump_test "ulw"
890 run_dump_test "uld"
891 run_dump_test "ush"
892 run_dump_test "usw"
893 run_dump_test "usd"
7361da2c
AB
894 run_dump_test_arches "ulw2-eb" [mips_arch_list_matching mips1 !gpr_ilocks \
895 !mips32r6]
896 run_dump_test_arches "ulw2-eb-ilocks" [mips_arch_list_matching gpr_ilocks \
897 !mips32r6]
898 run_dump_test_arches "ulw2-el" [mips_arch_list_matching mips1 !gpr_ilocks \
899 !mips32r6]
900 run_dump_test_arches "ulw2-el-ilocks" [mips_arch_list_matching gpr_ilocks \
901 !mips32r6]
902
903 run_dump_test_arches "uld2-eb" [mips_arch_list_matching mips3 !mips32r6]
904 run_dump_test_arches "uld2-el" [mips_arch_list_matching mips3 !mips32r6]
af22f5b2 905
c60aaac1 906 run_dump_test_arches "mips16" [mips_arch_list_matching mips16-64]
95f6ac88 907 if { $has_newabi } {
c60aaac1
MR
908 run_dump_test_arches "mips16-64" \
909 [mips_arch_list_matching mips16-64]
95f6ac88 910 }
c60aaac1
MR
911 run_dump_test_arches "mips16-macro" [mips_arch_list_matching mips16-32]
912 run_dump_test_arches "mips16-macro-t" \
913 [mips_arch_list_matching mips16-32]
914 run_dump_test_arches "mips16-macro-e" \
915 [mips_arch_list_matching mips16-32]
0674ee5d
MR
916 run_dump_test_arches "mips16-insn-t" \
917 [mips_arch_list_matching mips16-32]
918 run_dump_test_arches "mips16-insn-e" \
919 [mips_arch_list_matching mips16-32]
16e5e222 920 # Check MIPS16e extensions
6b438200 921 run_dump_test_arches "mips16e" [mips_arch_list_matching mips16e-32]
c60aaac1 922 run_dump_test_arches "mips16e-64" [mips_arch_list_matching mips16e-32]
3f3467ff
MR
923 # Check MIPS16e2 extensions.
924 run_dump_test_arches "mips16e2" [mips_arch_list_matching mips16e2-32]
925 run_dump_test_arches "mips16e2-mt" [mips_arch_list_matching mips16e2-32]
11dd08e9
MR
926 # Check MIPS16 ISA subset disassembly
927 run_dump_test_arches "mips16-sub" [mips_arch_list_matching mips16-32]
928 run_dump_test_arches "mips16e-sub" [mips_arch_list_matching mips16-32]
929 run_dump_test_arches "mips16e-64-sub" \
930 [mips_arch_list_matching mips16-32]
3f3467ff
MR
931 run_dump_test_arches "mips16e2-sub" [mips_arch_list_matching mips16-32]
932 run_dump_test_arches "mips16e2-mt-sub" \
933 [mips_arch_list_matching mips16-32]
11dd08e9 934
16e5e222
RS
935 # Check jalx handling
936 run_dump_test "mips16-jalx"
937 run_dump_test "mips-jalx"
938 run_dump_test "mips-jalx-2"
17c6c9d9
MR
939 run_dump_test "jalx-imm"
940 run_dump_test "jalx-addend"
44d3da23 941 run_dump_test "jalx-local"
17c6c9d9
MR
942 if $has_newabi {
943 run_dump_test "jalx-imm-n32"
944 run_dump_test "jalx-addend-n32"
44d3da23 945 run_dump_test "jalx-local-n32"
17c6c9d9
MR
946 run_dump_test "jalx-imm-n64"
947 run_dump_test "jalx-addend-n64"
44d3da23 948 run_dump_test "jalx-local-n64"
17c6c9d9 949 }
9d862524
MR
950
951 run_list_test "unaligned-jump-1" "-32" \
952 "MIPS jump to unaligned symbol 1"
953 run_list_test "unaligned-jump-2" "-32" \
954 "MIPS jump to unaligned symbol 2"
955 if $has_newabi {
956 run_dump_test "unaligned-jump-3"
957 }
958 run_list_test "unaligned-jump-mips16-1" "-32" \
959 "MIPS16 jump to unaligned symbol 1"
960 run_list_test "unaligned-jump-mips16-2" "-32" \
961 "MIPS16 jump to unaligned symbol 2"
962 if $has_newabi {
963 run_dump_test "unaligned-jump-mips16-3"
964 }
965 run_list_test "unaligned-jump-micromips-1" "-32" \
966 "microMIPS jump to unaligned symbol 1"
967 run_list_test "unaligned-jump-micromips-2" "-32" \
968 "microMIPS jump to unaligned symbol 2"
969 if $has_newabi {
970 run_dump_test "unaligned-jump-micromips-3"
971 }
972 run_list_test "unaligned-branch-1" "-32" \
973 "MIPS branch to unaligned symbol 1"
974 run_list_test "unaligned-branch-2" "-32" \
975 "MIPS branch to unaligned symbol 2"
976 if $has_newabi {
977 run_dump_test "unaligned-branch-3"
978 }
979 run_list_test "unaligned-branch-r6-1" "-32" \
980 "MIPSr6 branch to unaligned symbol 1"
981 run_list_test "unaligned-branch-r6-2" "-32 -mips64r6" \
982 "MIPSr6 branch to unaligned symbol 2"
983 run_list_test "unaligned-branch-r6-3" "-32" \
984 "MIPSr6 branch to unaligned symbol 3"
985 run_list_test "unaligned-branch-r6-4" "-32 -mips64r6" \
986 "MIPSr6 branch to unaligned symbol 4"
987 if $has_newabi {
988 run_dump_test "unaligned-branch-r6-5"
989 run_dump_test "unaligned-branch-r6-6"
990 }
991 run_list_test "unaligned-branch-mips16-1" "-32" \
992 "MIPS16 branch to unaligned symbol 1"
993 run_list_test "unaligned-branch-mips16-2" "-32" \
994 "MIPS16 branch to unaligned symbol 2"
995 if $has_newabi {
996 run_dump_test "unaligned-branch-mips16-3"
997 }
998 run_list_test "unaligned-branch-micromips-1" "-32" \
999 "microMIPS branch to unaligned symbol 1"
1000 run_list_test "unaligned-branch-micromips-2" "-32" \
1001 "microMIPS branch to unaligned symbol 2"
1002 if $has_newabi {
1003 run_dump_test "unaligned-branch-micromips-3"
1004 }
1005
16e5e222
RS
1006 # Check MIPS16 HI16/LO16 relocations
1007 run_dump_test "mips16-hilo"
3f3467ff 1008 run_dump_test "mips16e2-hilo"
16e5e222
RS
1009 if $has_newabi {
1010 run_dump_test "mips16-hilo-n32"
3f3467ff 1011 run_dump_test "mips16e2-hilo-n32"
3396de36 1012 }
16e5e222 1013 run_dump_test "mips16-hilo-match"
e295202f 1014 run_dump_test "mips16-reloc-error"
3f3467ff 1015 run_dump_test "mips16e2-reloc-error"
1a7bf198 1016 run_dump_test "mips16-reg-error"
3f3467ff 1017 run_dump_test "mips16e2-imm-error"
e295202f 1018
252b5132
RH
1019 run_dump_test "delay"
1020 run_dump_test "nodelay"
1021 run_dump_test "mips4010"
1022 run_dump_test "mips4650"
1023 run_dump_test "mips4100"
60b63b72
RS
1024 run_dump_test "vr4111"
1025 run_dump_test "vr4120"
532c738a 1026 run_dump_test "vr4120-2"
11db99f8 1027 run_dump_test "vr4130"
60b63b72 1028 run_dump_test "vr5400"
5c324c16 1029 run_list_test "vr5400-ill" "-march=vr5400"
60b63b72 1030 run_dump_test "vr5500"
5a7ea749 1031 run_dump_test "rm7000"
99c14723 1032 run_dump_test "perfcount"
252b5132
RH
1033 run_dump_test "lineno"
1034 run_dump_test "sync"
5915a74a 1035
16e5e222 1036 run_dump_test_arches "virt" [mips_arch_list_matching mips32r2]
95f6ac88
MR
1037 if { $has_newabi } {
1038 run_dump_test_arches "virt64" [mips_arch_list_matching mips64r2]
1039 }
b015e599 1040
5915a74a 1041 run_dump_test_arches "mips32" [mips_arch_list_matching mips32]
df58fc94 1042 run_dump_test_arches "mips32-imm" [mips_arch_list_matching mips32]
5915a74a 1043
1787fe5b 1044 run_dump_test_arches "mips32-sf32" [mips_arch_list_matching mips32]
f6829a45
AN
1045 run_list_test_arches "mips32-sf32" "-32 -msoft-float" \
1046 [mips_arch_list_matching mips32]
a6d8f55b
AN
1047 run_dump_test_arches "mips32-cp2" [mips_arch_list_matching mips32 \
1048 !octeon]
1787fe5b 1049
af7ee8bf 1050 run_dump_test_arches "mips32r2" [mips_arch_list_matching mips32r2]
a6d8f55b
AN
1051 run_dump_test_arches "mips32r2-cp2" [mips_arch_list_matching mips32r2 \
1052 !octeon]
f6829a45
AN
1053 run_dump_test_arches "mips32r2-fp32" \
1054 [mips_arch_list_matching mips32r2]
1055 run_list_test_arches "mips32r2-fp32" "-32 -msoft-float" \
1056 [mips_arch_list_matching mips32r2]
5f74bc13 1057 run_list_test_arches "mips32r2-ill" "-32" \
f6829a45 1058 [mips_arch_list_matching mips32r2 gpr32]
5f74bc13 1059 run_list_test_arches "mips32r2-ill-fp64" "-mabi=o64" \
f6829a45
AN
1060 [mips_arch_list_matching mips32r2 gpr64]
1061 run_list_test_arches "mips32r2-ill-nofp" "-32 -msoft-float" \
1062 [mips_arch_list_matching mips32r2]
af7ee8bf 1063
5915a74a 1064 run_dump_test_arches "mips64" [mips_arch_list_matching mips64]
a6d8f55b
AN
1065 run_dump_test_arches "mips64-cp2" [mips_arch_list_matching mips64 \
1066 !octeon]
5915a74a 1067
5f74bc13 1068 run_dump_test_arches "mips64r2" [mips_arch_list_matching mips64r2]
725fc8ed 1069 run_list_test_arches "mips64r2-ill" [mips_arch_list_matching mips64r2]
5f74bc13 1070
fef14a42
TS
1071 run_dump_test "set-arch"
1072
b892b944
TS
1073 if { !$addr32 } {
1074 run_dump_test "mips64-mips3d"
95f6ac88
MR
1075 if { $has_newabi } {
1076 run_dump_test_arches "mips64-mips3d-incl" \
1077 [mips_arch_list_matching mips3d]
1078 }
5915a74a 1079
b892b944 1080 run_dump_test "mips64-mdmx"
95f6ac88
MR
1081 if { $has_newabi } {
1082 run_dump_test "sb1-ext-mdmx"
1083 run_dump_test "sb1-ext-ps"
1084 }
52b6b6b9 1085 run_dump_test "xlr-ext"
b892b944 1086 }
252b5132 1087
7361da2c
AB
1088 run_dump_test_arches "relax" [mips_arch_list_matching mips2 !mips32r6]
1089 run_dump_test_arches "relax-at" [mips_arch_list_matching mips2 !mips32r6]
9f00292e
MR
1090 run_dump_test_arches "relax-offset" [mips_arch_list_matching mips1 \
1091 !mips32r6]
895921c9
MR
1092 run_dump_test "relax-swap1-mips1"
1093 run_dump_test "relax-swap1-mips2"
1094 run_dump_test "relax-swap2"
9301f9c3 1095 run_dump_test_arches "relax-swap3" [mips_arch_list_all]
919731af 1096 run_list_test_arches "relax-bc1any" "-mips3d -mabi=o64 -relax-branch" \
3bf0dbfb 1097 [mips_arch_list_matching mips64 \
7361da2c 1098 !micromips !mips32r6]
d455268f 1099 run_list_test_arches "relax-bposge" "-mdsp -relax-branch" \
df58fc94 1100 [mips_arch_list_matching mips64r2 \
7361da2c 1101 !micromips !mips32r6]
594e740f 1102
7f3c4072
CM
1103 run_dump_test_arches "eva" [mips_arch_list_matching mips32r2 !octeon]
1104
21b99e26
AO
1105 run_list_test "illegal" "-32"
1106 run_list_test "baddata1" "-32"
e7c604dd 1107 run_list_test "jalr" ""
d9e138e2 1108
dc462216
RS
1109 run_dump_test "mips-gp32-fp32"
1110 run_dump_test "mips-gp32-fp64"
1111 run_dump_test "mips-gp64-fp32"
1112 run_dump_test "mips-gp64-fp64"
dc462216 1113
16e5e222
RS
1114 # Make sure that -mcpu=FOO and -mFOO are equivalent. Assemble a file
1115 # containing 4650-specific instructions with -m4650 and -mcpu=4650,
1116 # and verify that they're the same. Specifically, we're checking
1117 # that the EF_MIPS_MACH field is set, and that the 4650 'mul'
1118 # instruction does get used. In previous versions of GAS,
1119 # only -mcpu=4650 would set the EF_MIPS_MACH field; -m4650 wouldn't.
1120 run_dump_test "elf_e_flags1"
1121 run_dump_test "elf_e_flags2"
1122 run_dump_test "elf_e_flags3"
1123 run_dump_test "elf_e_flags4"
1124
1125 # Check EF_MIPS_ARCH markings for each supported architecture.
1126 run_dump_test "elf_arch_mips1"
1127 run_dump_test "elf_arch_mips2"
1128 run_dump_test "elf_arch_mips3"
1129 run_dump_test "elf_arch_mips4"
1130 run_dump_test "elf_arch_mips5"
1131 run_dump_test "elf_arch_mips32"
1132 run_dump_test "elf_arch_mips32r2"
351cdf24
MF
1133 run_dump_test "elf_arch_mips32r3"
1134 run_dump_test "elf_arch_mips32r5"
09c14161 1135 run_dump_test "elf_arch_mips32r6"
16e5e222
RS
1136 run_dump_test "elf_arch_mips64"
1137 run_dump_test "elf_arch_mips64r2"
351cdf24
MF
1138 run_dump_test "elf_arch_mips64r3"
1139 run_dump_test "elf_arch_mips64r5"
09c14161 1140 run_dump_test "elf_arch_mips64r6"
16e5e222
RS
1141
1142 # Verify that ASE markings are handled properly.
1143 run_dump_test "elf_ase_mips16"
1144 run_dump_test "elf_ase_mips16-2"
3f3467ff
MR
1145 run_dump_test "elf_ase_mips16e2"
1146 run_dump_test "elf_ase_mips16e2-2"
16e5e222
RS
1147
1148 run_dump_test "elf_ase_micromips"
1149 run_dump_test "elf_ase_micromips-2"
1150
819e1f86 1151 # Verify that machine markings are handled properly.
ef272caa 1152 run_dump_test "elf_mach_5900"
819e1f86
MR
1153 run_dump_test "elf_mach_interaptiv-mr2"
1154
16e5e222
RS
1155 run_dump_test "mips-gp32-fp32-pic"
1156 run_dump_test "mips-gp32-fp64-pic"
1157 run_dump_test "mips-gp64-fp32-pic"
1158 run_dump_test "mips-gp64-fp64-pic"
1159
1160 run_dump_test "mips-abi32"
1161 run_dump_test "mips-abi32-pic"
1162 run_dump_test "mips-abi32-pic2"
1163
1164 run_dump_test "elf${el}-rel"
6b438200
MR
1165 run_dump_test_arches "elf${el}-rel2" \
1166 [mips_arch_list_matching gpr64 !singlefloat !mips16-32]
16e5e222
RS
1167 run_dump_test "e32${el}-rel2"
1168 run_dump_test "elf${el}-rel3"
6b438200 1169 run_dump_test_arches "elf-rel4" [mips_arch_list_matching gpr64 !mips16-32]
16e5e222
RS
1170 run_dump_test "e32-rel4"
1171 run_dump_test "elf-rel5"
1172 run_dump_test "elf-rel6"
1173 if $has_newabi {
1174 run_dump_test "elf-rel6-n32"
1175 run_dump_test "elf-rel6-n64"
1176 }
1177 run_dump_test "elf-rel7"
1178 run_dump_test "elf-rel8"
1179 run_dump_test "elf-rel8-mips16"
1180 run_dump_test "elf-rel9"
1181 run_dump_test "elf-rel9-mips16"
3f3467ff 1182 run_dump_test "elf-rel9-mips16e2"
16e5e222
RS
1183 if $has_newabi {
1184 run_dump_test "elf-rel10"
1185 run_dump_test "elf-rel11"
1186 }
1187 run_dump_test "elf-rel12"
1188 run_dump_test "elf-rel13"
1189 run_dump_test "elf-rel13-mips16"
1190 run_dump_test "elf-rel14"
70a31400 1191
16e5e222
RS
1192 if $has_newabi {
1193 run_dump_test "elf-rel15"
1194 run_dump_test "elf-rel16"
05760fd2 1195
16e5e222
RS
1196 run_dump_test "elf-rel-got-n32"
1197 run_dump_test "elf-rel-xgot-n32"
1198 run_dump_test "elf-rel-got-n64"
1199 run_dump_test "elf-rel-xgot-n64"
1200 }
1201 run_dump_test "elf-rel17"
1202 if $has_newabi {
1203 run_dump_test "elf-rel18"
1204 }
1205 run_dump_test "elf-rel19"
1206 run_dump_test "elf-rel20"
1207 if $has_newabi {
1208 run_dump_test "elf-rel21"
1209 run_dump_test "elf-rel22"
1210 run_dump_test "elf-rel23"
1211 run_dump_test "elf-rel23a"
1212 run_dump_test "elf-rel23b"
1213 run_dump_test "elf-rel24"
1214 }
e8ede7c7 1215
16e5e222
RS
1216 run_dump_test "elf-rel25"
1217 run_dump_test "elf-rel25a"
1218 run_dump_test "elf-rel26"
30cfc97a 1219
16e5e222 1220 run_dump_test_arches "elf-rel27" [mips_arch_list_all]
e391c024 1221
16e5e222
RS
1222 if $has_newabi {
1223 run_dump_test "elf-rel28-n32"
156f2c00 1224 run_dump_test "elf-rel28-micromips-n32"
16e5e222 1225 run_dump_test "elf-rel28-n64"
156f2c00 1226 run_dump_test "elf-rel28-micromips-n64"
14c80123
MR
1227 run_dump_test "elf-rel28-lldscd-n32"
1228 run_dump_test "elf-rel28-lldscd-micromips-n32"
1229 run_dump_test "elf-rel28-lldscd-n64"
1230 run_dump_test "elf-rel28-lldscd-micromips-n64"
16e5e222
RS
1231 run_dump_test_arches "elf-rel29" [mips_arch_list_matching mips3]
1232 }
1233 run_list_test_arches "elf-rel30" "-32" [mips_arch_list_all]
08ddc280 1234
9e009953
MR
1235 run_dump_test "comdat-reloc"
1236
16e5e222
RS
1237 run_dump_test "${tmips}mips${el}16-e"
1238 run_dump_test "${tmips}mips${el}16-f"
ce70d90a 1239
16e5e222
RS
1240 run_dump_test "elf-consthilo"
1241 run_dump_test "expr1"
e3a82c8e 1242
16e5e222
RS
1243 run_list_test "tls-ill" "-32"
1244 run_dump_test "tls-o32"
1245 run_dump_test "tls-relw"
1246 run_dump_test "jalr2"
1247 run_dump_test_arches "jalr3" [mips_arch_list_matching mips1 \
42868dce 1248 !micromips]
c1556ecd
MR
1249 run_dump_test_arches "jalr4" [mips_arch_list_matching mips1 \
1250 !micromips]
16e5e222
RS
1251 if $has_newabi {
1252 run_dump_test_arches "jalr3-n32" \
42868dce
MR
1253 [mips_arch_list_matching mips3 \
1254 !micromips]
c1556ecd
MR
1255 run_dump_test_arches "jalr4-n32" \
1256 [mips_arch_list_matching mips3 \
1257 !micromips]
16e5e222 1258 run_dump_test_arches "jalr3-n64" \
42868dce
MR
1259 [mips_arch_list_matching mips3 \
1260 !micromips]
c1556ecd
MR
1261 run_dump_test_arches "jalr4-n64" \
1262 [mips_arch_list_matching mips3 \
1263 !micromips]
07147777 1264 }
640c0ccd 1265
37f9ec62
MR
1266 run_dump_test_arches "aent" [mips_arch_list_matching mips1]
1267 run_dump_test_arches "aent-2" [mips_arch_list_matching mips1]
1268 run_dump_test_arches "aent-mdebug" [mips_arch_list_matching mips1]
1269 run_dump_test_arches "aent-mdebug-2" \
1270 [mips_arch_list_matching mips1]
16e5e222 1271
16e5e222
RS
1272 run_dump_test_arches "loc-swap" [mips_arch_list_all]
1273 run_dump_test_arches "loc-swap-dis" [mips_arch_list_all]
1274 run_dump_test_arches "loc-swap-2" [mips_arch_list_all]
1275 run_dump_test_arches "loc-swap-3" [mips_arch_list_all]
1276
ba92f887
MR
1277 run_dump_test "nan-legacy-1"
1278 run_dump_test "nan-legacy-2"
1279 run_dump_test "nan-legacy-3"
1280 run_dump_test "nan-legacy-4"
1281 run_dump_test "nan-legacy-5"
1282
1283 run_dump_test "nan-2008-1"
1284 run_dump_test "nan-2008-2"
1285 run_dump_test "nan-2008-3"
1286 run_dump_test "nan-2008-4"
1287
1288 run_list_test "nan-error-1"
1289 run_list_test "nan-error-2" "-mnan=foo"
1290
5e0116d5 1291 if $has_newabi {
a4cb6c4d
AO
1292 run_dump_test "n32-consec"
1293 }
1294
40fc1451
SD
1295 # tests of objdump's ability to disassemble the move mnemonic
1296 run_dump_test_arches "move" [mips_arch_list_matching mips64 !micromips]
1297 run_dump_test_arches "micromips32-move" [mips_arch_list_matching micromips]
1298
640c0ccd
CD
1299 # tests of objdump's ability to disassemble using different
1300 # register names.
1301 run_dump_test "gpr-names-numeric"
1302 run_dump_test "gpr-names-32"
1303 run_dump_test "gpr-names-n32"
1304 run_dump_test "gpr-names-64"
1305
1306 run_dump_test "fpr-names-numeric"
1307 run_dump_test "fpr-names-32"
1308 run_dump_test "fpr-names-n32"
1309 run_dump_test "fpr-names-64"
1310
1311 run_dump_test "cp0-names-numeric"
f409fd1e
MR
1312 run_dump_test "cp0-names-r3000"
1313 run_dump_test "cp0-names-r4000" \
1314 { { {name} {(r4000)} } { {objdump} {-M cp0-names=r4000} } }
1315 run_dump_test "cp0-names-r4000" \
1316 { { {name} {(r4400)} } { {objdump} {-M cp0-names=r4400} } }
640c0ccd 1317 run_dump_test "cp0-names-mips32"
af7ee8bf 1318 run_dump_test "cp0-names-mips32r2"
640c0ccd 1319 run_dump_test "cp0-names-mips64"
5f74bc13 1320 run_dump_test "cp0-names-mips64r2"
640c0ccd 1321 run_dump_test "cp0-names-sb1"
af7ee8bf 1322
bbcc0807
CD
1323 run_dump_test "cp0sel-names-numeric"
1324 run_dump_test "cp0sel-names-mips32"
1325 run_dump_test "cp0sel-names-mips32r2"
1326 run_dump_test "cp0sel-names-mips64"
5f74bc13 1327 run_dump_test "cp0sel-names-mips64r2"
bbcc0807
CD
1328 run_dump_test "cp0sel-names-sb1"
1329
dc76d757
AB
1330 run_dump_test "cp1-names-numeric"
1331 run_dump_test "cp1-names-r3000"
1332 run_dump_test "cp1-names-r4000" \
1333 { { {name} {(r4000)} } { {objdump} {-M cp0-names=r4000} } }
1334 run_dump_test "cp1-names-r4000" \
1335 { { {name} {(r4400)} } { {objdump} {-M cp0-names=r4400} } }
1336 run_dump_test "cp1-names-mips32"
1337 run_dump_test "cp1-names-mips32r2"
1338 run_dump_test "cp1-names-mips64"
1339 run_dump_test "cp1-names-mips64r2"
1340 run_dump_test "cp1-names-sb1"
1341
af7ee8bf
CD
1342 run_dump_test "hwr-names-numeric"
1343 run_dump_test "hwr-names-mips32r2"
5f74bc13 1344 run_dump_test "hwr-names-mips64r2"
ecd13cd3
TS
1345
1346 run_dump_test "ldstla-32"
2051e8c4 1347 run_dump_test "ldstla-32-mips3"
ecd13cd3 1348 run_dump_test "ldstla-32-shared"
2051e8c4
MR
1349 run_dump_test "ldstla-32-mips3-shared"
1350 run_list_test "ldstla-32-1" "-mabi=32" \
1351 "MIPS ld-st-la bad constants (ABI o32)"
1352 run_list_test "ldstla-32-mips3-1" "-mabi=32" \
1353 "MIPS ld-st-la bad constants (ABI o32, mips3)"
1354 run_list_test "ldstla-32-1" "-KPIC -mabi=32" \
1355 "MIPS ld-st-la bad constants (ABI o32, shared)"
1356 run_list_test "ldstla-32-mips3-1" "-KPIC -mabi=32" \
1357 "MIPS ld-st-la bad constants (ABI o32, mips3, shared)"
aed1a261 1358 run_dump_test "ldstla-eabi64"
ecd13cd3 1359 if $has_newabi {
ecd13cd3
TS
1360 run_dump_test "ldstla-n64"
1361 run_dump_test "ldstla-n64-shared"
aed1a261 1362 run_dump_test "ldstla-n64-sym32"
ecd13cd3 1363 }
5fc68419
RS
1364
1365 run_dump_test "macro-warn-1"
1366 run_dump_test "macro-warn-2"
1367 run_dump_test "macro-warn-3"
1368 run_dump_test "macro-warn-4"
1369 if $has_newabi {
1370 run_dump_test "macro-warn-1-n32"
1371 run_dump_test "macro-warn-2-n32"
1372 }
8fc2e39e
TS
1373
1374 run_dump_test "noat-1"
1375 run_list_test "noat-2" ""
1376 run_list_test "noat-3" ""
1377 run_list_test "noat-4" ""
1378 run_list_test "noat-5" ""
1379 run_list_test "noat-6" ""
1380 run_list_test "noat-7" ""
58e2ea4d 1381
741fe287
MR
1382 run_dump_test "at-1"
1383 run_list_test "at-2" "-32 -mips1" "MIPS at-2"
1384
350cc38d
MS
1385 run_dump_test "loongson-2e"
1386 run_dump_test "loongson-2f"
c67a084a
NC
1387 run_dump_test "loongson-2f-2"
1388 run_dump_test "loongson-2f-3"
61d4e56d 1389
a471ec3a 1390 run_dump_test "loongson-3a"
98675402
RS
1391 run_dump_test "loongson-3a-2"
1392 run_dump_test "loongson-3a-3"
a471ec3a 1393
8095d2f7
CX
1394 run_dump_test "loongson-2f-mmi"
1395 run_dump_test "loongson-3a-mmi"
1396
716c08de 1397 run_dump_test "loongson-cam"
a693765e 1398 run_dump_test "loongson-ext2"
716c08de 1399
95f6ac88
MR
1400 if { $has_newabi } {
1401 run_dump_test_arches "octeon" [mips_arch_list_matching octeon]
1402 }
dd6a37e7 1403 run_dump_test_arches "octeon-saa-saad" [mips_arch_list_matching octeonp]
725fc8ed 1404 run_list_test_arches "octeon-ill" [mips_arch_list_matching octeon]
95f6ac88
MR
1405 if { $has_newabi } {
1406 run_dump_test_arches "octeon-pref" \
1407 [mips_arch_list_matching octeon]
1408 }
432233b3 1409 run_dump_test_arches "octeon2" [mips_arch_list_matching octeon2]
2c629856 1410 run_dump_test_arches "octeon3" [mips_arch_list_matching octeon3]
350cc38d 1411
0797561a 1412 run_dump_test "smartmips"
03f66e8a
MR
1413 run_dump_test_arches "mips32-dsp" [mips_arch_list_matching mips32r2 \
1414 !octeon]
1415 run_dump_test_arches "mips32-dspr2" [mips_arch_list_matching mips32r2 \
1416 !octeon]
8f4f9071 1417 run_dump_test_arches "mips32-dspr3" [mips_arch_list_matching mips32r6]
0797561a
AN
1418 run_dump_test "mips64-dsp"
1419 run_dump_test "mips32-mt"
305e06d3 1420
819e1f86
MR
1421 run_dump_test_arches "save" [lsort -dictionary -unique [concat \
1422 [mips_arch_list_matching mips16e-32] \
1423 [mips_arch_list_matching interaptiv-mr2]]]
1424 run_dump_test_arches "save-err" [lsort -dictionary -unique [concat \
1425 [mips_arch_list_matching mips16e-32] \
1426 [mips_arch_list_matching interaptiv-mr2]]]
1427 run_dump_test_arches "save-sub" [lsort -dictionary -unique [concat \
1428 [mips_arch_list_matching mips1 !micromips] \
1429 [mips_arch_list_matching mips16-32]]]
79cb3f75 1430
16e5e222
RS
1431 run_dump_test "mips16-dwarf2"
1432 if $has_newabi {
1433 run_dump_test "mips16-dwarf2-n32"
0499d65b 1434 }
16e5e222
RS
1435 run_dump_test "mips16-stabs"
1436
1437 run_dump_test "mips16e-jrc"
3f3467ff 1438 run_dump_test "mips16e2-lui"
92cebb3d 1439 run_dump_test "mips16e2-mt-err"
819e1f86
MR
1440 run_dump_test "mips16e2-copy"
1441 run_dump_test "mips16e2-copy-err"
3f3467ff 1442
16e5e222 1443 run_dump_test "mips16-intermix"
f17ecb4b 1444 run_dump_test "mips16-extend"
645c4556 1445 run_dump_test "mips16-extend-swap"
353abf7c 1446 run_dump_test "mips16-sprel-swap"
c97dda72 1447 run_dump_test "mips16-sdrasp"
3fb49709 1448 run_dump_test "mips16-insn-length-noargs"
16e5e222 1449
eefc3365
MR
1450 run_dump_test "mips16-branch-unextended-1"
1451 run_dump_test "mips16-branch-unextended-2"
1da43acc
MR
1452 run_dump_test "mips16-relax-unextended-1"
1453 run_dump_test "mips16-relax-unextended-2"
7fd53920
MR
1454 run_dump_test "mips16-jal-t"
1455 run_dump_test "mips16-jal-e"
eefc3365 1456
5284e471
MR
1457 run_dump_test_arches "mips16-asmacro" [mips_arch_list_matching mips16-32]
1458
0a44bf69
RS
1459 run_dump_test "vxworks1"
1460 run_dump_test "vxworks1-xgot"
a284cff1
TS
1461 run_dump_test "vxworks1-el"
1462 run_dump_test "vxworks1-xgot-el"
ef75f014
TS
1463
1464 run_dump_test "noreorder"
49954fb4 1465 run_dump_test "align"
742a56fe
RS
1466 run_dump_test "align2"
1467 run_dump_test "align2-el"
462427c4 1468 run_dump_test "align3"
c8ab98e0 1469 run_dump_test "odd-float"
7bb01e2d 1470 run_dump_test "insn-opts"
f6829a45
AN
1471
1472 run_list_test_arches "mips-macro-ill-sfp" "-32 -msingle-float" \
1473 [mips_arch_list_matching mips2]
1474 run_list_test_arches "mips-macro-ill-nofp" "-32 -msoft-float" \
1475 [mips_arch_list_matching mips2]
1476
1477 run_list_test_arches "mips-hard-float-flag" \
1478 "-32 -msoft-float -mhard-float" \
16e5e222 1479 [mips_arch_list_matching mips1 !singlefloat]
f6829a45
AN
1480 run_list_test_arches "mips-double-float-flag" \
1481 "-32 -msingle-float -mdouble-float" \
16e5e222 1482 [mips_arch_list_matching mips1 !singlefloat]
30c09090
RS
1483
1484 run_dump_test "mips16-vis-1"
861fb55a 1485 run_dump_test "call-nonpic-1"
5fb8dac1 1486 run_dump_test "mips32-sync"
3f3467ff
MR
1487 run_dump_test_arches "mips32r2-sync" [lsort -dictionary -unique [concat \
1488 [mips_arch_list_matching mips32r2] \
1489 [mips_arch_list_matching mips16e2-32]]]
1490 run_dump_test_arches "mips32r2-sync-1" [lsort -dictionary -unique [concat \
1491 [mips_arch_list_matching mips32r2] \
1492 [mips_arch_list_matching mips16e2-32]]]
7361da2c
AB
1493 run_dump_test_arches "alnv_ps-swap" [mips_arch_list_matching fpisa5 \
1494 !mips32r6]
df58fc94
RS
1495 run_dump_test_arches "cache" [lsort -dictionary -unique [concat \
1496 [mips_arch_list_matching mips3] \
1497 [mips_arch_list_matching mips32] ] ]
7361da2c
AB
1498 run_dump_test_arches "daddi" [mips_arch_list_matching mips3 \
1499 !mips32r6]
df58fc94
RS
1500 run_dump_test_arches "pref" [lsort -dictionary -unique [concat \
1501 [mips_arch_list_matching mips4] \
1502 [mips_arch_list_matching mips32] ] ]
5fb8dac1 1503
a79558d9 1504 if $has_newabi { run_dump_test "cfi-n64-1" }
f77ef3e2
RS
1505
1506 run_dump_test "pr12915"
4c260379
RS
1507 run_dump_test "reginfo-1a"
1508 run_dump_test "reginfo-1b"
2d6dda71
MR
1509 run_dump_test "reginfo-2"
1510 if $has_newabi {
1511 run_dump_test "reginfo-2-n32"
1512 }
df58fc94 1513
16e5e222
RS
1514 run_dump_test "micromips"
1515 run_dump_test "micromips-trap"
7bd374a4 1516 run_dump_test "micromips-compact"
833794fc
MR
1517 run_dump_test "micromips-insn32"
1518 run_dump_test "micromips-noinsn32"
1519 run_list_test "micromips" "-mips32r2 -32 -mfp64 -minsn32" \
1520 "microMIPS for MIPS32r2 (instructions invalid in insn32 mode)"
16e5e222
RS
1521 run_list_test "micromips-size-0" \
1522 "-32 -march=mips64 -mmicromips" "microMIPS instruction size 0"
1523 run_dump_test "micromips-size-1"
1524 run_dump_test "micromips-branch-relax"
1525 run_dump_test "micromips-branch-relax-pic"
8484fb75
MR
1526 run_dump_test "micromips-branch-relax-insn32"
1527 run_dump_test "micromips-branch-relax-insn32-pic"
16e5e222
RS
1528 run_dump_test "micromips-branch-delay"
1529 run_dump_test "micromips-warn-branch-delay"
1530 run_dump_test "micromips-warn-branch-delay-1"
0c117286 1531 run_dump_test "micromips-branch-absolute"
b416ba9b 1532 run_dump_test "micromips-branch-absolute-addend"
0c117286
MR
1533 if $has_newabi {
1534 run_dump_test "micromips-branch-absolute-n32"
1535 run_dump_test "micromips-branch-absolute-addend-n32"
1536 run_dump_test "micromips-branch-absolute-n64"
1537 run_dump_test "micromips-branch-absolute-addend-n64"
1538 }
16e5e222 1539 run_dump_test "micromips-b16"
a92713e6 1540 run_list_test "micromips-ill"
dec0624d
MR
1541
1542 run_dump_test_arches "mcu" [mips_arch_list_matching mips32r2 \
1543 !octeon]
1976c292
RS
1544 run_dump_test_arches "hilo-diff-eb" [mips_arch_list_all]
1545 run_dump_test_arches "hilo-diff-el" [mips_arch_list_all]
1546 if $has_newabi {
1547 run_dump_test_arches "hilo-diff-eb-n32" [mips_arch_list_matching mips3]
1548 run_dump_test_arches "hilo-diff-el-n32" [mips_arch_list_matching mips3]
1549 run_dump_test_arches "hilo-diff-eb-n64" [mips_arch_list_matching mips3]
1550 run_dump_test_arches "hilo-diff-el-n64" [mips_arch_list_matching mips3]
1551 }
5821951c 1552 run_dump_test_arches "lui" [mips_arch_list_matching mips1]
3f3467ff
MR
1553 run_dump_test_arches "lui-1" [lsort -dictionary -unique [concat \
1554 [mips_arch_list_matching mips1] \
1555 [mips_arch_list_matching mips16e2-32]]]
1556 run_dump_test_arches "lui-2" [lsort -dictionary -unique [concat \
1557 [mips_arch_list_matching mips1] \
1558 [mips_arch_list_matching mips16e2-32]]]
c96425c5
MR
1559 run_dump_test_arches "addiu-error" [mips_arch_list_all]
1560 run_dump_test_arches "break-error" [mips_arch_list_all]
e407c74b
NC
1561
1562 run_dump_test "r5900"
1563 run_dump_test "r5900-full"
16e5e222 1564 run_list_test "r5900-nollsc" "-mabi=o64 -march=r5900"
c77c0862 1565 run_dump_test "r5900-vu0"
14daeee3
RS
1566 run_dump_test "r5900-full-vu0"
1567 run_dump_test "r5900-all-vu0"
1568 run_list_test "r5900-error-vu0" "-march=r5900"
a5163986
CF
1569
1570 run_list_test_arches "ext-ill" [mips_arch_list_matching mips64r2]
c6278170
RS
1571
1572 run_list_test "ase-errors-1" "-mabi=32 -march=mips1" "ASE errors (1)"
1573 run_list_test "ase-errors-2" "-mabi=o64 -march=mips3" "ASE errors (2)"
1574 run_list_test "ase-errors-3" "-mabi=32 -march=mips1" "ASE errors (3)"
1575 run_list_test "ase-errors-4" "-mabi=o64 -march=mips3" "ASE errors (4)"
f2ae14a1
RS
1576
1577 run_dump_test_arches "la-reloc" [mips_arch_list_matching mips1]
ece794d9
MF
1578 run_list_test "dla-warn" "-mabi=32 -march=mips3" \
1579 "DLA with 32-bit addresses"
f2ae14a1
RS
1580 if { $has_newabi } {
1581 run_dump_test_arches "dla-reloc" [mips_arch_list_matching mips3]
ece794d9
MF
1582 run_list_test "la-warn" "-mabi=64 -march=mips3" \
1583 "LA with 64-bit addresses"
f2ae14a1
RS
1584 }
1585
1586 # Start with MIPS II to avoid load delay nops.
1587 run_dump_test_arches "ld-reloc" [mips_arch_list_matching mips2]
7361da2c
AB
1588 run_dump_test_arches "ulw-reloc" [mips_arch_list_matching mips2 !mips32r6]
1589 run_dump_test_arches "ulh-reloc" [mips_arch_list_matching mips2 !mips32r6]
f2ae14a1
RS
1590
1591 run_dump_test "l_d-reloc"
6f72df77 1592 run_list_test "bltzal"
ec0c61e3
CF
1593
1594 run_dump_test_arches "msa" [mips_arch_list_matching mips32r2]
95f6ac88
MR
1595 if { $has_newabi } {
1596 run_dump_test_arches "msa64" [mips_arch_list_matching mips64r2]
1597 }
7361da2c 1598 run_dump_test_arches "msa-relax" [mips_arch_list_matching mips32r2 !mips32r6]
cbfebe3c 1599 run_dump_test_arches "msa-branch" [mips_arch_list_matching mips32r2]
d56a8dda 1600
909b4e3d
MR
1601 run_dump_test_arches "xpa" [mips_arch_list_matching mips32r2]
1602 run_dump_test_arches "xpa-err" [mips_arch_list_matching mips32r2]
1603 run_dump_test_arches "xpa-virt-err" [mips_arch_list_matching mips32r2]
f5b2fd52 1604 run_dump_test_arches "r5" "-32" [mips_arch_list_matching mips32r5]
7d64c587 1605
d56a8dda
RS
1606 run_dump_test "pcrel-1"
1607 run_dump_test "pcrel-2"
1608 run_list_test "pcrel-3" "" "Invalid cross-section PC-relative references"
1609 run_dump_test "pcrel-4-32"
1610 if $has_newabi {
1611 run_dump_test "pcrel-4-n32"
1612 run_dump_test "pcrel-4-64"
1613 }
263b2574 1614
912815f0
MR
1615 run_dump_test "pcrel-reloc-1"
1616 run_dump_test "pcrel-reloc-1-r6"
1617 run_dump_test "pcrel-reloc-2"
1618 run_dump_test "pcrel-reloc-2-r6"
1619 run_dump_test "pcrel-reloc-3"
1620 run_dump_test "pcrel-reloc-3-r6"
41947d9e
MR
1621 run_dump_test "pcrel-reloc-4"
1622 run_dump_test "pcrel-reloc-4-r6"
1623 run_dump_test "pcrel-reloc-5"
1624 run_dump_test "pcrel-reloc-5-r6"
1625 run_dump_test "pcrel-reloc-6"
1626 run_list_test "pcrel-reloc-6" "-32 --defsym offset=4" \
1627 "MIPS local PC-relative relocations 6b"
912815f0 1628
b32465c9
MR
1629 run_dump_test_arches "mips16-pcrel-0" [mips_arch_list_matching mips16-32]
1630 run_dump_test_arches "mips16-pcrel-1" [mips_arch_list_matching mips16-64]
1631 run_dump_test_arches "mips16-pcrel-2" [mips_arch_list_matching mips16-32]
1632 run_dump_test_arches "mips16-pcrel-3" [mips_arch_list_matching mips16-32]
1633 run_dump_test_arches "mips16-pcrel-4" [mips_arch_list_matching mips16-32]
1634 run_dump_test_arches "mips16-pcrel-5" [mips_arch_list_matching mips16-32]
1635 run_dump_test_arches "mips16-pcrel-pic-0" \
1636 [mips_arch_list_matching mips16-32]
1637 run_dump_test_arches "mips16-pcrel-pic-1" \
1638 [mips_arch_list_matching mips16-64]
8507b6e7 1639 if $has_newabi {
b32465c9
MR
1640 run_dump_test_arches "mips16-pcrel-n32-0" \
1641 [mips_arch_list_matching mips16-64]
1642 run_dump_test_arches "mips16-pcrel-n32-1" \
1643 [mips_arch_list_matching mips16-64]
1644 run_dump_test_arches "mips16-pcrel-n64-sym32-0" \
1645 [mips_arch_list_matching mips16-64]
1646 run_dump_test_arches "mips16-pcrel-n64-sym32-1" \
1647 [mips_arch_list_matching mips16-64]
1648 run_dump_test_arches "mips16-pcrel-n64-0" \
1649 [mips_arch_list_matching mips16-64]
1650 run_dump_test_arches "mips16-pcrel-n64-1" \
1651 [mips_arch_list_matching mips16-64]
1652 }
1653 run_dump_test_arches "mips16-pcrel-delay-0" \
1654 [mips_arch_list_matching mips16-32]
1655 run_dump_test_arches "mips16-pcrel-delay-1" \
1656 [mips_arch_list_matching mips16-32]
88a7ef16
MR
1657 run_dump_test "mips16-pcrel-relax-0"
1658 run_dump_test "mips16-pcrel-relax-1"
1659 run_dump_test "mips16-pcrel-relax-2"
1660 run_dump_test "mips16-pcrel-relax-3"
b32465c9
MR
1661 run_dump_test_arches "mips16-pcrel-reloc-0" \
1662 [mips_arch_list_matching mips16-32]
1663 run_dump_test_arches "mips16-pcrel-reloc-1" \
1664 [mips_arch_list_matching mips16-32]
1665 run_dump_test_arches "mips16-pcrel-reloc-2" \
1666 [mips_arch_list_matching mips16-32]
1667 run_dump_test_arches "mips16-pcrel-reloc-3" \
1668 [mips_arch_list_matching mips16-32]
1669 run_dump_test_arches "mips16-pcrel-reloc-4" \
1670 [mips_arch_list_matching mips16-64]
1671 run_dump_test_arches "mips16-pcrel-reloc-5" \
1672 [mips_arch_list_matching mips16-64]
1673 run_dump_test_arches "mips16-pcrel-reloc-6" \
1674 [mips_arch_list_matching mips16-64]
1675 run_dump_test_arches "mips16-pcrel-reloc-7" \
1676 [mips_arch_list_matching mips16-64]
1677 run_dump_test_arches "mips16-pcrel-addend-0" \
1678 [mips_arch_list_matching mips16-32]
1679 run_dump_test_arches "mips16-pcrel-addend-1" \
1680 [mips_arch_list_matching mips16-32]
1681 run_dump_test_arches "mips16-pcrel-addend-2" \
1682 [mips_arch_list_matching mips16-32]
1683 run_dump_test_arches "mips16-pcrel-addend-3" \
1684 [mips_arch_list_matching mips16-32]
1685 run_dump_test_arches "mips16-pcrel-addend-4" \
1686 [mips_arch_list_matching mips16-64]
1687 run_dump_test_arches "mips16-pcrel-addend-5" \
1688 [mips_arch_list_matching mips16-64]
1689 run_dump_test_arches "mips16-pcrel-addend-6" \
1690 [mips_arch_list_matching mips16-64]
1691 run_dump_test_arches "mips16-pcrel-addend-7" \
1692 [mips_arch_list_matching mips16-64]
1693 run_dump_test_arches "mips16-pcrel-addend-8" \
1694 [mips_arch_list_matching mips16-32]
1695 run_dump_test_arches "mips16-pcrel-addend-9" \
1696 [mips_arch_list_matching mips16-64]
1697 run_dump_test_arches "mips16-pcrel-addend-pic-8" \
1698 [mips_arch_list_matching mips16-32]
1699 run_dump_test_arches "mips16-pcrel-addend-pic-9" \
1700 [mips_arch_list_matching mips16-64]
8507b6e7 1701 if $has_newabi {
b32465c9
MR
1702 run_dump_test_arches "mips16-pcrel-addend-n32-8" \
1703 [mips_arch_list_matching mips16-64]
1704 run_dump_test_arches "mips16-pcrel-addend-n32-9" \
1705 [mips_arch_list_matching mips16-64]
1706 run_dump_test_arches "mips16-pcrel-addend-n64-sym32-8" \
1707 [mips_arch_list_matching mips16-64]
1708 run_dump_test_arches "mips16-pcrel-addend-n64-sym32-9" \
1709 [mips_arch_list_matching mips16-64]
1710 run_dump_test_arches "mips16-pcrel-addend-n64-8" \
1711 [mips_arch_list_matching mips16-64]
1712 run_dump_test_arches "mips16-pcrel-addend-n64-9" \
1713 [mips_arch_list_matching mips16-64]
1714 }
1715 run_dump_test_arches "mips16-pcrel-absolute" \
1716 [mips_arch_list_matching mips16-32]
1717 run_dump_test_arches "mips16-pcrel-absolute-1" \
1718 [mips_arch_list_matching mips16-32]
1719 run_dump_test_arches "mips16-pcrel-absolute-2" \
1720 [mips_arch_list_matching mips16-64]
1721 run_dump_test_arches "mips16-pcrel-absolute-3" \
1722 [mips_arch_list_matching mips16-64]
1723 run_dump_test_arches "mips16-pcrel-absolute-4" \
1724 [mips_arch_list_matching mips16-32]
1725 run_dump_test_arches "mips16-pcrel-absolute-5" \
1726 [mips_arch_list_matching mips16-32]
1727 run_dump_test_arches "mips16-pcrel-absolute-6" \
1728 [mips_arch_list_matching mips16-64]
1729 run_dump_test_arches "mips16-pcrel-absolute-7" \
1730 [mips_arch_list_matching mips16-64]
1731 run_dump_test_arches "mips16-pcrel-absolute-pic-4" \
1732 [mips_arch_list_matching mips16-32]
1733 run_dump_test_arches "mips16-pcrel-absolute-pic-6" \
1734 [mips_arch_list_matching mips16-64]
8507b6e7 1735 if $has_newabi {
b32465c9
MR
1736 run_dump_test_arches "mips16-pcrel-absolute-n32-4" \
1737 [mips_arch_list_matching mips16-64]
1738 run_dump_test_arches "mips16-pcrel-absolute-n32-6" \
1739 [mips_arch_list_matching mips16-64]
1740 run_dump_test_arches "mips16-pcrel-absolute-n64-4" \
1741 [mips_arch_list_matching mips16-64]
1742 run_dump_test_arches "mips16-pcrel-absolute-n64-6" \
1743 [mips_arch_list_matching mips16-64]
1744 run_dump_test_arches "mips16-pcrel-absolute-n64-sym32-4" \
1745 [mips_arch_list_matching mips16-64]
1746 run_dump_test_arches "mips16-pcrel-absolute-n64-sym32-6" \
1747 [mips_arch_list_matching mips16-64]
1748 run_dump_test_arches "mips16-pcrel-absolute-pic-n32-4" \
1749 [mips_arch_list_matching mips16-64]
1750 run_dump_test_arches "mips16-pcrel-absolute-pic-n32-6" \
1751 [mips_arch_list_matching mips16-64]
1752 run_dump_test_arches "mips16-pcrel-absolute-pic-n64-4" \
1753 [mips_arch_list_matching mips16-64]
1754 run_dump_test_arches "mips16-pcrel-absolute-pic-n64-6" \
1755 [mips_arch_list_matching mips16-64]
1756 run_dump_test_arches "mips16-pcrel-absolute-pic-n64-sym32-4" \
1757 [mips_arch_list_matching mips16-64]
1758 run_dump_test_arches "mips16-pcrel-absolute-pic-n64-sym32-6" \
1759 [mips_arch_list_matching mips16-64]
8507b6e7 1760 }
88a7ef16
MR
1761 run_dump_test "mips16-branch-reloc-0"
1762 run_dump_test "mips16-branch-reloc-1"
1763 run_dump_test "mips16-branch-reloc-2"
1764 run_dump_test "mips16-branch-reloc-3"
1f1e0a5d
MR
1765 run_dump_test "mips16-branch-reloc-4"
1766 run_dump_test "mips16-branch-reloc-5"
88a7ef16
MR
1767 run_dump_test "mips16-branch-addend-0"
1768 run_dump_test "mips16-branch-addend-1"
1769 run_dump_test "mips16-branch-addend-2"
1770 run_dump_test "mips16-branch-addend-3"
adc1273c
MR
1771 run_dump_test "mips16-branch-addend-4"
1772 run_dump_test "mips16-branch-addend-5"
88a7ef16 1773 run_dump_test "mips16-branch-absolute"
82d808ed
MR
1774 run_dump_test "mips16-branch-absolute-1"
1775 run_dump_test "mips16-branch-absolute-2"
b416ba9b 1776 run_dump_test "mips16-branch-absolute-addend"
82d808ed 1777 run_dump_test "mips16-branch-absolute-addend-1"
0c117286
MR
1778 if $has_newabi {
1779 run_dump_test "mips16-branch-absolute-n32"
82d808ed
MR
1780 run_dump_test "mips16-branch-absolute-n32-1"
1781 run_dump_test "mips16-branch-absolute-n32-2"
0c117286 1782 run_dump_test "mips16-branch-absolute-addend-n32"
82d808ed 1783 run_dump_test "mips16-branch-absolute-addend-n32-1"
0c117286 1784 run_dump_test "mips16-branch-absolute-n64"
82d808ed
MR
1785 run_dump_test "mips16-branch-absolute-n64-1"
1786 run_dump_test "mips16-branch-absolute-n64-2"
0c117286 1787 run_dump_test "mips16-branch-absolute-addend-n64"
82d808ed 1788 run_dump_test "mips16-branch-absolute-addend-n64-1"
0c117286 1789 }
88a7ef16
MR
1790 run_dump_test "mips16-absolute-reloc-0"
1791 run_dump_test "mips16-absolute-reloc-1"
1792 run_dump_test "mips16-absolute-reloc-2"
1793 run_dump_test "mips16-absolute-reloc-3"
1794
351cdf24
MF
1795 run_dump_test_arches "attr-gnu-4-0" "-32" \
1796 [mips_arch_list_matching mips1]
95f6ac88
MR
1797 if { $has_newabi } {
1798 run_dump_test_arches "attr-gnu-4-0" "-64" \
351cdf24 1799 [mips_arch_list_matching mips3]
95f6ac88 1800 }
351cdf24 1801 run_dump_test_arches "attr-gnu-4-0" "-mfp32 -32" \
7361da2c 1802 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1803 run_dump_test_arches "attr-gnu-4-0" "-mfpxx -32" \
1804 [mips_arch_list_matching mips2 !r5900]
1805 run_dump_test_arches "attr-gnu-4-0" "-mfp64 -32" \
1806 [mips_arch_list_matching mips32r2]
1807 run_dump_test_arches "attr-gnu-4-0" "-mfp64 -mno-odd-spreg -32" \
1808 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1809 if { $has_newabi } {
1810 run_dump_test_arches "attr-gnu-4-0" "-mfp64 -64" \
351cdf24 1811 [mips_arch_list_matching mips3]
95f6ac88 1812 }
351cdf24
MF
1813 run_dump_test_arches "attr-gnu-4-0" "-msingle-float -32" \
1814 [mips_arch_list_matching mips1]
95f6ac88
MR
1815 if { $has_newabi } {
1816 run_dump_test_arches "attr-gnu-4-0" "-msingle-float -64" \
351cdf24 1817 [mips_arch_list_matching mips3]
95f6ac88 1818 }
351cdf24
MF
1819 run_dump_test_arches "attr-gnu-4-0" "-msoft-float -32" \
1820 [mips_arch_list_matching mips1]
95f6ac88
MR
1821 if { $has_newabi } {
1822 run_dump_test_arches "attr-gnu-4-0" "-msoft-float -64" \
351cdf24 1823 [mips_arch_list_matching mips3]
95f6ac88 1824 }
351cdf24 1825 run_dump_test_arches "attr-none-double" "-32" \
7361da2c
AB
1826 [mips_arch_list_matching mips1 !mips32r6]
1827 run_dump_test_arches "r6-attr-none-double" "-32" \
1828 [mips_arch_list_matching mips32r6]
95f6ac88
MR
1829 if { $has_newabi } {
1830 run_dump_test_arches "attr-none-double" "-64" \
351cdf24 1831 [mips_arch_list_matching mips3]
95f6ac88 1832 }
351cdf24
MF
1833 run_dump_test_arches "attr-none-o32-fpxx" \
1834 [mips_arch_list_matching mips2 !r5900]
1835 run_dump_test_arches "attr-none-o32-fp64" \
1836 [mips_arch_list_matching mips32r2]
1837 run_dump_test_arches "attr-none-o32-fp64-nooddspreg" \
1838 [mips_arch_list_matching mips32r2]
1839 run_dump_test_arches "attr-none-single-float" "-32" \
1840 [mips_arch_list_matching mips1]
95f6ac88
MR
1841 if { $has_newabi } {
1842 run_dump_test_arches "attr-none-single-float" "-64" \
351cdf24 1843 [mips_arch_list_matching mips3]
95f6ac88 1844 }
351cdf24
MF
1845 run_dump_test_arches "attr-none-soft-float" "-32 -msoft-float" \
1846 [mips_arch_list_matching mips1]
95f6ac88
MR
1847 if { $has_newabi } {
1848 run_dump_test_arches "attr-none-soft-float" "-64 -msoft-float" \
351cdf24 1849 [mips_arch_list_matching mips3]
95f6ac88 1850 }
351cdf24
MF
1851
1852 run_list_test_arches "attr-gnu-4-1-mfp64" \
1853 "-32 -mfp64 -mno-odd-spreg" \
1854 [mips_arch_list_matching mips32r2]
1855 run_list_test_arches "attr-gnu-4-1-mfp64" "-32 -mfp64" \
1856 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1857 if { $has_newabi } {
1858 run_list_test_arches "attr-gnu-4-1-mfp32" "-64 -mfp32" \
7361da2c 1859 [mips_arch_list_matching mips3 !mips64r6]
95f6ac88 1860 }
351cdf24
MF
1861 run_list_test_arches "attr-gnu-4-1-msingle-float" "-32 -msingle-float" \
1862 [mips_arch_list_matching mips1]
1863 run_list_test_arches "attr-gnu-4-1-msoft-float" "-32 -msoft-float" \
1864 [mips_arch_list_matching mips1]
1865 run_dump_test_arches "attr-gnu-4-1" "-32 -mfpxx" \
1866 [mips_arch_list_matching mips2 !r5900]
1867 run_dump_test_arches "attr-gnu-4-1" "-32 -mfp32" \
7361da2c 1868 [mips_arch_list_matching mips1 !mips32r6]
95f6ac88
MR
1869 if { $has_newabi } {
1870 run_dump_test_arches "attr-gnu-4-1" "-64 -mfp64" \
351cdf24 1871 [mips_arch_list_matching mips3]
95f6ac88 1872 }
351cdf24
MF
1873
1874 run_list_test_arches "attr-gnu-4-2-mdouble-float" "-32 -mfp32" \
7361da2c 1875 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1876 run_list_test_arches "attr-gnu-4-2-mdouble-float" "-32 -mfpxx" \
1877 [mips_arch_list_matching mips2 !r5900]
1878 run_list_test_arches "attr-gnu-4-2-mdouble-float" "-32 -mfp64" \
1879 [mips_arch_list_matching mips32r2]
1880 run_list_test_arches "attr-gnu-4-2-mdouble-float" \
1881 "-32 -mfp64 -mno-odd-spreg" \
1882 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1883 if { $has_newabi } {
1884 run_list_test_arches "attr-gnu-4-2-mdouble-float" "-64 -mfp64" \
351cdf24 1885 [mips_arch_list_matching mips3]
95f6ac88 1886 }
351cdf24
MF
1887 run_list_test_arches "attr-gnu-4-2-msoft-float" "-32 -msoft-float" \
1888 [mips_arch_list_matching mips1]
1889 run_dump_test_arches "attr-gnu-4-2" "-32" \
1890 [mips_arch_list_matching mips1]
95f6ac88
MR
1891 if { $has_newabi } {
1892 run_dump_test_arches "attr-gnu-4-2" "-64" \
351cdf24 1893 [mips_arch_list_matching mips3]
95f6ac88 1894 }
351cdf24
MF
1895
1896 run_list_test_arches "attr-gnu-4-3-mhard-float" "-32 -mfp32" \
7361da2c 1897 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1898 run_list_test_arches "attr-gnu-4-3-mhard-float" "-32 -mfpxx" \
1899 [mips_arch_list_matching mips2 !r5900]
1900 run_list_test_arches "attr-gnu-4-3-mhard-float" "-32 -mfp64" \
1901 [mips_arch_list_matching mips32r2]
1902 run_list_test_arches "attr-gnu-4-3-mhard-float" \
1903 "-32 -mfp64 -mno-odd-spreg" \
1904 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1905 if { $has_newabi } {
1906 run_list_test_arches "attr-gnu-4-3-mhard-float" "-64 -mfp64" \
351cdf24 1907 [mips_arch_list_matching mips3]
95f6ac88 1908 }
351cdf24
MF
1909 run_list_test_arches "attr-gnu-4-3-mhard-float" "-32 -msingle-float" \
1910 [mips_arch_list_matching mips1]
1911 run_dump_test_arches "attr-gnu-4-3" "-32" \
1912 [mips_arch_list_matching mips1]
95f6ac88
MR
1913 if { $has_newabi } {
1914 run_dump_test_arches "attr-gnu-4-3" "-64" \
351cdf24 1915 [mips_arch_list_matching mips3]
95f6ac88 1916 }
351cdf24
MF
1917
1918 run_list_test_arches "attr-gnu-4-4" "-32 -mfp32" \
7361da2c 1919 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1920 run_list_test_arches "attr-gnu-4-4" "-32 -mfpxx" \
1921 [mips_arch_list_matching mips2 !r5900]
1922 run_list_test_arches "attr-gnu-4-4" "-32 -mfp64" \
1923 [mips_arch_list_matching mips32r2]
1924 run_list_test_arches "attr-gnu-4-4" "-32 -mfp64 -mno-odd-spreg" \
1925 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1926 if { $has_newabi } {
1927 run_list_test_arches "attr-gnu-4-4" "-64 -mfp64" \
351cdf24 1928 [mips_arch_list_matching mips3]
95f6ac88 1929 }
351cdf24
MF
1930 run_list_test_arches "attr-gnu-4-4" "-32 -msingle-float" \
1931 [mips_arch_list_matching mips1]
1932 run_list_test_arches "attr-gnu-4-4" "-32 -msoft-float" \
1933 [mips_arch_list_matching mips1]
1934
1935 run_list_test_arches "attr-gnu-4-5" "-32 -mfp32" \
7361da2c 1936 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1937 run_list_test_arches "attr-gnu-4-5" "-32 -mfp64" \
1938 [mips_arch_list_matching mips32r2]
1939 run_list_test_arches "attr-gnu-4-5" "-32 -mfp64 -mno-odd-spreg" \
1940 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1941 if { $has_newabi } {
1942 run_list_test_arches "attr-gnu-4-5-64" "-64 -mfp64" \
351cdf24 1943 [mips_arch_list_matching mips3]
95f6ac88 1944 }
ea79f94a 1945 run_list_test_arches "attr-gnu-4-5-msingle-float" "-32 -msingle-float" \
351cdf24 1946 [mips_arch_list_matching mips1]
ea79f94a 1947 run_list_test_arches "attr-gnu-4-5-msoft-float" "-32 -msoft-float" \
351cdf24
MF
1948 [mips_arch_list_matching mips1]
1949 run_dump_test_arches "attr-gnu-4-5" \
1950 [mips_arch_list_matching mips2 !r5900]
1951
1952 run_list_test_arches "attr-gnu-4-6" "-32 -mfp32" \
7361da2c 1953 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1954 run_list_test_arches "attr-gnu-4-6-noodd" "-32 -mfp64 -mno-odd-spreg" \
1955 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1956 if { $has_newabi } {
1957 run_list_test_arches "attr-gnu-4-6-64" "-64 -mfp64" \
351cdf24 1958 [mips_arch_list_matching mips3]
95f6ac88 1959 }
ea79f94a 1960 run_list_test_arches "attr-gnu-4-6-msingle-float" "-32 -msingle-float" \
351cdf24 1961 [mips_arch_list_matching mips1]
ea79f94a 1962 run_list_test_arches "attr-gnu-4-6-msoft-float" "-32 -msoft-float" \
351cdf24
MF
1963 [mips_arch_list_matching mips1]
1964 run_list_test_arches "attr-gnu-4-6" "-32 -mfpxx" \
1965 [mips_arch_list_matching mips2 !r5900]
1966 run_dump_test_arches "attr-gnu-4-6" "-32 -mfp64" \
1967 [mips_arch_list_matching mips32r2]
1968
1969 run_list_test_arches "attr-gnu-4-7" "-32 -mfp32" \
7361da2c 1970 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1971 run_list_test_arches "attr-gnu-4-7-odd" "-32 -mfp64" \
1972 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1973 if { $has_newabi } {
1974 run_list_test_arches "attr-gnu-4-7-64" "-64 -mfp64" \
351cdf24 1975 [mips_arch_list_matching mips3]
95f6ac88 1976 }
ea79f94a 1977 run_list_test_arches "attr-gnu-4-7-msingle-float" "-32 -msingle-float" \
351cdf24 1978 [mips_arch_list_matching mips1]
ea79f94a 1979 run_list_test_arches "attr-gnu-4-7-msoft-float" "-32 -msoft-float" \
351cdf24
MF
1980 [mips_arch_list_matching mips1]
1981 run_list_test_arches "attr-gnu-4-7" "-32 -mfpxx" \
1982 [mips_arch_list_matching mips2 !r5900]
1983 run_dump_test_arches "attr-gnu-4-7" "-32 -mfp64 -mno-odd-spreg" \
1984 [mips_arch_list_matching mips32r2]
1985
263b2574 1986 run_dump_test "attr-gnu-abi-fp-1"
1987 run_dump_test "attr-gnu-abi-msa-1"
919731af 1988
1989 run_dump_test "module-override"
1990 run_dump_test "module-defer-warn1"
351cdf24
MF
1991 run_list_test "module-defer-warn2" "-32"
1992
1993 foreach testopt [list -mfp32 -mfpxx -mfp64 "-mfp64-noodd" \
1994 -msingle-float -msoft-float] {
1995 foreach cmdopt [list -mfp32 -mfpxx -mfp64 "-mfp64 -mno-odd-spreg" \
1996 -msingle-float -msoft-float] {
1997 run_dump_test "module${testopt}" \
1998 [list [list as $cmdopt] [list name ($cmdopt)]]
1999 }
2000 }
2001
2002 run_dump_test "module-set-mfpxx"
2003 run_list_test_arches "fpxx-oddfpreg" "-32 -mfpxx" \
2004 [mips_arch_list_matching mips2 !singlefloat]
2005 run_list_test_arches "fpxx-oddfpreg" "-32 -mfpxx -mno-odd-spreg" \
2006 [mips_arch_list_matching mips2 !singlefloat]
2007 run_dump_test_arches "fpxx-oddfpreg" \
2008 [mips_arch_list_matching oddspreg]
2009 run_dump_test_arches "odd-spreg" "-mfp32" [mips_arch_list_matching oddspreg]
2010 run_dump_test_arches "odd-spreg" "-mfpxx" [mips_arch_list_matching oddspreg]
2011 run_dump_test_arches "odd-spreg" "-mfp64" [mips_arch_list_matching mips32r2]
7361da2c
AB
2012 run_dump_test_arches "no-odd-spreg" "-mfp32" [mips_arch_list_matching mips1 \
2013 !mips32r6]
351cdf24
MF
2014 run_dump_test_arches "no-odd-spreg" "-mfpxx" [mips_arch_list_matching mips2 !r5900]
2015 run_dump_test_arches "no-odd-spreg" "-mfp64" [mips_arch_list_matching mips32r2]
2016 run_dump_test "module-check"
2017 run_list_test "module-check-warn" "-32"
2018
2019 run_dump_test "li-d"
7361da2c 2020
41a1578e
MR
2021 run_dump_test "option-pic-1"
2022 run_list_test "option-pic-2" "" \
2023 "MIPS invalid PIC option"
668c5ebc
MR
2024 run_list_test "option-pic-vxworks-1" "-mvxworks-pic" \
2025 "MIPS invalid PIC option in VxWorks PIC"
2026 run_list_test "option-pic-vxworks-2" "-mvxworks-pic" \
2027 "MIPS invalid switch to SVR4 PIC from VxWorks PIC"
ce8ad872
MR
2028 run_dump_test "option-pic-relax-0"
2029 run_dump_test "option-pic-relax-1"
2030 run_dump_test "option-pic-relax-2"
2031 run_dump_test "option-pic-relax-3"
2032 run_dump_test "option-pic-relax-3a"
2033 run_dump_test "option-pic-relax-4"
2034 run_dump_test "option-pic-relax-5"
668c5ebc 2035
22522f88 2036 run_dump_test_arches "isa-override-1" "" [mips_arch_list_matching mips1]
7f401e84 2037 run_dump_test_arches "isa-override-2" "" [mips_arch_list_matching mips1]
22522f88 2038
5ff6a06c
MR
2039 run_dump_test "debug-label-end-1"
2040 run_dump_test "debug-label-end-2"
2041 run_dump_test "debug-label-end-3"
2042
9875b365
MR
2043 run_dump_test "org-1"
2044 run_dump_test "org-2"
2045 run_dump_test "org-3"
2046 run_dump_test "org-4"
2047 run_dump_test "org-5"
2048 run_dump_test "org-6"
2049 run_dump_test "org-7"
2050 run_dump_test "org-8"
2051 run_dump_test "org-9"
2052 run_dump_test "org-10"
2053 run_dump_test "org-11"
2054 run_dump_test "org-12"
2055
42c0794e
JC
2056 run_dump_test_arches "stabs-symbol-type" [mips_arch_list_all]
2057
7361da2c
AB
2058 run_dump_test_arches "r6" [mips_arch_list_matching mips32r6]
2059 if $has_newabi {
2060 run_dump_test_arches "r6-n32" [mips_arch_list_matching mips64r6]
2061 run_dump_test_arches "r6-n64" [mips_arch_list_matching mips64r6]
2062 run_dump_test_arches "r6-64-n32" [mips_arch_list_matching mips64r6]
2063 run_dump_test_arches "r6-64-n64" [mips_arch_list_matching mips64r6]
0866e94c 2064 run_list_test_arches "ldpc-unalign" "-64" [mips_arch_list_matching mips64r6]
7361da2c
AB
2065 }
2066 run_list_test_arches "r6-removed" "-32" [mips_arch_list_matching mips32r6]
2067 run_list_test_arches "r6-64-removed" [mips_arch_list_matching mips64r6]
6914869a 2068
2ca4ff6d
MF
2069 run_list_test_arches "r6-branch-constraints" "-32" \
2070 [mips_arch_list_matching mips32r6]
730c3174
SE
2071
2072 run_dump_test_arches "crc" [mips_arch_list_matching mips32r6]
2073 run_dump_test_arches "crc-err" [mips_arch_list_matching mips32r6]
2074 run_dump_test_arches "crc64" [mips_arch_list_matching mips64r6]
2075 run_dump_test_arches "crc64-err" [mips_arch_list_matching mips64r6]
6f20c942
FS
2076
2077 run_dump_test_arches "ginv" [mips_arch_list_matching mips32r6]
2078 run_dump_test_arches "ginv-err" [mips_arch_list_matching mips32r6]
252b5132 2079}
This page took 1.206224 seconds and 4 git commands to generate.