2 # Free Software Foundation, Inc.
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.
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.
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.
19 # Some generic m68k tests
21 if [istarget "m68hc11-*-*"] then {
24 if [istarget "m68hc12-*-*"] then {
27 if [istarget "m6811-*-*"] then {
30 if [istarget "m6812-*-*"] then {
33 if { [istarget m68*-*-*] || [istarget fido*-*-*] } then {
34 gas_test "t2.s" "" "" "cross-section branch"
35 if [istarget m68*-motorola-sysv] then {
39 gas_test "pic1.s" "" "" "PIC generation"
41 gas_test "disperr.s" "-m68020" "" "Incorrect Displacement too long error"
43 gas_test_error "p2410.s" "" "out-of-range 'bras'"
45 # Reloc types etc. need changing for aout and coff to pass.
47 clear_xfail "*-*-*elf*" "*-*-sysv4*" "*-*-rtems*" "*-*-*linux*" "*-*-*gnu*" "*-*-psos*"
50 # Since fido is basically CPU32, it does not support those
51 # instructions beyond CPU32. Disable those tests that test them.
52 if ![istarget fido-*-*] then {
53 run_dump_test operands
55 run_dump_test bitfield
57 # Test fido-specific instructions.
63 # fido does not have a floating point unit.
64 if ![istarget fido-*-*] then {
68 run_dump_test mcf-mov3q
69 run_dump_test mcf-movsr
71 run_dump_test mode5 "{name {cf}} {as {-mcpu=5200}}"
72 run_dump_test movem-offset
73 run_dump_test movem-offset "{name {cf}} {as {-mcpu=5485}}"
75 run_dump_test mcf-emac
76 run_dump_test mcf-coproc
78 run_dump_test mcf-trap
79 run_dump_test mcf-wdebug
80 if { [istarget *-*-elf] || [istarget *-*-linux*] } then {
81 run_dump_test arch-cpu-1
92 gas_test_error "p11673.s" "-march=isab" "movel immediate with offset unsupported on isab"
94 if { [istarget *-*-*aout] || [istarget *-*-netbsd] || [istarget *-*-openbsd*] } then {
96 run_dump_test p3041data
97 run_dump_test p3041pcrel
100 set testname "68000 operands"
101 gas_run "operands.s" "-m68000" "2>err.out"
102 if ![string match "child process exited abnormally" $comp_output] then {
103 send_log "$comp_output\n"
104 verbose "$comp_output" 3
107 if [regexp_diff "err.out" "$srcdir/$subdir/op68000.d"] then {
114 if { [istarget m68k-*-linux*] } then {
115 run_dump_test tls-gd-3
118 if { ! [istarget fido-*-*] } then {
119 # The testcase uses an invalid instruction for this architecture.
120 run_dump_test pr11676
125 if [info exists errorInfo] then {