OSDN Git Service

*** empty log message ***
[pf3gnuchains/sourceware.git] / gas / testsuite / gas / maxq10 / maxq10.exp
1 #
2 # MAXQ10 tests
3 #
4 proc gas_64_check { } {
5     global NM
6     global NMFLAGS
7
8     set status [gas_host_run "$NM $NMFLAGS --help" ""]
9     return [regexp "targets:.*maxq" [lindex $status 1]]
10 }
11
12 proc gas_32_check { } {
13     global NM
14     global NMFLAGS
15     global srcdir
16
17     set status [gas_host_run "$NM $NMFLAGS --help" ""]
18     return [regexp "targets:.*maxq" [lindex $status 1]]
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