blob: de43bf25ed78ceb7fe21f740a6330e9b92a9fea5 [file] [log] [blame]
#
# x86-64 ILP32 tests
#
proc gas_64_check { } {
global NM
global NMFLAGS
set status [gas_host_run "$NM $NMFLAGS --help" ""]
return [regexp "targets:.*x86-64" [lindex $status 1]];
}
if [istarget "x86_64-*-solaris*"] then {
return
}
if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then {
global ASFLAGS
set old_ASFLAGS "$ASFLAGS"
set ASFLAGS "$ASFLAGS --x32"
foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.d]] {
if { [runtest_file_p $runtests $test] } {
run_dump_test [file rootname $test]
}
}
run_list_test "reloc64" "--defsym _bad_=1"
set ASFLAGS "$old_ASFLAGS"
}