* gas/testsuite/gas/m68k/all.exp: Run "mode5" test also with -mcpu=5200.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / m68k / all.exp
1 #
2 # Some generic m68k tests
3 #
4 if [istarget "m68hc11-*-*"] then {
5 return
6 }
7 if [istarget "m68hc12-*-*"] then {
8 return
9 }
10 if [istarget "m6811-*-*"] then {
11 return
12 }
13 if [istarget "m6812-*-*"] then {
14 return
15 }
16 if { [istarget m68*-*-*] || [istarget fido*-*-*] } then {
17 gas_test "t2.s" "" "" "cross-section branch"
18 if [istarget m68*-motorola-sysv] then {
19 run_dump_test t2
20 }
21
22 gas_test "pic1.s" "" "" "PIC generation"
23
24 gas_test "disperr.s" "-m68020" "" "Incorrect Displacement too long error"
25
26 gas_test_error "p2410.s" "" "out-of-range 'bras'"
27
28 # Reloc types etc. need changing for aout and coff to pass.
29 setup_xfail "*-*"
30 clear_xfail "*-*-*elf*" "*-*-sysv4*" "*-*-rtems*" "*-*-*linux*" "*-*-*gnu*" "*-*-psos*"
31 run_dump_test pcrel
32
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
37 run_dump_test cas
38 run_dump_test bitfield
39 } else {
40 # Test fido-specific instructions.
41 run_dump_test fido
42 }
43
44 run_dump_test link
45
46 # fido does not have a floating point unit.
47 if ![istarget fido-*-*] then {
48 run_dump_test fmoveml
49 }
50
51 run_dump_test mcf-mov3q
52 run_dump_test mcf-movsr
53 run_dump_test mode5
54 run_dump_test mode5 "{name {cf}} {as {-mcpu=5200}}"
55 run_dump_test mcf-mac
56 run_dump_test mcf-emac
57 run_dump_test mcf-coproc
58 run_dump_test mcf-fpu
59 run_dump_test mcf-trap
60 run_dump_test mcf-wdebug
61 if { [istarget *-*-elf] || [istarget *-*-linux*] } then {
62 run_dump_test arch-cpu-1
63 }
64 run_dump_test cpu32
65
66 run_dump_test br-isaa
67 run_dump_test br-isab
68 run_dump_test br-isac
69
70 run_dump_test ctrl-1
71 run_dump_test ctrl-2
72
73 gas_test_error "p11673.s" "-march=isab" "movel immediate with offset unsupported on isab"
74
75 if { [istarget *-*-*aout] || [istarget *-*-netbsd] || [istarget *-*-openbsd*] } then {
76 run_dump_test p3041
77 run_dump_test p3041data
78 run_dump_test p3041pcrel
79 }
80
81 set testname "68000 operands"
82 gas_run "operands.s" "-m68000" "2>err.out"
83 if ![string match "child process exited abnormally" $comp_output] then {
84 send_log "$comp_output\n"
85 verbose "$comp_output" 3
86 fail $testname
87 } else {
88 if [regexp_diff "err.out" "$srcdir/$subdir/op68000.d"] then {
89 fail $testname
90 } else {
91 pass $testname
92 }
93 }
94
95 if { [istarget m68k-*-linux*] } then {
96 run_dump_test tls-gd-3
97 }
98
99 run_dump_test pr11676
100 }
101 if [info exists errorInfo] then {
102 unset errorInfo
103 }
This page took 0.033803 seconds and 5 git commands to generate.