GAS: Fix bogus "attempt to move .org backwards" relaxation errors
[deliverable/binutils-gdb.git] / gas / testsuite / gas / mips / mips.exp
CommitLineData
2571583a 1# Copyright (C) 2012-2017 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}@ ]
6b438200
MR
327 if { [ string match "mips16e*" $proparch ] } {
328 lappend prefixes mips16e@
329 }
330 if { [ string match "mips16*" $proparch ] } {
331 lappend prefixes mips16@
332 }
dd6a37e7 333 if { [ string match "octeon*" $proparch ] && $proparch != "octeon" } {
16e5e222 334 lappend prefixes octeon@
dd6a37e7 335 }
7361da2c
AB
336 if { [ string match "mips*r6" $proparch ]} {
337 lappend prefixes mipsr6@
338 }
dd6a37e7 339 foreach prefix ${prefixes} {
8b7955ca
MR
340 set archname ${prefix}${name}
341 if { [file exists "$srcdir/$subdir/${archname}.d"] } {
342 set name $archname
343 break
344 }
193fa632 345 }
5915a74a
CD
346
347 if [catch {run_dump_test $name \
725fc8ed
RS
348 "{name {([concat $opts [mips_arch_displayname $arch]])}}
349 {objdump {[mips_arch_objdump_flags $arch]}}
350 {as {[concat $opts [mips_arch_as_flags $arch]]}}"} rv] {
5915a74a
CD
351 perror "$rv"
352 untested "$subdir/$name ($arch)"
353 }
354}
355
725fc8ed 356# run_dump_test_arches NAME [OPTS] ARCH_LIST
5915a74a
CD
357#
358# Invoke "run_dump_test_arch" for test NAME, for each architecture
725fc8ed
RS
359# listed in ARCH_LIST. OPTS, if specified, is a list of additional
360# assembler options that should be used for all architectures.
361proc run_dump_test_arches { name args } {
725fc8ed
RS
362 set opts ""
363 if { [llength $args] > 1 } {
364 set opts [lindex $args 0]
365 set args [lrange $args 1 end]
366 }
367 set arch_list [lindex $args 0]
5915a74a 368 foreach arch $arch_list {
725fc8ed 369 run_dump_test_arch $name $opts $arch
5915a74a
CD
370 }
371}
372
5915a74a
CD
373# run_list_test_arch NAME OPTS ARCH
374#
725fc8ed
RS
375# Invoke "run_list_test" for test NAME with additional assembler options OPTS.
376# Add the assembler flags that are associated with architecture ARCH.
5915a74a 377proc run_list_test_arch { name opts arch } {
7361da2c 378 global subdir srcdir
5915a74a 379
725fc8ed 380 set testname "MIPS $name ([concat $opts [mips_arch_displayname $arch]])"
7361da2c
AB
381 set proparch [lindex [mips_arch_properties $arch 0] 0]
382 set prefixes [list ${proparch}@ ]
6b438200
MR
383 if { [ string match "mips16e*" $proparch ] } {
384 lappend prefixes mips16e@
385 }
386 if { [ string match "mips16*" $proparch ] } {
387 lappend prefixes mips16@
388 }
7361da2c
AB
389 if { [ string match "octeon*" $proparch ] && $proparch != "octeon" } {
390 lappend prefixes octeon@
391 }
392 if { [ string match "mips*r6" $proparch ]} {
393 lappend prefixes mipsr6@
394 }
395 foreach prefix ${prefixes} {
396 set archname ${prefix}${name}
397 if { [file exists "$srcdir/$subdir/${archname}.l"] } {
398 set name $archname
399 break
400 }
401 }
402
725fc8ed
RS
403 if [catch {run_list_test \
404 $name \
405 [concat $opts [mips_arch_as_flags $arch]] \
406 $testname} rv] {
5915a74a
CD
407 perror "$rv"
408 untested "$testname"
409 }
410}
411
725fc8ed 412# run_list_test_arches NAME [OPTS] ARCH_LIST
5915a74a 413#
725fc8ed
RS
414# Invoke "run_list_test_arch" for test NAME, for each architecture listed
415# in ARCH_LIST. OPTS, if specified, is a list of additional assembler
416# options that should be used for all architectures.
417proc run_list_test_arches { name args } {
418 set opts ""
419 if { [llength $args] > 1 } {
420 set opts [lindex $args 0]
421 set args [lrange $args 1 end]
422 }
423 set arch_list [lindex $args 0]
5915a74a
CD
424 foreach arch $arch_list {
425 run_list_test_arch "$name" "$opts" "$arch"
426 }
427}
428
429
430# Create the architecture data array by providing data for all
431# known architectures.
432#
433# Note that several targets pick default CPU based on ABI. We
434# can't easily handle that; do NOT list those targets as defaulting
435# to any architecture.
4d8728e1 436mips_arch_init
5915a74a
CD
437mips_arch_create mips1 32 {} {} \
438 { -march=mips1 -mtune=mips1 } { -mmips:3000 }
af22f5b2 439mips_arch_create mips2 32 mips1 { gpr_ilocks } \
5915a74a 440 { -march=mips2 -mtune=mips2 } { -mmips:6000 }
8d367dd5 441mips_arch_create mips3 64 mips2 { fpisa3 } \
5915a74a 442 { -march=mips3 -mtune=mips3 } { -mmips:4000 }
8d367dd5 443mips_arch_create mips4 64 mips3 { fpisa4 } \
5915a74a 444 { -march=mips4 -mtune=mips4 } { -mmips:8000 }
8d367dd5 445mips_arch_create mips5 64 mips4 { fpisa5 } \
5915a74a
CD
446 { -march=mips5 -mtune=mips5 } { -mmips:mips5 }
447mips_arch_create mips32 32 mips2 {} \
448 { -march=mips32 -mtune=mips32 } { -mmips:isa32 } \
449 { mipsisa32-*-* mipsisa32el-*-* }
8d367dd5 450mips_arch_create mips32r2 32 mips32 { fpisa3 fpisa4 fpisa5 ror } \
af7ee8bf
CD
451 { -march=mips32r2 -mtune=mips32r2 } \
452 { -mmips:isa32r2 } \
453 { mipsisa32r2-*-* mipsisa32r2el-*-* }
ae52f483
AB
454mips_arch_create mips32r3 32 mips32r2 { fpisa3 fpisa4 fpisa5 ror } \
455 { -march=mips32r3 -mtune=mips32r3 } \
456 { -mmips:isa32r3 } \
457 { mipsisa32r3-*-* mipsisa32r3el-*-* }
458mips_arch_create mips32r5 32 mips32r3 { fpisa3 fpisa4 fpisa5 ror } \
459 { -march=mips32r5 -mtune=mips32r5 } \
460 { -mmips:isa32r5 } \
461 { mipsisa32r5-*-* mipsisa32r5el-*-* }
7361da2c
AB
462mips_arch_create mips32r6 32 mips32r5 { fpisa3 fpisa4 fpisa5 ror } \
463 { -march=mips32r6 -mtune=mips32r6 --defsym r6=} \
464 { -mmips:isa32r6 } \
465 { mipsisa32r6-*-* mipsisa32r6el-*-* }
5915a74a
CD
466mips_arch_create mips64 64 mips5 { mips32 } \
467 { -march=mips64 -mtune=mips64 } { -mmips:isa64 } \
468 { mipsisa64-*-* mipsisa64el-*-* }
5f74bc13
CD
469mips_arch_create mips64r2 64 mips64 { mips32r2 ror } \
470 { -march=mips64r2 -mtune=mips64r2 } \
471 { -mmips:isa64r2 } \
472 { mipsisa64r2-*-* mipsisa64r2el-*-* }
ae52f483
AB
473mips_arch_create mips64r3 64 mips64r2 { mips32r3 ror } \
474 { -march=mips64r3 -mtune=mips64r3 } \
475 { -mmips:isa64r3 } \
476 { mipsisa64r3-*-* mipsisa64r3el-*-* }
477mips_arch_create mips64r5 64 mips64r3 { mips32r5 ror } \
478 { -march=mips64r5 -mtune=mips64r5 } \
479 { -mmips:isa64r5 } \
480 { mipsisa64r5-*-* mipsisa64r5el-*-* }
7361da2c
AB
481mips_arch_create mips64r6 64 mips64r5 { mips32r6 ror } \
482 { -march=mips64r6 -mtune=mips64r6 --defsym r6=} \
483 { -mmips:isa64r6 } \
484 { mipsisa64r6-*-* mipsisa64r6el-*-* }
6b438200
MR
485mips_arch_create mips16-32 32 {} {} \
486 { -march=mips1 -mips16 } { -mmips:3000 }
487mips_arch_create mips16-64 64 mips16-32 {} \
488 { -march=mips3 -mips16 } { -mmips:4000 }
489mips_arch_create mips16e-32 32 mips16-32 {} \
490 { -march=mips32 -mips16 } { -mmips:isa32 }
491mips_arch_create mips16e-64 64 mips16-64 { mips16e-32 } \
492 { -march=mips64 -mips16 } { -mmips:isa64 }
df58fc94 493mips_arch_create micromips 64 mips64r2 {} \
919731af 494 { -march=mips64r2 -mmicromips } {}
5915a74a
CD
495mips_arch_create r3000 32 mips1 {} \
496 { -march=r3000 -mtune=r3000 } { -mmips:3000 }
af22f5b2 497mips_arch_create r3900 32 mips1 { gpr_ilocks } \
5915a74a
CD
498 { -march=r3900 -mtune=r3900 } { -mmips:3900 } \
499 { mipstx39-*-* mipstx39el-*-* }
500mips_arch_create r4000 64 mips3 {} \
501 { -march=r4000 -mtune=r4000 } { -mmips:4000 }
502mips_arch_create vr5400 64 mips4 { ror } \
503 { -march=vr5400 -mtune=vr5400 } { -mmips:5400 }
351cdf24 504mips_arch_create sb1 64 mips64 { mips3d oddspreg } \
5915a74a
CD
505 { -march=sb1 -mtune=sb1 } { -mmips:sb1 } \
506 { mipsisa64sb1-*-* mipsisa64sb1el-*-* }
351cdf24 507mips_arch_create octeon 64 mips64r2 { oddspreg } \
61d4e56d
AN
508 { -march=octeon -mtune=octeon } { -mmips:octeon } \
509 { mips64octeon*-*-* }
351cdf24 510mips_arch_create octeonp 64 octeon { oddspreg } \
dd6a37e7
AP
511 { -march=octeon+ -mtune=octeon+ } { -mmips:octeon+ } \
512 { }
351cdf24 513mips_arch_create octeon2 64 octeonp { oddspreg } \
432233b3
AP
514 { -march=octeon2 -mtune=octeon2 } { -mmips:octeon2 } \
515 { }
2c629856
N
516mips_arch_create octeon3 64 octeon2 { oddspreg } \
517 { -march=octeon3 -mtune=octeon3 } { -mmips:octeon3 } \
518 { }
351cdf24 519mips_arch_create xlr 64 mips64 { oddspreg } \
52b6b6b9 520 { -march=xlr -mtune=xlr } { -mmips:xlr }
0aa27725 521mips_arch_create r5900 64 mips3 { gpr_ilocks singlefloat nollsc } \
e407c74b
NC
522 { -march=r5900 -mtune=r5900 } { -mmips:5900 } \
523 { mipsr5900el-*-* mips64r5900el-*-* }
5915a74a 524
5915a74a 525#
0a44bf69
RS
526# And now begin the actual tests! VxWorks uses RELA rather than REL
527# relocations, so most of the generic dump tests will not work there.
5915a74a 528#
0a44bf69
RS
529if { [istarget mips*-*-vxworks*] } {
530 run_dump_test "vxworks1"
531 run_dump_test "vxworks1-xgot"
a284cff1
TS
532 run_dump_test "vxworks1-el"
533 run_dump_test "vxworks1-xgot-el"
668c5ebc
MR
534
535 run_list_test "option-pic-vxworks-1" "-mvxworks-pic" \
536 "MIPS invalid PIC option in VxWorks PIC"
537 run_list_test "option-pic-vxworks-2" "-mvxworks-pic" \
538 "MIPS invalid switch to SVR4 PIC from VxWorks PIC"
0a44bf69 539} elseif { [istarget mips*-*-*] } {
b138b7a9
MF
540 set addr32 [expr [istarget mipstx39*-*-*] || [istarget mips-*-linux*] || [istarget mipsel-*-linux*] \
541 || [istarget mipsisa32-*-linux*] || [istarget mipsisa32el-*-linux*]]
d4a43794 542 set has_newabi [expr [istarget *-*-irix6*] || [istarget mips*-*-linux*] \
a9d58c06
AB
543 || [istarget mips*-sde-elf*] || [istarget mips*-mti-elf*] \
544 || [istarget mips*-img-elf*]]
252b5132 545
16e5e222
RS
546 if { [istarget "mips*-*-*linux*"]
547 || [istarget "mips*-sde-elf*"]
d4a43794 548 || [istarget "mips*-mti-elf*"]
a9d58c06 549 || [istarget "mips*-img-elf*"]
16e5e222 550 || [istarget "mips*-*-*bsd*"] } then {
ff8715d0
L
551 set tmips "t"
552 } else {
553 set tmips ""
554 }
0c4ec151 555 if [istarget mips*el-*-*] {
5ef0935e 556 set el "el"
0c4ec151
RS
557 } {
558 set el ""
559 }
e1b47bd5
RS
560
561 run_dump_test_arches "dot-1" [mips_arch_list_matching mips1]
5915a74a
CD
562 run_dump_test_arches "abs" [mips_arch_list_matching mips1]
563 run_dump_test_arches "add" [mips_arch_list_matching mips1]
564 run_dump_test_arches "and" [mips_arch_list_matching mips1]
a242dc0d
AN
565 run_dump_test_arches "mips1-fp" [mips_arch_list_matching mips1]
566 run_list_test_arches "mips1-fp" "-32 -msoft-float" \
567 [mips_arch_list_matching mips1]
252b5132
RH
568 run_dump_test "break20"
569 run_dump_test "trap20"
51124b6c 570
8404fc53
MR
571 run_dump_test_arches "beq" [mips_arch_list_matching mips1]
572 run_dump_test_arches "bge" [mips_arch_list_matching mips1]
573 run_dump_test_arches "bgeu" [mips_arch_list_matching mips1]
574 run_dump_test_arches "blt" [mips_arch_list_matching mips1]
575 run_dump_test_arches "bltu" [mips_arch_list_matching mips1]
7361da2c 576 run_dump_test_arches "branch-likely" [mips_arch_list_matching mips2 !mips32r6]
5915a74a 577 run_dump_test_arches "branch-misc-1" [mips_arch_list_matching mips1]
bad36eac
DJ
578 run_dump_test_arches "branch-misc-2" [mips_arch_list_matching mips1]
579 run_dump_test_arches "branch-misc-2pic" [mips_arch_list_matching mips1]
dc36a61f 580 run_dump_test "branch-misc-3"
e51af157 581 run_dump_test_arches "branch-misc-4" [mips_arch_list_matching mips1]
00437d3b
MR
582 run_dump_test_arches "branch-misc-5" [mips_arch_list_matching mips1]
583 run_dump_test_arches "branch-misc-5pic" [mips_arch_list_matching mips1]
d7f20d66
MR
584 if $has_newabi {
585 run_dump_test_arches "branch-misc-2-64" \
586 [mips_arch_list_matching mips3]
587 run_dump_test_arches "branch-misc-2pic-64" \
588 [mips_arch_list_matching mips3]
589 run_dump_test_arches "branch-misc-4-64" \
590 [mips_arch_list_matching mips3]
00437d3b
MR
591 run_dump_test_arches "branch-misc-5-64" \
592 [mips_arch_list_matching mips3]
593 run_dump_test_arches "branch-misc-5pic-64" \
594 [mips_arch_list_matching mips3]
d7f20d66 595 }
f7870c8d 596 run_dump_test "branch-swap"
464ab0e5 597
16e5e222
RS
598 # Sweep a range of branch offsets so that it hits a position where
599 # it is at the beginning of a frag and then swapped with a 16-bit
600 # instruction from the preceding frag. The offset will be somewhere
601 # close below 4096 as this is the default obstack size limit that
602 # we use and some space will have been already consumed. The exact
603 # amount depends on the host's programming model.
604 for { set count 960 } { $count <= 1024 } { incr count } {
605 run_list_test "branch-swap-2" "--defsym count=$count" \
606 "MIPS branch swapping ($count)"
464ab0e5
MR
607 }
608
99e7978b
MF
609 run_dump_test_arches "branch-swap-3" [mips_arch_list_all]
610 run_dump_test_arches "branch-swap-4" [mips_arch_list_all]
611
c1f61bd2
MR
612 run_dump_test "branch-section-1"
613 run_dump_test "branch-section-2"
614 run_dump_test "branch-section-3"
615 run_dump_test "branch-section-4"
616 run_dump_test "branch-extern-1"
617 run_dump_test "branch-extern-2"
618 run_dump_test "branch-extern-3"
619 run_dump_test "branch-extern-4"
991f40a9
MR
620 run_dump_test "branch-weak-1"
621 run_dump_test "branch-weak-2"
622 run_dump_test "branch-weak-3"
623 run_dump_test "branch-weak-4"
624 run_dump_test "branch-weak-5"
c9775dde
MR
625 run_dump_test "branch-weak-6"
626 run_dump_test "branch-weak-7"
0e9c5a5c 627 run_dump_test "branch-local-1"
7795a8f8 628 run_dump_test "branch-local-2"
8b10b0b3 629 run_dump_test "branch-local-ignore-2"
7795a8f8 630 run_dump_test "branch-local-3"
8b10b0b3 631 run_dump_test "branch-local-ignore-3"
a6ebf616 632 run_dump_test "branch-local-4"
0e9c5a5c
MR
633 if $has_newabi {
634 run_dump_test "branch-local-n32-1"
7795a8f8 635 run_dump_test "branch-local-n32-2"
8b10b0b3 636 run_dump_test "branch-local-ignore-n32-2"
7795a8f8 637 run_dump_test "branch-local-n32-3"
8b10b0b3 638 run_dump_test "branch-local-ignore-n32-3"
a6ebf616 639 run_dump_test "branch-local-n32-4"
0e9c5a5c 640 run_dump_test "branch-local-n64-1"
7795a8f8 641 run_dump_test "branch-local-n64-2"
8b10b0b3 642 run_dump_test "branch-local-ignore-n64-2"
7795a8f8 643 run_dump_test "branch-local-n64-3"
8b10b0b3 644 run_dump_test "branch-local-ignore-n64-3"
a6ebf616
MR
645 run_dump_test "branch-local-n64-4"
646 }
647 run_dump_test "branch-addend"
648 if $has_newabi {
649 run_dump_test "branch-addend-n32"
650 run_dump_test "branch-addend-n64"
0e9c5a5c 651 }
0c117286 652 run_dump_test "branch-absolute"
b416ba9b 653 run_dump_test "branch-absolute-addend"
0c117286
MR
654 if $has_newabi {
655 run_dump_test "branch-absolute-n32"
656 run_dump_test "branch-absolute-addend-n32"
657 run_dump_test "branch-absolute-n64"
658 run_dump_test "branch-absolute-addend-n64"
659 }
c1f61bd2 660
92281a5b
MR
661 run_dump_test_arches "nal-1" [mips_arch_list_matching mips1 !micromips]
662 run_dump_test_arches "nal-2" [mips_arch_list_matching mips1 !micromips]
663
2f0c68f2
CM
664 run_dump_test "compact-eh-eb-1"
665 run_dump_test "compact-eh-eb-2"
666 run_dump_test "compact-eh-eb-3"
667 run_dump_test "compact-eh-eb-4"
668 run_dump_test "compact-eh-eb-5"
669 run_dump_test "compact-eh-eb-6"
670 run_dump_test "compact-eh-eb-7"
671 run_dump_test "compact-eh-el-1"
672 run_dump_test "compact-eh-el-2"
673 run_dump_test "compact-eh-el-3"
674 run_dump_test "compact-eh-el-4"
675 run_dump_test "compact-eh-el-5"
676 run_dump_test "compact-eh-el-6"
677 run_dump_test "compact-eh-el-7"
678 run_list_test "compact-eh-err1"
679 run_list_test "compact-eh-err2"
680
23fce1e3 681 run_dump_test "div"
51124b6c 682
95f6ac88 683 if { !$addr32 && $has_newabi } {
16e5e222 684 run_dump_test_arches "dli" [mips_arch_list_matching mips3]
7388e440 685 }
16e5e222 686 run_dump_test_arches "jal" [mips_arch_list_matching mips1]
df58fc94
RS
687 run_dump_test_arches "jal-mask-11" [mips_arch_list_matching mips1]
688 run_dump_test_arches "jal-mask-12" [mips_arch_list_matching mips1]
689 run_dump_test_arches "jal-mask-21" [mips_arch_list_matching micromips]
690 run_dump_test_arches "jal-mask-22" [mips_arch_list_matching micromips]
ff239038
CM
691 run_dump_test "eret-1"
692 run_dump_test "eret-2"
693 run_dump_test "eret-3"
95f6ac88
MR
694 if { $has_newabi } {
695 run_dump_test_arches "fix-rm7000-1" \
7361da2c
AB
696 [mips_arch_list_matching mips3 !singlefloat \
697 !mips64r6]
95f6ac88 698 }
a8d14a88 699 run_dump_test_arches "fix-rm7000-2" \
7361da2c
AB
700 [mips_arch_list_matching mips3 !singlefloat \
701 !mips64r6]
df58fc94 702 run_dump_test_arches "24k-branch-delay-1" \
fbdd3712 703 [mips_arch_list_matching mips1]
17b09558 704 run_dump_test_arches "24k-triple-stores-1" \
fbdd3712 705 [mips_arch_list_matching fpisa5 !octeon]
df58fc94 706 run_dump_test_arches "24k-triple-stores-2" \
fbdd3712 707 [mips_arch_list_matching mips2]
0aa27725
RS
708 run_dump_test_arches "24k-triple-stores-2-llsc" \
709 [mips_arch_list_matching mips2 !nollsc]
df58fc94 710 run_dump_test_arches "24k-triple-stores-3" \
fbdd3712 711 [mips_arch_list_matching mips2]
df58fc94 712 run_dump_test_arches "24k-triple-stores-4" \
e407c74b 713 [mips_arch_list_matching mips2 !singlefloat]
df58fc94 714 run_dump_test_arches "24k-triple-stores-5" \
fbdd3712 715 [mips_arch_list_matching mips1]
df58fc94 716 run_dump_test_arches "24k-triple-stores-6" \
e407c74b 717 [mips_arch_list_matching mips2 !singlefloat]
df58fc94 718 run_dump_test_arches "24k-triple-stores-7" \
e407c74b 719 [mips_arch_list_matching mips2 !singlefloat]
df58fc94 720 run_dump_test_arches "24k-triple-stores-8" \
fbdd3712 721 [mips_arch_list_matching mips1]
df58fc94 722 run_dump_test_arches "24k-triple-stores-9" \
fbdd3712 723 [mips_arch_list_matching mips1]
df58fc94 724 run_dump_test_arches "24k-triple-stores-10" \
fbdd3712 725 [mips_arch_list_matching mips1]
16e5e222 726 run_dump_test_arches "24k-triple-stores-11" \
fbdd3712 727 [mips_arch_list_matching mips1]
6a32d874 728
16e5e222
RS
729 run_dump_test_arches "jal-svr4pic" [mips_arch_list_matching mips1]
730 run_dump_test_arches "jal-svr4pic-noreorder" \
4d2ad3b0 731 [mips_arch_list_matching mips1]
97f50151
MR
732 run_dump_test_arches "jal-svr4pic-local" \
733 [mips_arch_list_matching mips1]
734 if $has_newabi {
735 run_dump_test_arches "jal-svr4pic-local-n32" \
736 [mips_arch_list_matching mips3]
737 run_dump_test_arches "jal-svr4pic-local-n64" \
738 [mips_arch_list_matching mips3]
739 }
16e5e222 740 run_dump_test "jal-xgot"
21b99e26 741 run_list_test_arches "jal-range" "-32" [mips_arch_list_matching mips1]
3302cdec 742 if $has_newabi { run_dump_test "jal-newabi" }
16e5e222
RS
743 run_dump_test "la"
744 run_dump_test "la-svr4pic"
745 run_dump_test "la-xgot"
746 run_dump_test "lca-svr4pic"
747 run_dump_test "lca-xgot"
748 # XXX FIXME: Has mips2 and later insns with mips1 disassemblies.
749 # (Should split and then use appropriate arch lists.)
750 run_dump_test_arches "lb" [mips_arch_list_matching mips1 !mips2]
751 run_dump_test_arches "lb-svr4pic" \
30cfc97a 752 [mips_arch_list_matching mips1 !gpr_ilocks]
16e5e222
RS
753 run_dump_test_arches "lb-svr4pic-ilocks" [mips_arch_list_matching gpr_ilocks]
754 # Both versions specify the cpu, so we can run both regardless of
755 # the interlocking in the configured default cpu.
756 run_dump_test "lb-xgot"
757 run_dump_test "lb-xgot-ilocks"
758 run_dump_test_arches "ld" [mips_arch_list_matching mips1]
759 run_dump_test_arches "ld-forward" [mips_arch_list_matching mips1]
760 run_dump_test_arches "sd" [mips_arch_list_matching mips1]
761 run_dump_test_arches "sd-forward" [mips_arch_list_matching mips1]
762 run_dump_test_arches "l_d" [mips_arch_list_matching mips1 !singlefloat]
763 run_dump_test_arches "l_d-single" [mips_arch_list_matching mips1 singlefloat]
764 run_dump_test_arches "l_d-forward" [mips_arch_list_matching mips1 !singlefloat]
765 run_dump_test_arches "s_d" [mips_arch_list_matching mips1 !singlefloat]
766 run_dump_test_arches "s_d-single" [mips_arch_list_matching mips1 singlefloat]
767 run_dump_test_arches "s_d-forward" [mips_arch_list_matching mips1 !singlefloat]
768 run_dump_test_arches "ldc1" [mips_arch_list_matching mips2 !singlefloat]
769 run_dump_test_arches "ldc1-forward" [mips_arch_list_matching mips2 !singlefloat]
770 run_dump_test_arches "sdc1" [mips_arch_list_matching mips2 !singlefloat]
771 run_dump_test_arches "sdc1-forward" [mips_arch_list_matching mips2 !singlefloat]
772 if $has_newabi {
773 run_dump_test_arches "ld-n32" [mips_arch_list_matching mips3]
774 run_dump_test_arches "ld-forward-n32" \
17f828b3 775 [mips_arch_list_matching mips3]
16e5e222
RS
776 run_dump_test_arches "sd-n32" [mips_arch_list_matching mips3]
777 run_dump_test_arches "sd-forward-n32" \
17f828b3 778 [mips_arch_list_matching mips3]
16e5e222
RS
779 run_dump_test_arches "l_d-n32" [mips_arch_list_matching mips3 !singlefloat]
780 run_dump_test_arches "l_d-forward-n32" \
e407c74b 781 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
782 run_dump_test_arches "s_d-n32" [mips_arch_list_matching mips3 !singlefloat]
783 run_dump_test_arches "s_d-forward-n32" \
e407c74b 784 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
785 run_dump_test_arches "ldc1-n32" [mips_arch_list_matching mips3 !singlefloat]
786 run_dump_test_arches "ldc1-forward-n32" \
e407c74b 787 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
788 run_dump_test_arches "sdc1-n32" [mips_arch_list_matching mips3 !singlefloat]
789 run_dump_test_arches "sdc1-forward-n32" \
e407c74b 790 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
791 run_dump_test_arches "ld-n64" [mips_arch_list_matching mips3]
792 run_dump_test_arches "ld-forward-n64" \
484cf558 793 [mips_arch_list_matching mips3]
16e5e222
RS
794 run_dump_test_arches "sd-n64" [mips_arch_list_matching mips3]
795 run_dump_test_arches "sd-forward-n64" \
17f828b3 796 [mips_arch_list_matching mips3]
16e5e222
RS
797 run_dump_test_arches "l_d-n64" [mips_arch_list_matching mips3 !singlefloat]
798 run_dump_test_arches "l_d-forward-n64" \
e407c74b 799 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
800 run_dump_test_arches "s_d-n64" [mips_arch_list_matching mips3 !singlefloat]
801 run_dump_test_arches "s_d-forward-n64" \
e407c74b 802 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
803 run_dump_test_arches "ldc1-n64" [mips_arch_list_matching mips3 !singlefloat]
804 run_dump_test_arches "ldc1-forward-n64" \
e407c74b 805 [mips_arch_list_matching mips3 !singlefloat]
16e5e222
RS
806 run_dump_test_arches "sdc1-n64" [mips_arch_list_matching mips3 !singlefloat]
807 run_dump_test_arches "sdc1-forward-n64" \
e407c74b 808 [mips_arch_list_matching mips3 !singlefloat]
252b5132 809 }
f19ccbda
MR
810 run_dump_test_arches "ld-zero" [mips_arch_list_matching mips1]
811 run_dump_test_arches "ld-zero-2" [mips_arch_list_matching mips2 !nollsc]
812 run_dump_test_arches "ld-zero-3" [mips_arch_list_matching mips3 !nollsc]
813 run_dump_test_arches "ld-zero-u" [mips_arch_list_matching micromips]
814 run_dump_test_arches "ld-zero-q" [mips_arch_list_matching r5900]
16e5e222
RS
815 run_dump_test "ld-svr4pic"
816 run_dump_test "ld-xgot"
5915a74a 817 run_dump_test_arches "li" [mips_arch_list_matching mips1]
16e5e222
RS
818 run_dump_test "lifloat"
819 run_dump_test "lif-svr4pic"
820 run_dump_test "lif-xgot"
5915a74a 821 run_dump_test_arches "mips4" [mips_arch_list_matching mips4]
725fc8ed
RS
822 run_dump_test_arches "mips4-fp" "-32" \
823 [mips_arch_list_matching fpisa4]
824 run_dump_test_arches "mips4-fp" "-mabi=o64" \
825 [mips_arch_list_matching fpisa4 gpr64]
f6829a45 826 run_list_test_arches "mips4-fp" "-32 -msoft-float" \
8d367dd5 827 [mips_arch_list_matching fpisa4]
ad500c2e 828 run_dump_test_arches "mips4-branch-likely" \
7361da2c 829 [mips_arch_list_matching mips4 !mips32r6]
ad500c2e 830 run_list_test_arches "mips4-branch-likely" "-32 -msoft-float" \
7361da2c 831 [mips_arch_list_matching mips4 !mips32r6]
725fc8ed
RS
832 run_dump_test_arches "mips5-fp" "-32" \
833 [mips_arch_list_matching fpisa5]
834 run_dump_test_arches "mips5-fp" "-mabi=o64" \
835 [mips_arch_list_matching fpisa5 gpr64]
23fce1e3 836 run_dump_test "mul"
5915a74a 837
30cfc97a 838 run_dump_test_arches "rol" [mips_arch_list_matching mips1 !ror]
5915a74a
CD
839 run_dump_test_arches "rol-hw" [mips_arch_list_matching ror]
840
6b438200
MR
841 run_dump_test_arches "rol64" \
842 [mips_arch_list_matching gpr64 !ror !mips16-32]
5915a74a
CD
843 run_dump_test_arches "rol64-hw" [mips_arch_list_matching gpr64 ror]
844
16e5e222 845 run_dump_test "sb"
00acd688 846 run_dump_test_arches "sdata-gp" [mips_arch_list_matching mips1]
252b5132 847 run_dump_test "trunc"
16e5e222 848 run_dump_test "ulh"
7361da2c
AB
849 run_dump_test_arches "ulh2-eb" [mips_arch_list_matching mips1 !mips32r6]
850 run_dump_test_arches "ulh2-el" [mips_arch_list_matching mips1 !mips32r6]
16e5e222
RS
851 run_dump_test "ulh-svr4pic"
852 run_dump_test "ulh-xgot"
853 run_dump_test "ulw"
854 run_dump_test "uld"
855 run_dump_test "ush"
856 run_dump_test "usw"
857 run_dump_test "usd"
7361da2c
AB
858 run_dump_test_arches "ulw2-eb" [mips_arch_list_matching mips1 !gpr_ilocks \
859 !mips32r6]
860 run_dump_test_arches "ulw2-eb-ilocks" [mips_arch_list_matching gpr_ilocks \
861 !mips32r6]
862 run_dump_test_arches "ulw2-el" [mips_arch_list_matching mips1 !gpr_ilocks \
863 !mips32r6]
864 run_dump_test_arches "ulw2-el-ilocks" [mips_arch_list_matching gpr_ilocks \
865 !mips32r6]
866
867 run_dump_test_arches "uld2-eb" [mips_arch_list_matching mips3 !mips32r6]
868 run_dump_test_arches "uld2-el" [mips_arch_list_matching mips3 !mips32r6]
af22f5b2 869
c60aaac1 870 run_dump_test_arches "mips16" [mips_arch_list_matching mips16-64]
95f6ac88 871 if { $has_newabi } {
c60aaac1
MR
872 run_dump_test_arches "mips16-64" \
873 [mips_arch_list_matching mips16-64]
95f6ac88 874 }
c60aaac1
MR
875 run_dump_test_arches "mips16-macro" [mips_arch_list_matching mips16-32]
876 run_dump_test_arches "mips16-macro-t" \
877 [mips_arch_list_matching mips16-32]
878 run_dump_test_arches "mips16-macro-e" \
879 [mips_arch_list_matching mips16-32]
0674ee5d
MR
880 run_dump_test_arches "mips16-insn-t" \
881 [mips_arch_list_matching mips16-32]
882 run_dump_test_arches "mips16-insn-e" \
883 [mips_arch_list_matching mips16-32]
16e5e222 884 # Check MIPS16e extensions
6b438200 885 run_dump_test_arches "mips16e" [mips_arch_list_matching mips16e-32]
c60aaac1 886 run_dump_test_arches "mips16e-64" [mips_arch_list_matching mips16e-32]
11dd08e9
MR
887 # Check MIPS16 ISA subset disassembly
888 run_dump_test_arches "mips16-sub" [mips_arch_list_matching mips16-32]
889 run_dump_test_arches "mips16e-sub" [mips_arch_list_matching mips16-32]
890 run_dump_test_arches "mips16e-64-sub" \
891 [mips_arch_list_matching mips16-32]
892
16e5e222
RS
893 # Check jalx handling
894 run_dump_test "mips16-jalx"
895 run_dump_test "mips-jalx"
896 run_dump_test "mips-jalx-2"
17c6c9d9
MR
897 run_dump_test "jalx-imm"
898 run_dump_test "jalx-addend"
44d3da23 899 run_dump_test "jalx-local"
17c6c9d9
MR
900 if $has_newabi {
901 run_dump_test "jalx-imm-n32"
902 run_dump_test "jalx-addend-n32"
44d3da23 903 run_dump_test "jalx-local-n32"
17c6c9d9
MR
904 run_dump_test "jalx-imm-n64"
905 run_dump_test "jalx-addend-n64"
44d3da23 906 run_dump_test "jalx-local-n64"
17c6c9d9 907 }
9d862524
MR
908
909 run_list_test "unaligned-jump-1" "-32" \
910 "MIPS jump to unaligned symbol 1"
911 run_list_test "unaligned-jump-2" "-32" \
912 "MIPS jump to unaligned symbol 2"
913 if $has_newabi {
914 run_dump_test "unaligned-jump-3"
915 }
916 run_list_test "unaligned-jump-mips16-1" "-32" \
917 "MIPS16 jump to unaligned symbol 1"
918 run_list_test "unaligned-jump-mips16-2" "-32" \
919 "MIPS16 jump to unaligned symbol 2"
920 if $has_newabi {
921 run_dump_test "unaligned-jump-mips16-3"
922 }
923 run_list_test "unaligned-jump-micromips-1" "-32" \
924 "microMIPS jump to unaligned symbol 1"
925 run_list_test "unaligned-jump-micromips-2" "-32" \
926 "microMIPS jump to unaligned symbol 2"
927 if $has_newabi {
928 run_dump_test "unaligned-jump-micromips-3"
929 }
930 run_list_test "unaligned-branch-1" "-32" \
931 "MIPS branch to unaligned symbol 1"
932 run_list_test "unaligned-branch-2" "-32" \
933 "MIPS branch to unaligned symbol 2"
934 if $has_newabi {
935 run_dump_test "unaligned-branch-3"
936 }
937 run_list_test "unaligned-branch-r6-1" "-32" \
938 "MIPSr6 branch to unaligned symbol 1"
939 run_list_test "unaligned-branch-r6-2" "-32 -mips64r6" \
940 "MIPSr6 branch to unaligned symbol 2"
941 run_list_test "unaligned-branch-r6-3" "-32" \
942 "MIPSr6 branch to unaligned symbol 3"
943 run_list_test "unaligned-branch-r6-4" "-32 -mips64r6" \
944 "MIPSr6 branch to unaligned symbol 4"
945 if $has_newabi {
946 run_dump_test "unaligned-branch-r6-5"
947 run_dump_test "unaligned-branch-r6-6"
948 }
949 run_list_test "unaligned-branch-mips16-1" "-32" \
950 "MIPS16 branch to unaligned symbol 1"
951 run_list_test "unaligned-branch-mips16-2" "-32" \
952 "MIPS16 branch to unaligned symbol 2"
953 if $has_newabi {
954 run_dump_test "unaligned-branch-mips16-3"
955 }
956 run_list_test "unaligned-branch-micromips-1" "-32" \
957 "microMIPS branch to unaligned symbol 1"
958 run_list_test "unaligned-branch-micromips-2" "-32" \
959 "microMIPS branch to unaligned symbol 2"
960 if $has_newabi {
961 run_dump_test "unaligned-branch-micromips-3"
962 }
963
16e5e222
RS
964 # Check MIPS16 HI16/LO16 relocations
965 run_dump_test "mips16-hilo"
966 if $has_newabi {
967 run_dump_test "mips16-hilo-n32"
3396de36 968 }
16e5e222 969 run_dump_test "mips16-hilo-match"
252b5132
RH
970 run_dump_test "delay"
971 run_dump_test "nodelay"
972 run_dump_test "mips4010"
973 run_dump_test "mips4650"
974 run_dump_test "mips4100"
60b63b72
RS
975 run_dump_test "vr4111"
976 run_dump_test "vr4120"
532c738a 977 run_dump_test "vr4120-2"
11db99f8 978 run_dump_test "vr4130"
60b63b72 979 run_dump_test "vr5400"
5c324c16 980 run_list_test "vr5400-ill" "-march=vr5400"
60b63b72 981 run_dump_test "vr5500"
5a7ea749 982 run_dump_test "rm7000"
99c14723 983 run_dump_test "perfcount"
252b5132
RH
984 run_dump_test "lineno"
985 run_dump_test "sync"
5915a74a 986
16e5e222 987 run_dump_test_arches "virt" [mips_arch_list_matching mips32r2]
95f6ac88
MR
988 if { $has_newabi } {
989 run_dump_test_arches "virt64" [mips_arch_list_matching mips64r2]
990 }
b015e599 991
5915a74a 992 run_dump_test_arches "mips32" [mips_arch_list_matching mips32]
df58fc94 993 run_dump_test_arches "mips32-imm" [mips_arch_list_matching mips32]
5915a74a 994
1787fe5b 995 run_dump_test_arches "mips32-sf32" [mips_arch_list_matching mips32]
f6829a45
AN
996 run_list_test_arches "mips32-sf32" "-32 -msoft-float" \
997 [mips_arch_list_matching mips32]
a6d8f55b
AN
998 run_dump_test_arches "mips32-cp2" [mips_arch_list_matching mips32 \
999 !octeon]
1787fe5b 1000
af7ee8bf 1001 run_dump_test_arches "mips32r2" [mips_arch_list_matching mips32r2]
a6d8f55b
AN
1002 run_dump_test_arches "mips32r2-cp2" [mips_arch_list_matching mips32r2 \
1003 !octeon]
f6829a45
AN
1004 run_dump_test_arches "mips32r2-fp32" \
1005 [mips_arch_list_matching mips32r2]
1006 run_list_test_arches "mips32r2-fp32" "-32 -msoft-float" \
1007 [mips_arch_list_matching mips32r2]
5f74bc13 1008 run_list_test_arches "mips32r2-ill" "-32" \
f6829a45 1009 [mips_arch_list_matching mips32r2 gpr32]
5f74bc13 1010 run_list_test_arches "mips32r2-ill-fp64" "-mabi=o64" \
f6829a45
AN
1011 [mips_arch_list_matching mips32r2 gpr64]
1012 run_list_test_arches "mips32r2-ill-nofp" "-32 -msoft-float" \
1013 [mips_arch_list_matching mips32r2]
af7ee8bf 1014
5915a74a 1015 run_dump_test_arches "mips64" [mips_arch_list_matching mips64]
a6d8f55b
AN
1016 run_dump_test_arches "mips64-cp2" [mips_arch_list_matching mips64 \
1017 !octeon]
5915a74a 1018
5f74bc13 1019 run_dump_test_arches "mips64r2" [mips_arch_list_matching mips64r2]
725fc8ed 1020 run_list_test_arches "mips64r2-ill" [mips_arch_list_matching mips64r2]
5f74bc13 1021
fef14a42
TS
1022 run_dump_test "set-arch"
1023
b892b944
TS
1024 if { !$addr32 } {
1025 run_dump_test "mips64-mips3d"
95f6ac88
MR
1026 if { $has_newabi } {
1027 run_dump_test_arches "mips64-mips3d-incl" \
1028 [mips_arch_list_matching mips3d]
1029 }
5915a74a 1030
b892b944 1031 run_dump_test "mips64-mdmx"
95f6ac88
MR
1032 if { $has_newabi } {
1033 run_dump_test "sb1-ext-mdmx"
1034 run_dump_test "sb1-ext-ps"
1035 }
52b6b6b9 1036 run_dump_test "xlr-ext"
b892b944 1037 }
252b5132 1038
7361da2c
AB
1039 run_dump_test_arches "relax" [mips_arch_list_matching mips2 !mips32r6]
1040 run_dump_test_arches "relax-at" [mips_arch_list_matching mips2 !mips32r6]
895921c9
MR
1041 run_dump_test "relax-swap1-mips1"
1042 run_dump_test "relax-swap1-mips2"
1043 run_dump_test "relax-swap2"
9301f9c3 1044 run_dump_test_arches "relax-swap3" [mips_arch_list_all]
919731af 1045 run_list_test_arches "relax-bc1any" "-mips3d -mabi=o64 -relax-branch" \
3bf0dbfb 1046 [mips_arch_list_matching mips64 \
7361da2c 1047 !micromips !mips32r6]
d455268f 1048 run_list_test_arches "relax-bposge" "-mdsp -relax-branch" \
df58fc94 1049 [mips_arch_list_matching mips64r2 \
7361da2c 1050 !micromips !mips32r6]
594e740f 1051
7f3c4072
CM
1052 run_dump_test_arches "eva" [mips_arch_list_matching mips32r2 !octeon]
1053
21b99e26
AO
1054 run_list_test "illegal" "-32"
1055 run_list_test "baddata1" "-32"
e7c604dd 1056 run_list_test "jalr" ""
d9e138e2 1057
dc462216
RS
1058 run_dump_test "mips-gp32-fp32"
1059 run_dump_test "mips-gp32-fp64"
1060 run_dump_test "mips-gp64-fp32"
1061 run_dump_test "mips-gp64-fp64"
dc462216 1062
16e5e222
RS
1063 # Make sure that -mcpu=FOO and -mFOO are equivalent. Assemble a file
1064 # containing 4650-specific instructions with -m4650 and -mcpu=4650,
1065 # and verify that they're the same. Specifically, we're checking
1066 # that the EF_MIPS_MACH field is set, and that the 4650 'mul'
1067 # instruction does get used. In previous versions of GAS,
1068 # only -mcpu=4650 would set the EF_MIPS_MACH field; -m4650 wouldn't.
1069 run_dump_test "elf_e_flags1"
1070 run_dump_test "elf_e_flags2"
1071 run_dump_test "elf_e_flags3"
1072 run_dump_test "elf_e_flags4"
1073
1074 # Check EF_MIPS_ARCH markings for each supported architecture.
1075 run_dump_test "elf_arch_mips1"
1076 run_dump_test "elf_arch_mips2"
1077 run_dump_test "elf_arch_mips3"
1078 run_dump_test "elf_arch_mips4"
1079 run_dump_test "elf_arch_mips5"
1080 run_dump_test "elf_arch_mips32"
1081 run_dump_test "elf_arch_mips32r2"
351cdf24
MF
1082 run_dump_test "elf_arch_mips32r3"
1083 run_dump_test "elf_arch_mips32r5"
09c14161 1084 run_dump_test "elf_arch_mips32r6"
16e5e222
RS
1085 run_dump_test "elf_arch_mips64"
1086 run_dump_test "elf_arch_mips64r2"
351cdf24
MF
1087 run_dump_test "elf_arch_mips64r3"
1088 run_dump_test "elf_arch_mips64r5"
09c14161 1089 run_dump_test "elf_arch_mips64r6"
16e5e222
RS
1090
1091 # Verify that ASE markings are handled properly.
1092 run_dump_test "elf_ase_mips16"
1093 run_dump_test "elf_ase_mips16-2"
1094
1095 run_dump_test "elf_ase_micromips"
1096 run_dump_test "elf_ase_micromips-2"
1097
1098 run_dump_test "mips-gp32-fp32-pic"
1099 run_dump_test "mips-gp32-fp64-pic"
1100 run_dump_test "mips-gp64-fp32-pic"
1101 run_dump_test "mips-gp64-fp64-pic"
1102
1103 run_dump_test "mips-abi32"
1104 run_dump_test "mips-abi32-pic"
1105 run_dump_test "mips-abi32-pic2"
1106
1107 run_dump_test "elf${el}-rel"
6b438200
MR
1108 run_dump_test_arches "elf${el}-rel2" \
1109 [mips_arch_list_matching gpr64 !singlefloat !mips16-32]
16e5e222
RS
1110 run_dump_test "e32${el}-rel2"
1111 run_dump_test "elf${el}-rel3"
6b438200 1112 run_dump_test_arches "elf-rel4" [mips_arch_list_matching gpr64 !mips16-32]
16e5e222
RS
1113 run_dump_test "e32-rel4"
1114 run_dump_test "elf-rel5"
1115 run_dump_test "elf-rel6"
1116 if $has_newabi {
1117 run_dump_test "elf-rel6-n32"
1118 run_dump_test "elf-rel6-n64"
1119 }
1120 run_dump_test "elf-rel7"
1121 run_dump_test "elf-rel8"
1122 run_dump_test "elf-rel8-mips16"
1123 run_dump_test "elf-rel9"
1124 run_dump_test "elf-rel9-mips16"
1125 if $has_newabi {
1126 run_dump_test "elf-rel10"
1127 run_dump_test "elf-rel11"
1128 }
1129 run_dump_test "elf-rel12"
1130 run_dump_test "elf-rel13"
1131 run_dump_test "elf-rel13-mips16"
1132 run_dump_test "elf-rel14"
70a31400 1133
16e5e222
RS
1134 if $has_newabi {
1135 run_dump_test "elf-rel15"
1136 run_dump_test "elf-rel16"
05760fd2 1137
16e5e222
RS
1138 run_dump_test "elf-rel-got-n32"
1139 run_dump_test "elf-rel-xgot-n32"
1140 run_dump_test "elf-rel-got-n64"
1141 run_dump_test "elf-rel-xgot-n64"
1142 }
1143 run_dump_test "elf-rel17"
1144 if $has_newabi {
1145 run_dump_test "elf-rel18"
1146 }
1147 run_dump_test "elf-rel19"
1148 run_dump_test "elf-rel20"
1149 if $has_newabi {
1150 run_dump_test "elf-rel21"
1151 run_dump_test "elf-rel22"
1152 run_dump_test "elf-rel23"
1153 run_dump_test "elf-rel23a"
1154 run_dump_test "elf-rel23b"
1155 run_dump_test "elf-rel24"
1156 }
e8ede7c7 1157
16e5e222
RS
1158 run_dump_test "elf-rel25"
1159 run_dump_test "elf-rel25a"
1160 run_dump_test "elf-rel26"
30cfc97a 1161
16e5e222 1162 run_dump_test_arches "elf-rel27" [mips_arch_list_all]
e391c024 1163
16e5e222
RS
1164 if $has_newabi {
1165 run_dump_test "elf-rel28-n32"
1166 run_dump_test "elf-rel28-n64"
1167 run_dump_test_arches "elf-rel29" [mips_arch_list_matching mips3]
1168 }
1169 run_list_test_arches "elf-rel30" "-32" [mips_arch_list_all]
08ddc280 1170
9e009953
MR
1171 run_dump_test "comdat-reloc"
1172
16e5e222
RS
1173 run_dump_test "${tmips}mips${el}16-e"
1174 run_dump_test "${tmips}mips${el}16-f"
ce70d90a 1175
16e5e222
RS
1176 run_dump_test "elf-consthilo"
1177 run_dump_test "expr1"
e3a82c8e 1178
16e5e222
RS
1179 run_list_test "tls-ill" "-32"
1180 run_dump_test "tls-o32"
1181 run_dump_test "tls-relw"
1182 run_dump_test "jalr2"
1183 run_dump_test_arches "jalr3" [mips_arch_list_matching mips1 \
42868dce 1184 !micromips]
c1556ecd
MR
1185 run_dump_test_arches "jalr4" [mips_arch_list_matching mips1 \
1186 !micromips]
16e5e222
RS
1187 if $has_newabi {
1188 run_dump_test_arches "jalr3-n32" \
42868dce
MR
1189 [mips_arch_list_matching mips3 \
1190 !micromips]
c1556ecd
MR
1191 run_dump_test_arches "jalr4-n32" \
1192 [mips_arch_list_matching mips3 \
1193 !micromips]
16e5e222 1194 run_dump_test_arches "jalr3-n64" \
42868dce
MR
1195 [mips_arch_list_matching mips3 \
1196 !micromips]
c1556ecd
MR
1197 run_dump_test_arches "jalr4-n64" \
1198 [mips_arch_list_matching mips3 \
1199 !micromips]
07147777 1200 }
640c0ccd 1201
37f9ec62
MR
1202 run_dump_test_arches "aent" [mips_arch_list_matching mips1]
1203 run_dump_test_arches "aent-2" [mips_arch_list_matching mips1]
1204 run_dump_test_arches "aent-mdebug" [mips_arch_list_matching mips1]
1205 run_dump_test_arches "aent-mdebug-2" \
1206 [mips_arch_list_matching mips1]
16e5e222 1207
16e5e222
RS
1208 run_dump_test_arches "loc-swap" [mips_arch_list_all]
1209 run_dump_test_arches "loc-swap-dis" [mips_arch_list_all]
1210 run_dump_test_arches "loc-swap-2" [mips_arch_list_all]
1211 run_dump_test_arches "loc-swap-3" [mips_arch_list_all]
1212
ba92f887
MR
1213 run_dump_test "nan-legacy-1"
1214 run_dump_test "nan-legacy-2"
1215 run_dump_test "nan-legacy-3"
1216 run_dump_test "nan-legacy-4"
1217 run_dump_test "nan-legacy-5"
1218
1219 run_dump_test "nan-2008-1"
1220 run_dump_test "nan-2008-2"
1221 run_dump_test "nan-2008-3"
1222 run_dump_test "nan-2008-4"
1223
1224 run_list_test "nan-error-1"
1225 run_list_test "nan-error-2" "-mnan=foo"
1226
5e0116d5 1227 if $has_newabi {
a4cb6c4d
AO
1228 run_dump_test "n32-consec"
1229 }
1230
40fc1451
SD
1231 # tests of objdump's ability to disassemble the move mnemonic
1232 run_dump_test_arches "move" [mips_arch_list_matching mips64 !micromips]
1233 run_dump_test_arches "micromips32-move" [mips_arch_list_matching micromips]
1234
640c0ccd
CD
1235 # tests of objdump's ability to disassemble using different
1236 # register names.
1237 run_dump_test "gpr-names-numeric"
1238 run_dump_test "gpr-names-32"
1239 run_dump_test "gpr-names-n32"
1240 run_dump_test "gpr-names-64"
1241
1242 run_dump_test "fpr-names-numeric"
1243 run_dump_test "fpr-names-32"
1244 run_dump_test "fpr-names-n32"
1245 run_dump_test "fpr-names-64"
1246
1247 run_dump_test "cp0-names-numeric"
f409fd1e
MR
1248 run_dump_test "cp0-names-r3000"
1249 run_dump_test "cp0-names-r4000" \
1250 { { {name} {(r4000)} } { {objdump} {-M cp0-names=r4000} } }
1251 run_dump_test "cp0-names-r4000" \
1252 { { {name} {(r4400)} } { {objdump} {-M cp0-names=r4400} } }
640c0ccd 1253 run_dump_test "cp0-names-mips32"
af7ee8bf 1254 run_dump_test "cp0-names-mips32r2"
640c0ccd 1255 run_dump_test "cp0-names-mips64"
5f74bc13 1256 run_dump_test "cp0-names-mips64r2"
640c0ccd 1257 run_dump_test "cp0-names-sb1"
af7ee8bf 1258
bbcc0807
CD
1259 run_dump_test "cp0sel-names-numeric"
1260 run_dump_test "cp0sel-names-mips32"
1261 run_dump_test "cp0sel-names-mips32r2"
1262 run_dump_test "cp0sel-names-mips64"
5f74bc13 1263 run_dump_test "cp0sel-names-mips64r2"
bbcc0807
CD
1264 run_dump_test "cp0sel-names-sb1"
1265
dc76d757
AB
1266 run_dump_test "cp1-names-numeric"
1267 run_dump_test "cp1-names-r3000"
1268 run_dump_test "cp1-names-r4000" \
1269 { { {name} {(r4000)} } { {objdump} {-M cp0-names=r4000} } }
1270 run_dump_test "cp1-names-r4000" \
1271 { { {name} {(r4400)} } { {objdump} {-M cp0-names=r4400} } }
1272 run_dump_test "cp1-names-mips32"
1273 run_dump_test "cp1-names-mips32r2"
1274 run_dump_test "cp1-names-mips64"
1275 run_dump_test "cp1-names-mips64r2"
1276 run_dump_test "cp1-names-sb1"
1277
af7ee8bf
CD
1278 run_dump_test "hwr-names-numeric"
1279 run_dump_test "hwr-names-mips32r2"
5f74bc13 1280 run_dump_test "hwr-names-mips64r2"
ecd13cd3
TS
1281
1282 run_dump_test "ldstla-32"
2051e8c4 1283 run_dump_test "ldstla-32-mips3"
ecd13cd3 1284 run_dump_test "ldstla-32-shared"
2051e8c4
MR
1285 run_dump_test "ldstla-32-mips3-shared"
1286 run_list_test "ldstla-32-1" "-mabi=32" \
1287 "MIPS ld-st-la bad constants (ABI o32)"
1288 run_list_test "ldstla-32-mips3-1" "-mabi=32" \
1289 "MIPS ld-st-la bad constants (ABI o32, mips3)"
1290 run_list_test "ldstla-32-1" "-KPIC -mabi=32" \
1291 "MIPS ld-st-la bad constants (ABI o32, shared)"
1292 run_list_test "ldstla-32-mips3-1" "-KPIC -mabi=32" \
1293 "MIPS ld-st-la bad constants (ABI o32, mips3, shared)"
aed1a261 1294 run_dump_test "ldstla-eabi64"
ecd13cd3 1295 if $has_newabi {
ecd13cd3
TS
1296 run_dump_test "ldstla-n64"
1297 run_dump_test "ldstla-n64-shared"
aed1a261 1298 run_dump_test "ldstla-n64-sym32"
ecd13cd3 1299 }
5fc68419
RS
1300
1301 run_dump_test "macro-warn-1"
1302 run_dump_test "macro-warn-2"
1303 run_dump_test "macro-warn-3"
1304 run_dump_test "macro-warn-4"
1305 if $has_newabi {
1306 run_dump_test "macro-warn-1-n32"
1307 run_dump_test "macro-warn-2-n32"
1308 }
8fc2e39e
TS
1309
1310 run_dump_test "noat-1"
1311 run_list_test "noat-2" ""
1312 run_list_test "noat-3" ""
1313 run_list_test "noat-4" ""
1314 run_list_test "noat-5" ""
1315 run_list_test "noat-6" ""
1316 run_list_test "noat-7" ""
58e2ea4d 1317
741fe287
MR
1318 run_dump_test "at-1"
1319 run_list_test "at-2" "-32 -mips1" "MIPS at-2"
1320
350cc38d
MS
1321 run_dump_test "loongson-2e"
1322 run_dump_test "loongson-2f"
c67a084a
NC
1323 run_dump_test "loongson-2f-2"
1324 run_dump_test "loongson-2f-3"
61d4e56d 1325
a471ec3a 1326 run_dump_test "loongson-3a"
98675402
RS
1327 run_dump_test "loongson-3a-2"
1328 run_dump_test "loongson-3a-3"
a471ec3a 1329
95f6ac88
MR
1330 if { $has_newabi } {
1331 run_dump_test_arches "octeon" [mips_arch_list_matching octeon]
1332 }
dd6a37e7 1333 run_dump_test_arches "octeon-saa-saad" [mips_arch_list_matching octeonp]
725fc8ed 1334 run_list_test_arches "octeon-ill" [mips_arch_list_matching octeon]
95f6ac88
MR
1335 if { $has_newabi } {
1336 run_dump_test_arches "octeon-pref" \
1337 [mips_arch_list_matching octeon]
1338 }
432233b3 1339 run_dump_test_arches "octeon2" [mips_arch_list_matching octeon2]
2c629856 1340 run_dump_test_arches "octeon3" [mips_arch_list_matching octeon3]
350cc38d 1341
0797561a 1342 run_dump_test "smartmips"
03f66e8a
MR
1343 run_dump_test_arches "mips32-dsp" [mips_arch_list_matching mips32r2 \
1344 !octeon]
1345 run_dump_test_arches "mips32-dspr2" [mips_arch_list_matching mips32r2 \
1346 !octeon]
8f4f9071 1347 run_dump_test_arches "mips32-dspr3" [mips_arch_list_matching mips32r6]
0797561a
AN
1348 run_dump_test "mips64-dsp"
1349 run_dump_test "mips32-mt"
305e06d3 1350
16e5e222
RS
1351 run_dump_test "mips16-dwarf2"
1352 if $has_newabi {
1353 run_dump_test "mips16-dwarf2-n32"
0499d65b 1354 }
16e5e222
RS
1355 run_dump_test "mips16-stabs"
1356
1357 run_dump_test "mips16e-jrc"
1358 run_dump_test "mips16e-save"
1a00e612 1359 run_list_test "mips16e-save-err" "-march=mips32 -32"
16e5e222 1360 run_dump_test "mips16-intermix"
f17ecb4b 1361 run_dump_test "mips16-extend"
645c4556 1362 run_dump_test "mips16-extend-swap"
353abf7c 1363 run_dump_test "mips16-sprel-swap"
c97dda72 1364 run_dump_test "mips16-sdrasp"
3fb49709 1365 run_dump_test "mips16-insn-length-noargs"
16e5e222 1366
eefc3365
MR
1367 run_dump_test "mips16-branch-unextended-1"
1368 run_dump_test "mips16-branch-unextended-2"
1da43acc
MR
1369 run_dump_test "mips16-relax-unextended-1"
1370 run_dump_test "mips16-relax-unextended-2"
7fd53920
MR
1371 run_dump_test "mips16-jal-t"
1372 run_dump_test "mips16-jal-e"
eefc3365 1373
5284e471
MR
1374 run_dump_test_arches "mips16-asmacro" [mips_arch_list_matching mips16-32]
1375
0a44bf69
RS
1376 run_dump_test "vxworks1"
1377 run_dump_test "vxworks1-xgot"
a284cff1
TS
1378 run_dump_test "vxworks1-el"
1379 run_dump_test "vxworks1-xgot-el"
ef75f014
TS
1380
1381 run_dump_test "noreorder"
49954fb4 1382 run_dump_test "align"
742a56fe
RS
1383 run_dump_test "align2"
1384 run_dump_test "align2-el"
462427c4 1385 run_dump_test "align3"
c8ab98e0 1386 run_dump_test "odd-float"
7bb01e2d 1387 run_dump_test "insn-opts"
f6829a45
AN
1388
1389 run_list_test_arches "mips-macro-ill-sfp" "-32 -msingle-float" \
1390 [mips_arch_list_matching mips2]
1391 run_list_test_arches "mips-macro-ill-nofp" "-32 -msoft-float" \
1392 [mips_arch_list_matching mips2]
1393
1394 run_list_test_arches "mips-hard-float-flag" \
1395 "-32 -msoft-float -mhard-float" \
16e5e222 1396 [mips_arch_list_matching mips1 !singlefloat]
f6829a45
AN
1397 run_list_test_arches "mips-double-float-flag" \
1398 "-32 -msingle-float -mdouble-float" \
16e5e222 1399 [mips_arch_list_matching mips1 !singlefloat]
30c09090
RS
1400
1401 run_dump_test "mips16-vis-1"
861fb55a 1402 run_dump_test "call-nonpic-1"
5fb8dac1 1403 run_dump_test "mips32-sync"
f6690563
MR
1404 run_dump_test_arches "mips32r2-sync" \
1405 [mips_arch_list_matching mips32r2]
7361da2c
AB
1406 run_dump_test_arches "alnv_ps-swap" [mips_arch_list_matching fpisa5 \
1407 !mips32r6]
df58fc94
RS
1408 run_dump_test_arches "cache" [lsort -dictionary -unique [concat \
1409 [mips_arch_list_matching mips3] \
1410 [mips_arch_list_matching mips32] ] ]
7361da2c
AB
1411 run_dump_test_arches "daddi" [mips_arch_list_matching mips3 \
1412 !mips32r6]
df58fc94
RS
1413 run_dump_test_arches "pref" [lsort -dictionary -unique [concat \
1414 [mips_arch_list_matching mips4] \
1415 [mips_arch_list_matching mips32] ] ]
5fb8dac1 1416
a79558d9 1417 if $has_newabi { run_dump_test "cfi-n64-1" }
f77ef3e2
RS
1418
1419 run_dump_test "pr12915"
4c260379
RS
1420 run_dump_test "reginfo-1a"
1421 run_dump_test "reginfo-1b"
df58fc94 1422
16e5e222
RS
1423 run_dump_test "micromips"
1424 run_dump_test "micromips-trap"
7bd374a4 1425 run_dump_test "micromips-compact"
833794fc
MR
1426 run_dump_test "micromips-insn32"
1427 run_dump_test "micromips-noinsn32"
1428 run_list_test "micromips" "-mips32r2 -32 -mfp64 -minsn32" \
1429 "microMIPS for MIPS32r2 (instructions invalid in insn32 mode)"
16e5e222
RS
1430 run_list_test "micromips-size-0" \
1431 "-32 -march=mips64 -mmicromips" "microMIPS instruction size 0"
1432 run_dump_test "micromips-size-1"
1433 run_dump_test "micromips-branch-relax"
1434 run_dump_test "micromips-branch-relax-pic"
8484fb75
MR
1435 run_dump_test "micromips-branch-relax-insn32"
1436 run_dump_test "micromips-branch-relax-insn32-pic"
16e5e222
RS
1437 run_dump_test "micromips-branch-delay"
1438 run_dump_test "micromips-warn-branch-delay"
1439 run_dump_test "micromips-warn-branch-delay-1"
0c117286 1440 run_dump_test "micromips-branch-absolute"
b416ba9b 1441 run_dump_test "micromips-branch-absolute-addend"
0c117286
MR
1442 if $has_newabi {
1443 run_dump_test "micromips-branch-absolute-n32"
1444 run_dump_test "micromips-branch-absolute-addend-n32"
1445 run_dump_test "micromips-branch-absolute-n64"
1446 run_dump_test "micromips-branch-absolute-addend-n64"
1447 }
16e5e222 1448 run_dump_test "micromips-b16"
a92713e6 1449 run_list_test "micromips-ill"
dec0624d
MR
1450
1451 run_dump_test_arches "mcu" [mips_arch_list_matching mips32r2 \
1452 !octeon]
1976c292
RS
1453 run_dump_test_arches "hilo-diff-eb" [mips_arch_list_all]
1454 run_dump_test_arches "hilo-diff-el" [mips_arch_list_all]
1455 if $has_newabi {
1456 run_dump_test_arches "hilo-diff-eb-n32" [mips_arch_list_matching mips3]
1457 run_dump_test_arches "hilo-diff-el-n32" [mips_arch_list_matching mips3]
1458 run_dump_test_arches "hilo-diff-eb-n64" [mips_arch_list_matching mips3]
1459 run_dump_test_arches "hilo-diff-el-n64" [mips_arch_list_matching mips3]
1460 }
5821951c
MR
1461 run_dump_test_arches "lui" [mips_arch_list_matching mips1]
1462 run_list_test_arches "lui-1" "-32" [mips_arch_list_matching mips1]
1463 run_list_test_arches "lui-2" "-32" [mips_arch_list_matching mips1]
e407c74b
NC
1464
1465 run_dump_test "r5900"
1466 run_dump_test "r5900-full"
16e5e222 1467 run_list_test "r5900-nollsc" "-mabi=o64 -march=r5900"
c77c0862 1468 run_dump_test "r5900-vu0"
14daeee3
RS
1469 run_dump_test "r5900-full-vu0"
1470 run_dump_test "r5900-all-vu0"
1471 run_list_test "r5900-error-vu0" "-march=r5900"
a5163986
CF
1472
1473 run_list_test_arches "ext-ill" [mips_arch_list_matching mips64r2]
c6278170
RS
1474
1475 run_list_test "ase-errors-1" "-mabi=32 -march=mips1" "ASE errors (1)"
1476 run_list_test "ase-errors-2" "-mabi=o64 -march=mips3" "ASE errors (2)"
1477 run_list_test "ase-errors-3" "-mabi=32 -march=mips1" "ASE errors (3)"
1478 run_list_test "ase-errors-4" "-mabi=o64 -march=mips3" "ASE errors (4)"
f2ae14a1
RS
1479
1480 run_dump_test_arches "la-reloc" [mips_arch_list_matching mips1]
ece794d9
MF
1481 run_list_test "dla-warn" "-mabi=32 -march=mips3" \
1482 "DLA with 32-bit addresses"
f2ae14a1
RS
1483 if { $has_newabi } {
1484 run_dump_test_arches "dla-reloc" [mips_arch_list_matching mips3]
ece794d9
MF
1485 run_list_test "la-warn" "-mabi=64 -march=mips3" \
1486 "LA with 64-bit addresses"
f2ae14a1
RS
1487 }
1488
1489 # Start with MIPS II to avoid load delay nops.
1490 run_dump_test_arches "ld-reloc" [mips_arch_list_matching mips2]
7361da2c
AB
1491 run_dump_test_arches "ulw-reloc" [mips_arch_list_matching mips2 !mips32r6]
1492 run_dump_test_arches "ulh-reloc" [mips_arch_list_matching mips2 !mips32r6]
f2ae14a1
RS
1493
1494 run_dump_test "l_d-reloc"
6f72df77 1495 run_list_test "bltzal"
ec0c61e3
CF
1496
1497 run_dump_test_arches "msa" [mips_arch_list_matching mips32r2]
95f6ac88
MR
1498 if { $has_newabi } {
1499 run_dump_test_arches "msa64" [mips_arch_list_matching mips64r2]
1500 }
7361da2c 1501 run_dump_test_arches "msa-relax" [mips_arch_list_matching mips32r2 !mips32r6]
cbfebe3c 1502 run_dump_test_arches "msa-branch" [mips_arch_list_matching mips32r2]
d56a8dda 1503
7d64c587 1504 run_dump_test_arches "xpa" [mips_arch_list_matching mips32r2 !micromips]
351cdf24 1505 run_dump_test_arches "r5" "-32" [mips_arch_list_matching mips32r5 !micromips]
7d64c587 1506
d56a8dda
RS
1507 run_dump_test "pcrel-1"
1508 run_dump_test "pcrel-2"
1509 run_list_test "pcrel-3" "" "Invalid cross-section PC-relative references"
1510 run_dump_test "pcrel-4-32"
1511 if $has_newabi {
1512 run_dump_test "pcrel-4-n32"
1513 run_dump_test "pcrel-4-64"
1514 }
263b2574 1515
912815f0
MR
1516 run_dump_test "pcrel-reloc-1"
1517 run_dump_test "pcrel-reloc-1-r6"
1518 run_dump_test "pcrel-reloc-2"
1519 run_dump_test "pcrel-reloc-2-r6"
1520 run_dump_test "pcrel-reloc-3"
1521 run_dump_test "pcrel-reloc-3-r6"
41947d9e
MR
1522 run_dump_test "pcrel-reloc-4"
1523 run_dump_test "pcrel-reloc-4-r6"
1524 run_dump_test "pcrel-reloc-5"
1525 run_dump_test "pcrel-reloc-5-r6"
1526 run_dump_test "pcrel-reloc-6"
1527 run_list_test "pcrel-reloc-6" "-32 --defsym offset=4" \
1528 "MIPS local PC-relative relocations 6b"
912815f0 1529
88a7ef16
MR
1530 run_dump_test "mips16-pcrel-relax-0"
1531 run_dump_test "mips16-pcrel-relax-1"
1532 run_dump_test "mips16-pcrel-relax-2"
1533 run_dump_test "mips16-pcrel-relax-3"
1534 run_dump_test "mips16-pcrel-reloc-0"
1535 run_dump_test "mips16-pcrel-reloc-1"
1536 run_dump_test "mips16-pcrel-reloc-2"
1537 run_dump_test "mips16-pcrel-reloc-3"
1538 run_dump_test "mips16-pcrel-reloc-4"
1539 run_dump_test "mips16-pcrel-reloc-5"
1540 run_dump_test "mips16-pcrel-reloc-6"
1541 run_dump_test "mips16-pcrel-reloc-7"
1542 run_dump_test "mips16-pcrel-addend-0"
1543 run_dump_test "mips16-pcrel-addend-1"
1544 run_dump_test "mips16-pcrel-addend-2"
1545 run_dump_test "mips16-pcrel-addend-3"
1546 run_dump_test "mips16-pcrel-absolute"
1547 run_dump_test "mips16-branch-reloc-0"
1548 run_dump_test "mips16-branch-reloc-1"
1549 run_dump_test "mips16-branch-reloc-2"
1550 run_dump_test "mips16-branch-reloc-3"
1551 run_dump_test "mips16-branch-addend-0"
1552 run_dump_test "mips16-branch-addend-1"
1553 run_dump_test "mips16-branch-addend-2"
1554 run_dump_test "mips16-branch-addend-3"
1555 run_dump_test "mips16-branch-absolute"
b416ba9b 1556 run_dump_test "mips16-branch-absolute-addend"
0c117286
MR
1557 if $has_newabi {
1558 run_dump_test "mips16-branch-absolute-n32"
1559 run_dump_test "mips16-branch-absolute-addend-n32"
1560 run_dump_test "mips16-branch-absolute-n64"
1561 run_dump_test "mips16-branch-absolute-addend-n64"
1562 }
88a7ef16
MR
1563 run_dump_test "mips16-absolute-reloc-0"
1564 run_dump_test "mips16-absolute-reloc-1"
1565 run_dump_test "mips16-absolute-reloc-2"
1566 run_dump_test "mips16-absolute-reloc-3"
1567
351cdf24
MF
1568 run_dump_test_arches "attr-gnu-4-0" "-32" \
1569 [mips_arch_list_matching mips1]
95f6ac88
MR
1570 if { $has_newabi } {
1571 run_dump_test_arches "attr-gnu-4-0" "-64" \
351cdf24 1572 [mips_arch_list_matching mips3]
95f6ac88 1573 }
351cdf24 1574 run_dump_test_arches "attr-gnu-4-0" "-mfp32 -32" \
7361da2c 1575 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1576 run_dump_test_arches "attr-gnu-4-0" "-mfpxx -32" \
1577 [mips_arch_list_matching mips2 !r5900]
1578 run_dump_test_arches "attr-gnu-4-0" "-mfp64 -32" \
1579 [mips_arch_list_matching mips32r2]
1580 run_dump_test_arches "attr-gnu-4-0" "-mfp64 -mno-odd-spreg -32" \
1581 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1582 if { $has_newabi } {
1583 run_dump_test_arches "attr-gnu-4-0" "-mfp64 -64" \
351cdf24 1584 [mips_arch_list_matching mips3]
95f6ac88 1585 }
351cdf24
MF
1586 run_dump_test_arches "attr-gnu-4-0" "-msingle-float -32" \
1587 [mips_arch_list_matching mips1]
95f6ac88
MR
1588 if { $has_newabi } {
1589 run_dump_test_arches "attr-gnu-4-0" "-msingle-float -64" \
351cdf24 1590 [mips_arch_list_matching mips3]
95f6ac88 1591 }
351cdf24
MF
1592 run_dump_test_arches "attr-gnu-4-0" "-msoft-float -32" \
1593 [mips_arch_list_matching mips1]
95f6ac88
MR
1594 if { $has_newabi } {
1595 run_dump_test_arches "attr-gnu-4-0" "-msoft-float -64" \
351cdf24 1596 [mips_arch_list_matching mips3]
95f6ac88 1597 }
351cdf24 1598 run_dump_test_arches "attr-none-double" "-32" \
7361da2c
AB
1599 [mips_arch_list_matching mips1 !mips32r6]
1600 run_dump_test_arches "r6-attr-none-double" "-32" \
1601 [mips_arch_list_matching mips32r6]
95f6ac88
MR
1602 if { $has_newabi } {
1603 run_dump_test_arches "attr-none-double" "-64" \
351cdf24 1604 [mips_arch_list_matching mips3]
95f6ac88 1605 }
351cdf24
MF
1606 run_dump_test_arches "attr-none-o32-fpxx" \
1607 [mips_arch_list_matching mips2 !r5900]
1608 run_dump_test_arches "attr-none-o32-fp64" \
1609 [mips_arch_list_matching mips32r2]
1610 run_dump_test_arches "attr-none-o32-fp64-nooddspreg" \
1611 [mips_arch_list_matching mips32r2]
1612 run_dump_test_arches "attr-none-single-float" "-32" \
1613 [mips_arch_list_matching mips1]
95f6ac88
MR
1614 if { $has_newabi } {
1615 run_dump_test_arches "attr-none-single-float" "-64" \
351cdf24 1616 [mips_arch_list_matching mips3]
95f6ac88 1617 }
351cdf24
MF
1618 run_dump_test_arches "attr-none-soft-float" "-32 -msoft-float" \
1619 [mips_arch_list_matching mips1]
95f6ac88
MR
1620 if { $has_newabi } {
1621 run_dump_test_arches "attr-none-soft-float" "-64 -msoft-float" \
351cdf24 1622 [mips_arch_list_matching mips3]
95f6ac88 1623 }
351cdf24
MF
1624
1625 run_list_test_arches "attr-gnu-4-1-mfp64" \
1626 "-32 -mfp64 -mno-odd-spreg" \
1627 [mips_arch_list_matching mips32r2]
1628 run_list_test_arches "attr-gnu-4-1-mfp64" "-32 -mfp64" \
1629 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1630 if { $has_newabi } {
1631 run_list_test_arches "attr-gnu-4-1-mfp32" "-64 -mfp32" \
7361da2c 1632 [mips_arch_list_matching mips3 !mips64r6]
95f6ac88 1633 }
351cdf24
MF
1634 run_list_test_arches "attr-gnu-4-1-msingle-float" "-32 -msingle-float" \
1635 [mips_arch_list_matching mips1]
1636 run_list_test_arches "attr-gnu-4-1-msoft-float" "-32 -msoft-float" \
1637 [mips_arch_list_matching mips1]
1638 run_dump_test_arches "attr-gnu-4-1" "-32 -mfpxx" \
1639 [mips_arch_list_matching mips2 !r5900]
1640 run_dump_test_arches "attr-gnu-4-1" "-32 -mfp32" \
7361da2c 1641 [mips_arch_list_matching mips1 !mips32r6]
95f6ac88
MR
1642 if { $has_newabi } {
1643 run_dump_test_arches "attr-gnu-4-1" "-64 -mfp64" \
351cdf24 1644 [mips_arch_list_matching mips3]
95f6ac88 1645 }
351cdf24
MF
1646
1647 run_list_test_arches "attr-gnu-4-2-mdouble-float" "-32 -mfp32" \
7361da2c 1648 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1649 run_list_test_arches "attr-gnu-4-2-mdouble-float" "-32 -mfpxx" \
1650 [mips_arch_list_matching mips2 !r5900]
1651 run_list_test_arches "attr-gnu-4-2-mdouble-float" "-32 -mfp64" \
1652 [mips_arch_list_matching mips32r2]
1653 run_list_test_arches "attr-gnu-4-2-mdouble-float" \
1654 "-32 -mfp64 -mno-odd-spreg" \
1655 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1656 if { $has_newabi } {
1657 run_list_test_arches "attr-gnu-4-2-mdouble-float" "-64 -mfp64" \
351cdf24 1658 [mips_arch_list_matching mips3]
95f6ac88 1659 }
351cdf24
MF
1660 run_list_test_arches "attr-gnu-4-2-msoft-float" "-32 -msoft-float" \
1661 [mips_arch_list_matching mips1]
1662 run_dump_test_arches "attr-gnu-4-2" "-32" \
1663 [mips_arch_list_matching mips1]
95f6ac88
MR
1664 if { $has_newabi } {
1665 run_dump_test_arches "attr-gnu-4-2" "-64" \
351cdf24 1666 [mips_arch_list_matching mips3]
95f6ac88 1667 }
351cdf24
MF
1668
1669 run_list_test_arches "attr-gnu-4-3-mhard-float" "-32 -mfp32" \
7361da2c 1670 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1671 run_list_test_arches "attr-gnu-4-3-mhard-float" "-32 -mfpxx" \
1672 [mips_arch_list_matching mips2 !r5900]
1673 run_list_test_arches "attr-gnu-4-3-mhard-float" "-32 -mfp64" \
1674 [mips_arch_list_matching mips32r2]
1675 run_list_test_arches "attr-gnu-4-3-mhard-float" \
1676 "-32 -mfp64 -mno-odd-spreg" \
1677 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1678 if { $has_newabi } {
1679 run_list_test_arches "attr-gnu-4-3-mhard-float" "-64 -mfp64" \
351cdf24 1680 [mips_arch_list_matching mips3]
95f6ac88 1681 }
351cdf24
MF
1682 run_list_test_arches "attr-gnu-4-3-mhard-float" "-32 -msingle-float" \
1683 [mips_arch_list_matching mips1]
1684 run_dump_test_arches "attr-gnu-4-3" "-32" \
1685 [mips_arch_list_matching mips1]
95f6ac88
MR
1686 if { $has_newabi } {
1687 run_dump_test_arches "attr-gnu-4-3" "-64" \
351cdf24 1688 [mips_arch_list_matching mips3]
95f6ac88 1689 }
351cdf24
MF
1690
1691 run_list_test_arches "attr-gnu-4-4" "-32 -mfp32" \
7361da2c 1692 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1693 run_list_test_arches "attr-gnu-4-4" "-32 -mfpxx" \
1694 [mips_arch_list_matching mips2 !r5900]
1695 run_list_test_arches "attr-gnu-4-4" "-32 -mfp64" \
1696 [mips_arch_list_matching mips32r2]
1697 run_list_test_arches "attr-gnu-4-4" "-32 -mfp64 -mno-odd-spreg" \
1698 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1699 if { $has_newabi } {
1700 run_list_test_arches "attr-gnu-4-4" "-64 -mfp64" \
351cdf24 1701 [mips_arch_list_matching mips3]
95f6ac88 1702 }
351cdf24
MF
1703 run_list_test_arches "attr-gnu-4-4" "-32 -msingle-float" \
1704 [mips_arch_list_matching mips1]
1705 run_list_test_arches "attr-gnu-4-4" "-32 -msoft-float" \
1706 [mips_arch_list_matching mips1]
1707
1708 run_list_test_arches "attr-gnu-4-5" "-32 -mfp32" \
7361da2c 1709 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1710 run_list_test_arches "attr-gnu-4-5" "-32 -mfp64" \
1711 [mips_arch_list_matching mips32r2]
1712 run_list_test_arches "attr-gnu-4-5" "-32 -mfp64 -mno-odd-spreg" \
1713 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1714 if { $has_newabi } {
1715 run_list_test_arches "attr-gnu-4-5-64" "-64 -mfp64" \
351cdf24 1716 [mips_arch_list_matching mips3]
95f6ac88 1717 }
ea79f94a 1718 run_list_test_arches "attr-gnu-4-5-msingle-float" "-32 -msingle-float" \
351cdf24 1719 [mips_arch_list_matching mips1]
ea79f94a 1720 run_list_test_arches "attr-gnu-4-5-msoft-float" "-32 -msoft-float" \
351cdf24
MF
1721 [mips_arch_list_matching mips1]
1722 run_dump_test_arches "attr-gnu-4-5" \
1723 [mips_arch_list_matching mips2 !r5900]
1724
1725 run_list_test_arches "attr-gnu-4-6" "-32 -mfp32" \
7361da2c 1726 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1727 run_list_test_arches "attr-gnu-4-6-noodd" "-32 -mfp64 -mno-odd-spreg" \
1728 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1729 if { $has_newabi } {
1730 run_list_test_arches "attr-gnu-4-6-64" "-64 -mfp64" \
351cdf24 1731 [mips_arch_list_matching mips3]
95f6ac88 1732 }
ea79f94a 1733 run_list_test_arches "attr-gnu-4-6-msingle-float" "-32 -msingle-float" \
351cdf24 1734 [mips_arch_list_matching mips1]
ea79f94a 1735 run_list_test_arches "attr-gnu-4-6-msoft-float" "-32 -msoft-float" \
351cdf24
MF
1736 [mips_arch_list_matching mips1]
1737 run_list_test_arches "attr-gnu-4-6" "-32 -mfpxx" \
1738 [mips_arch_list_matching mips2 !r5900]
1739 run_dump_test_arches "attr-gnu-4-6" "-32 -mfp64" \
1740 [mips_arch_list_matching mips32r2]
1741
1742 run_list_test_arches "attr-gnu-4-7" "-32 -mfp32" \
7361da2c 1743 [mips_arch_list_matching mips1 !mips32r6]
351cdf24
MF
1744 run_list_test_arches "attr-gnu-4-7-odd" "-32 -mfp64" \
1745 [mips_arch_list_matching mips32r2]
95f6ac88
MR
1746 if { $has_newabi } {
1747 run_list_test_arches "attr-gnu-4-7-64" "-64 -mfp64" \
351cdf24 1748 [mips_arch_list_matching mips3]
95f6ac88 1749 }
ea79f94a 1750 run_list_test_arches "attr-gnu-4-7-msingle-float" "-32 -msingle-float" \
351cdf24 1751 [mips_arch_list_matching mips1]
ea79f94a 1752 run_list_test_arches "attr-gnu-4-7-msoft-float" "-32 -msoft-float" \
351cdf24
MF
1753 [mips_arch_list_matching mips1]
1754 run_list_test_arches "attr-gnu-4-7" "-32 -mfpxx" \
1755 [mips_arch_list_matching mips2 !r5900]
1756 run_dump_test_arches "attr-gnu-4-7" "-32 -mfp64 -mno-odd-spreg" \
1757 [mips_arch_list_matching mips32r2]
1758
263b2574 1759 run_dump_test "attr-gnu-abi-fp-1"
1760 run_dump_test "attr-gnu-abi-msa-1"
919731af 1761
1762 run_dump_test "module-override"
1763 run_dump_test "module-defer-warn1"
351cdf24
MF
1764 run_list_test "module-defer-warn2" "-32"
1765
1766 foreach testopt [list -mfp32 -mfpxx -mfp64 "-mfp64-noodd" \
1767 -msingle-float -msoft-float] {
1768 foreach cmdopt [list -mfp32 -mfpxx -mfp64 "-mfp64 -mno-odd-spreg" \
1769 -msingle-float -msoft-float] {
1770 run_dump_test "module${testopt}" \
1771 [list [list as $cmdopt] [list name ($cmdopt)]]
1772 }
1773 }
1774
1775 run_dump_test "module-set-mfpxx"
1776 run_list_test_arches "fpxx-oddfpreg" "-32 -mfpxx" \
1777 [mips_arch_list_matching mips2 !singlefloat]
1778 run_list_test_arches "fpxx-oddfpreg" "-32 -mfpxx -mno-odd-spreg" \
1779 [mips_arch_list_matching mips2 !singlefloat]
1780 run_dump_test_arches "fpxx-oddfpreg" \
1781 [mips_arch_list_matching oddspreg]
1782 run_dump_test_arches "odd-spreg" "-mfp32" [mips_arch_list_matching oddspreg]
1783 run_dump_test_arches "odd-spreg" "-mfpxx" [mips_arch_list_matching oddspreg]
1784 run_dump_test_arches "odd-spreg" "-mfp64" [mips_arch_list_matching mips32r2]
7361da2c
AB
1785 run_dump_test_arches "no-odd-spreg" "-mfp32" [mips_arch_list_matching mips1 \
1786 !mips32r6]
351cdf24
MF
1787 run_dump_test_arches "no-odd-spreg" "-mfpxx" [mips_arch_list_matching mips2 !r5900]
1788 run_dump_test_arches "no-odd-spreg" "-mfp64" [mips_arch_list_matching mips32r2]
1789 run_dump_test "module-check"
1790 run_list_test "module-check-warn" "-32"
1791
1792 run_dump_test "li-d"
7361da2c 1793
41a1578e
MR
1794 run_dump_test "option-pic-1"
1795 run_list_test "option-pic-2" "" \
1796 "MIPS invalid PIC option"
668c5ebc
MR
1797 run_list_test "option-pic-vxworks-1" "-mvxworks-pic" \
1798 "MIPS invalid PIC option in VxWorks PIC"
1799 run_list_test "option-pic-vxworks-2" "-mvxworks-pic" \
1800 "MIPS invalid switch to SVR4 PIC from VxWorks PIC"
1801
22522f88
MR
1802 run_dump_test_arches "isa-override-1" "" [mips_arch_list_matching mips1]
1803 run_list_test_arches "isa-override-2" "-32" [mips_arch_list_matching mips1]
1804
5ff6a06c
MR
1805 run_dump_test "debug-label-end-1"
1806 run_dump_test "debug-label-end-2"
1807 run_dump_test "debug-label-end-3"
1808
9875b365
MR
1809 run_dump_test "org-1"
1810 run_dump_test "org-2"
1811 run_dump_test "org-3"
1812 run_dump_test "org-4"
1813 run_dump_test "org-5"
1814 run_dump_test "org-6"
1815 run_dump_test "org-7"
1816 run_dump_test "org-8"
1817 run_dump_test "org-9"
1818 run_dump_test "org-10"
1819 run_dump_test "org-11"
1820 run_dump_test "org-12"
1821
7361da2c
AB
1822 run_dump_test_arches "r6" [mips_arch_list_matching mips32r6]
1823 if $has_newabi {
1824 run_dump_test_arches "r6-n32" [mips_arch_list_matching mips64r6]
1825 run_dump_test_arches "r6-n64" [mips_arch_list_matching mips64r6]
1826 run_dump_test_arches "r6-64-n32" [mips_arch_list_matching mips64r6]
1827 run_dump_test_arches "r6-64-n64" [mips_arch_list_matching mips64r6]
0866e94c 1828 run_list_test_arches "ldpc-unalign" "-64" [mips_arch_list_matching mips64r6]
7361da2c
AB
1829 }
1830 run_list_test_arches "r6-removed" "-32" [mips_arch_list_matching mips32r6]
1831 run_list_test_arches "r6-64-removed" [mips_arch_list_matching mips64r6]
6914869a 1832
2ca4ff6d
MF
1833 run_list_test_arches "r6-branch-constraints" "-32" \
1834 [mips_arch_list_matching mips32r6]
252b5132 1835}
This page took 0.903905 seconds and 4 git commands to generate.