2 # Some generic m68k tests
4 if [istarget
"m68hc11-*-*"] then {
7 if [istarget
"m68hc12-*-*"] then {
10 if [istarget
"m6811-*-*"] then {
13 if [istarget
"m6812-*-*"] then {
16 if { [istarget m68
*-*-*] ||
[istarget fido
*-*-*] } then {
17 gas_test
"t2.s" "" "" "cross-section branch"
18 if [istarget m68
*-motorola
-sysv
] then {
22 gas_test
"pic1.s" "" "" "PIC generation"
24 gas_test
"disperr.s" "-m68020" "" "Incorrect Displacement too long error"
26 gas_test_error
"p2410.s" "" "out-of-range 'bras'"
28 # Reloc types etc. need changing
for aout and coff to pass.
30 clear_xfail
"*-*-*elf*" "*-*-sysv4*" "*-*-rtems" "*-*-*gnu*" "*-*-psos*"
33 # Since fido is basically CPU32
, it does not support those
34 # instructions beyond CPU32. Disable those tests that test them.
35 if ![istarget fido
-*-*] then {
36 run_dump_test operands
38 run_dump_test bitfield
40 # Test fido
-specific instructions.
46 # fido does not have a floating point unit.
47 if ![istarget fido
-*-*] then {
51 run_dump_test mcf
-mov3q
52 run_dump_test mcf
-movsr
55 run_dump_test mcf
-emac
56 run_dump_test mcf
-coproc
58 run_dump_test mcf
-trap
59 run_dump_test mcf
-wdebug
60 if { [istarget
*-*-elf
] ||
[istarget
*-*-linux
*] } then {
61 run_dump_test arch
-cpu
-1
72 if { [istarget
*-*-netbsd
] } then {
74 run_dump_test p3041data
77 set testname
"68000 operands"
78 gas_run
"operands.s" "-m68000" "2>err.out"
79 if ![string match
"child process exited abnormally" $comp_output] then {
80 send_log
"$comp_output\n"
81 verbose
"$comp_output" 3
84 if [regexp_diff
"err.out" "$srcdir/$subdir/op68000.d"] then {
91 if { [istarget m68k
-*-linux
*] } then {
92 run_dump_test tls
-gd
-3
97 if [info exists errorInfo
] then {