diff options
Diffstat (limited to 'gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp')
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp b/gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp new file mode 100644 index 0000000000..5ec1dfdd6d --- /dev/null +++ b/gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp @@ -0,0 +1,25 @@ +# +# 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 [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then { + + global ASFLAGS + set old_ASFLAGS "$ASFLAGS" + set ASFLAGS "$ASFLAGS --n32" + + foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.d]] { + if { [runtest_file_p $runtests $test] } { + run_dump_test [file rootname $test] + } + } + + set ASFLAGS "$old_ASFLAGS" +} |