Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | # |
2 | # D30V assembler tests | |
3 | # | |
4 | ||
5 | proc run_list_test { name opts } { | |
6 | global srcdir subdir | |
7 | set testname "D30V $name" | |
8 | set file $srcdir/$subdir/$name | |
9 | gas_run ${name}.s $opts ">&dump.out" | |
10 | if {[regexp_diff "dump.out" "${file}.l"] } { | |
11 | fail $testname | |
12 | verbose "output is [file_contents "dump.out"]" 2 | |
13 | return | |
14 | } | |
15 | pass $testname | |
16 | } | |
17 | ||
18 | if {[istarget d30v-*-*]} { | |
19 | run_dump_test "inst" | |
20 | run_dump_test "align" | |
21 | run_dump_test "guard" | |
22 | run_dump_test "guard-debug" | |
23 | run_dump_test "reloc" | |
24 | run_dump_test "opt" | |
25 | run_dump_test "array" | |
26 | run_dump_test "label" | |
27 | run_list_test "warn_oddreg" "-al" | |
28 | run_list_test "bittest" "-al" | |
29 | run_dump_test "bittest" | |
30 | run_list_test "serial" "-al" | |
31 | run_list_test "serial2" "-al" | |
32 | run_list_test "serial2O" "-al -O" | |
33 | run_dump_test "mul" | |
34 | } | |
35 |