OSDN Git Service

2007-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
[pf3gnuchains/pf3gnuchains3x.git] / gas / testsuite / gas / s390 / s390.exp
1 #
2 # s390/s390x tests
3 #
4 proc run_list_test { name opts } {
5     global srcdir subdir
6     set testname "s390 $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         exit
13         return
14     }
15     pass $testname
16 }
17
18 if [expr [istarget "s390-*-*"] ||  [istarget "s390x-*-*"]]  then {
19
20     run_dump_test "esa-g5" "{as -m31}"
21     run_dump_test "esa-z900" "{as -m31} {as -march=z900}"
22     run_dump_test "esa-z990" "{as -m31} {as -march=z990}"
23     run_dump_test "esa-z9-109" "{as -m31} {as -march=z9-109}"
24     run_dump_test "esa-reloc" "{as -m31}"
25     run_dump_test "esa-operands" "{as -m31}"
26
27 #    # PIC is only supported on ELF targets.
28 #    if { ([istarget "*-*-elf*"] || [istarget "*-*-linux*"] ) } then {
29 #       run_dump_test "s390pic"
30 #    }
31
32     run_dump_test "zarch-z900" "{as -m64}"
33     run_dump_test "zarch-z990" "{as -m64} {as -march=z990}"
34     run_dump_test "zarch-z9-109" "{as -m64} {as -march=z9-109}"
35     run_dump_test "zarch-z9-ec" "{as -m64} {as -march=z9-ec}"
36     run_dump_test "zarch-reloc" "{as -m64}"
37     run_dump_test "zarch-operands" "{as -m64} {as -march=z9-109}"
38 }