Add x86-64 ILP32 support.
[binutils.git] / gas / testsuite / gas / i386 / ilp32 / lns / ilp32.exp
blob5ec1dfdd6d7cb12eb7f7efc80be0bb7771f58508
2 # x86-64 ILP32 tests
4 proc gas_64_check { } {
5 global NM
6 global NMFLAGS
8 set status [gas_host_run "$NM $NMFLAGS --help" ""]
9 return [regexp "targets:.*x86-64" [lindex $status 1]];
12 if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then {
14 global ASFLAGS
15 set old_ASFLAGS "$ASFLAGS"
16 set ASFLAGS "$ASFLAGS --n32"
18 foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.d]] {
19 if { [runtest_file_p $runtests $test] } {
20 run_dump_test [file rootname $test]
24 set ASFLAGS "$old_ASFLAGS"