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