Commit | Line | Data |
---|---|---|
351f65ca L |
1 | # |
2 | # x86-64 ILP32 tests | |
3 | # | |
4 | proc gas_64_check { } { | |
5 | global NM | |
6 | global NMFLAGS | |
7 | ||
8 | set status [gas_host_run "$NM $NMFLAGS --help" ""] | |
9 | return [regexp "targets:.*x86-64" [lindex $status 1]]; | |
10 | } | |
11 | ||
9ace5d96 | 12 | if [expr [istarget "i*86-*-solaris*"] || [istarget "x86_64-*-solaris*"]] then { |
4e4f7c87 NC |
13 | return |
14 | } | |
15 | ||
351f65ca L |
16 | if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then { |
17 | ||
18 | global ASFLAGS | |
19 | set old_ASFLAGS "$ASFLAGS" | |
570561f7 | 20 | set ASFLAGS "$ASFLAGS --x32" |
351f65ca L |
21 | |
22 | foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.d]] { | |
23 | if { [runtest_file_p $runtests $test] } { | |
24 | run_dump_test [file rootname $test] | |
25 | } | |
26 | } | |
27 | ||
f2d8a97c | 28 | run_list_test "reloc64" "--defsym _bad_=1" |
7f56bc95 | 29 | |
351f65ca L |
30 | set ASFLAGS "$old_ASFLAGS" |
31 | } |