2003-04-03 Philip Blundell <philb@gnu.org>
[deliverable/binutils-gdb.git] / gas / testsuite / gas / arm / arm.exp
1 #
2 # Some ARM tests
3 #
4 proc run_errors_test { name opts tname} {
5 global srcdir subdir
6 set testname "$tname"
7 set file $srcdir/$subdir/$name
8 gas_run ${name}.s $opts ">&${name}.out"
9 if { [regexp_diff "${name}.out" "${file}.l"] } then {
10 fail $testname
11 verbose "output is [file_contents "${name}.out"]" 2
12 return
13 }
14 pass $testname
15 }
16
17 if {[istarget *arm*-*-*] || [istarget "xscale-*-*"]} then {
18 run_dump_test "inst"
19
20 run_dump_test "ldconst"
21
22 run_dump_test "armv1"
23
24 run_errors_test "armv1-bad" "-mcpu=arm7m" "ARM v1 errors"
25
26 gas_test "arm3.s" "-mcpu=arm3" $stdoptlist "Arm 3 instructions"
27
28 gas_test "arm6.s" "-mcpu=arm6" $stdoptlist "Arm 6 instructions"
29
30 gas_test "arm7dm.s" "-mcpu=arm7dm" $stdoptlist "Arm 7DM instructions"
31
32 run_dump_test "arm7t"
33
34 if {! [istarget arm*-*-aout]} then {
35 # The arm-aout port does not support Thumb mode.
36 gas_test "thumb.s" "-mcpu=arm7t" $stdoptlist "Thumb instructions"
37 }
38
39 gas_test "arch4t.s" "-march=armv4t" $stdoptlist "Arm architecture 4t instructions"
40
41 run_dump_test "arch5tej"
42
43 gas_test "copro.s" "" $stdoptlist "Co processor instructions"
44
45 gas_test "immed.s" "" $stdoptlist "immediate expressions"
46
47 gas_test "float.s" "-mcpu=arm7tdmi" $stdoptlist "Core floating point instructions"
48
49 run_dump_test "fpa-monadic"
50
51 run_dump_test "fpa-dyadic"
52
53 run_dump_test "fpa-mem"
54
55 run_dump_test "vfp1xD"
56
57 run_dump_test "vfp1"
58
59 run_errors_test "vfp-bad" "-mfpu=vfp" "VFP errors"
60
61 run_dump_test "xscale"
62
63 run_dump_test "adrl"
64
65 run_dump_test "maverick"
66
67 if {[istarget *-*-elf*] || [istarget *-*-linux*]} then {
68 run_dump_test "pic"
69 }
70
71 gas_test "offset.s" "" $stdoptlist "OFFSET_IMM regression"
72 }
73
74 # Not all arm targets are bi-endian, so only run this test on ones
75 # we know that are. FIXME: We should probably also key off armeb/armel.
76
77 if [istarget arm-*-pe] {
78 run_dump_test "le-fpconst"
79
80 # Since big-endian numbers have the normal format, this doesn't exist.
81 #run_dump_test "be-fpconst"
82 }
83
84 if [istarget xscale-*] {
85 run_dump_test "iwmmxt"
86 }
This page took 0.031982 seconds and 4 git commands to generate.