]> Git Repo - binutils.git/blob - gas/testsuite/gas/arm/arm.exp
2bff85ffecc21e05ef35fdbd25e8ab35e424761f
[binutils.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" "" $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     if {[istarget *-*-elf*] || [istarget *-*-linux*]} then {
66         run_dump_test "pic"
67     }
68 }
69
70 # Not all arm targets are bi-endian, so only run this test on ones
71 # we know that are.  FIXME: We should probably also key off armeb/armel.
72
73 if [istarget arm-*-pe] {
74     run_dump_test "le-fpconst"
75
76     # Since big-endian numbers have the normal format, this doesn't exist.
77     #run_dump_test "be-fpconst"
78 }
79
80 if [istarget arm9e-*] {
81     run_dump_test "maverick"
82 }
This page took 0.019488 seconds and 2 git commands to generate.