Update PR ld/14962 testcase
[deliverable/binutils-gdb.git] / gas / testsuite / gas / m68k / all.exp
CommitLineData
252b5132
RH
1#
2# Some generic m68k tests
3#
60bcf0fa
NC
4if [istarget "m68hc11-*-*"] then {
5 return
6}
7if [istarget "m68hc12-*-*"] then {
8 return
9}
10if [istarget "m6811-*-*"] then {
11 return
12}
13if [istarget "m6812-*-*"] then {
14 return
15}
9ab8ee21 16if { [istarget m68*-*-*] || [istarget fido*-*-*] } then {
252b5132
RH
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
4fa0e86f
AM
28 # Reloc types etc. need changing for aout and coff to pass.
29 setup_xfail "*-*"
c4990c4b 30 clear_xfail "*-*-*elf*" "*-*-sysv4*" "*-*-rtems*" "*-*-*linux*" "*-*-*gnu*" "*-*-psos*"
252b5132 31 run_dump_test pcrel
9ab8ee21
KH
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
252b5132 44 run_dump_test link
1bc5dc87
KH
45
46 # fido does not have a floating point unit.
47 if ![istarget fido-*-*] then {
48 run_dump_test fmoveml
49 }
50
68eb2996 51 run_dump_test mcf-mov3q
25b07cd9 52 run_dump_test mcf-movsr
580b9172 53 run_dump_test mode5
96e67898 54 run_dump_test mode5 "{name {cf}} {as {-mcpu=5200}}"
c3732716
JB
55 run_dump_test movem-offset
56 run_dump_test movem-offset "{name {cf}} {as {-mcpu=5485}}"
fd99574b
NC
57 run_dump_test mcf-mac
58 run_dump_test mcf-emac
afa2158f 59 run_dump_test mcf-coproc
c2fe9327 60 run_dump_test mcf-fpu
869ddf2a 61 run_dump_test mcf-trap
ddefa7f5 62 run_dump_test mcf-wdebug
1c3f20b4
NC
63 if { [istarget *-*-elf] || [istarget *-*-linux*] } then {
64 run_dump_test arch-cpu-1
65 }
baee4c9e 66 run_dump_test cpu32
252b5132 67
9a2e615a
NS
68 run_dump_test br-isaa
69 run_dump_test br-isab
70 run_dump_test br-isac
71
78336706
NS
72 run_dump_test ctrl-1
73 run_dump_test ctrl-2
74
6ffe3d99
NC
75 gas_test_error "p11673.s" "-march=isab" "movel immediate with offset unsupported on isab"
76
32a96f36 77 if { [istarget *-*-*aout] || [istarget *-*-netbsd] || [istarget *-*-openbsd*] } then {
1c3f20b4 78 run_dump_test p3041
b2b74248 79 run_dump_test p3041data
32a96f36 80 run_dump_test p3041pcrel
1c3f20b4
NC
81 }
82
252b5132
RH
83 set testname "68000 operands"
84 gas_run "operands.s" "-m68000" "2>err.out"
85 if ![string match "child process exited abnormally" $comp_output] then {
86 send_log "$comp_output\n"
87 verbose "$comp_output" 3
88 fail $testname
89 } else {
eb22018c 90 if [regexp_diff "err.out" "$srcdir/$subdir/op68000.d"] then {
252b5132
RH
91 fail $testname
92 } else {
93 pass $testname
94 }
95 }
cf869cce
NC
96
97 if { [istarget m68k-*-linux*] } then {
98 run_dump_test tls-gd-3
99 }
09ec0d17 100
6f78ea24
IS
101 if { ! [istarget fido-*-*] } then {
102 # The testcase uses an invalid instruction for this architecture.
103 run_dump_test pr11676
104 }
e143d25c
AS
105
106 run_dump_test pmove
252b5132
RH
107}
108if [info exists errorInfo] then {
109 unset errorInfo
60bcf0fa 110}
This page took 0.668299 seconds and 4 git commands to generate.