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