]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/testsuite/gas/i386/i386.exp
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / i386 / i386.exp
CommitLineData
7faae6fb
ILT
1#
2# i386 tests
3#
4proc 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
18if [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"
24 run_dump_test "opcode"
25 run_dump_test "prefix"
26
27 # The reloc and white tests require support for 8 and 16 bit
28 # relocs, so we only run them for ELF targets.
29 if {[istarget "*-*-elf*"] || [istarget "*-*-linux*"]} then {
30 run_dump_test "reloc"
31 run_list_test "white" "-al --listing-lhs-width=3"
32 }
33}