Commit | Line | Data |
---|---|---|
af029d49 DB |
1 | # FRV assembler testsuite. |
2 | ||
676a64f4 RS |
3 | proc run_list_test { name opts } { |
4 | global srcdir subdir | |
5 | set testname "$name error test ($opts)" | |
6 | gas_run $name.s $opts >&dump.out | |
7 | if {[regexp_diff dump.out $srcdir/$subdir/$name.l]} { | |
8 | fail $testname | |
9 | verbose "output is [file_contents dump.out]" 2 | |
10 | return | |
11 | } | |
12 | pass $testname | |
13 | } | |
14 | ||
af029d49 DB |
15 | if [istarget frv*-*-*] { |
16 | run_dump_test "allinsn" | |
fee5fcc5 AO |
17 | |
18 | run_dump_test "fdpic" | |
d5087907 | 19 | run_dump_test "reloc1" |
676a64f4 RS |
20 | run_dump_test "fr405-insn" |
21 | run_list_test "fr405-insn" "-mcpu=fr400" | |
22 | run_list_test "fr405-insn" "-mcpu=fr500" | |
23 | ||
24 | run_dump_test "fr450-spr" | |
25 | run_dump_test "fr450-insn" | |
26 | run_list_test "fr450-insn" "-mcpu=fr405" | |
27 | run_list_test "fr450-insn" "-mcpu=fr400" | |
28 | run_list_test "fr450-insn" "-mcpu=fr500" | |
29 | run_list_test "fr450-media-issue" "-mcpu=fr450" | |
af029d49 | 30 | } |