OSDN Git Service

cf0c93e43c2cad0953bd2373a901d4c91c3cc5e4
[pf3gnuchains/sourceware.git] / gas / testsuite / gas / maxq20 / maxq20.exp
1 #
2 # MAXQ20 tests
3 #
4 proc gas_64_check { } {
5     global NM
6     global NMFLAGS
7     global srcdir
8
9     set status [gas_host_run "$NM $NMFLAGS --help" ""]
10     return [regexp "targets:.*maxq" [lindex $status 1]]
11 }
12
13 proc gas_32_check { } {
14     global NM
15     global NMFLAGS
16     global srcdir
17
18     set status [gas_host_run "$NM $NMFLAGS --help" ""]
19     return [regexp "targets:.*maxq" [lindex $status 1]]
20 }
21
22
23 if [expr ([istarget "maxq-*-*"] ||  [istarget "maxq-coff-*-*"]) && [gas_32_check]]  then {
24
25     global ASFLAGS
26     set old_ASFLAGS "$ASFLAGS"
27     set ASFLAGS "$ASFLAGS"
28
29     run_dump_test "range"
30     run_dump_test "data3"
31     run_dump_test "data2"
32     run_dump_test "call"
33     run_dump_test "jump"
34     run_dump_test "logical"
35     run_dump_test "math"
36     run_dump_test "bits"
37     run_dump_test "data1"
38     run_dump_test "jzimm"
39
40     set ASFLAGS "$old_ASFLAGS"
41 }
42