Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | # |
2 | # i386 tests | |
3 | # | |
4 | proc run_list_test { name opts } { | |
5 | global srcdir subdir | |
6 | set testname "i386 $name" | |
7 | set file $srcdir/$subdir/$name | |
8 | gas_run ${name}.s $opts ">&dump.out" | |
9 | if { [regexp_diff "dump.out" "${file}.l"] } then { | |
10 | fail $testname | |
11 | verbose "output is [file_contents "dump.out"]" 2 | |
12 | return | |
13 | } | |
14 | pass $testname | |
15 | } | |
16 | ||
17 | ||
18 | if [istarget "i*86-*-*"] then { | |
19 | ||
20 | run_list_test "float" "-al" | |
21 | run_list_test "general" "-al --listing-lhs-width=2" | |
22 | run_list_test "inval" "-al" | |
23 | run_list_test "modrm" "-al --listing-lhs-width=2" | |
3f9ed93b | 24 | run_dump_test "naked" |
252b5132 | 25 | run_dump_test "opcode" |
cc5ca5ce | 26 | run_dump_test "intel" |
252b5132 RH |
27 | run_dump_test "prefix" |
28 | run_dump_test "amd" | |
c608c12e | 29 | run_dump_test "katmai" |
a3d1c52b | 30 | run_dump_test "jump" |
252b5132 | 31 | |
a3d1c52b AM |
32 | # These tests require support for 8 and 16 bit relocs, |
33 | # so we only run them for ELF and COFF targets. | |
b7be1db6 | 34 | if {[istarget "*-*-elf*"] || [istarget "*-*-linux*"] || [istarget "*-*-coff*"]} then { |
252b5132 | 35 | run_dump_test "reloc" |
a3d1c52b | 36 | run_dump_test "jump16" |
252b5132 RH |
37 | run_list_test "white" "-al --listing-lhs-width=3" |
38 | } | |
39 | } |