Commit | Line | Data |
---|---|---|
7499d566 NC |
1 | # |
2 | # MAXQ10 tests | |
3 | # | |
7499d566 NC |
4 | proc gas_64_check { } { |
5 | global NM | |
6 | global NMFLAGS | |
7499d566 | 7 | |
7f6a71ff JM |
8 | set status [gas_host_run "$NM $NMFLAGS --help" ""] |
9 | return [regexp "targets:.*maxq" [lindex $status 1]] | |
7499d566 NC |
10 | } |
11 | ||
12 | proc gas_32_check { } { | |
13 | global NM | |
14 | global NMFLAGS | |
15 | global srcdir | |
16 | ||
7f6a71ff JM |
17 | set status [gas_host_run "$NM $NMFLAGS --help" ""] |
18 | return [regexp "targets:.*maxq" [lindex $status 1]] | |
7499d566 NC |
19 | } |
20 | ||
21 | if [expr ([istarget "maxq-*-*"] || [istarget "maxq-coff-*"]) && [gas_32_check]] then { | |
22 | ||
23 | global ASFLAGS | |
24 | set old_ASFLAGS "$ASFLAGS" | |
25 | set ASFLAGS "$ASFLAGS -MAXQ10" | |
26 | ||
27 | run_dump_test "range" | |
28 | run_dump_test "data3" | |
29 | run_dump_test "data2" | |
30 | run_dump_test "call" | |
31 | run_dump_test "jump" | |
32 | run_dump_test "logical" | |
33 | run_dump_test "math" | |
34 | run_dump_test "bits" | |
35 | ||
36 | set ASFLAGS "$old_ASFLAGS" | |
37 | } | |
38 |