diff options
Diffstat (limited to 'ld/testsuite/ld-x86-64/x86-64.exp')
-rw-r--r-- | ld/testsuite/ld-x86-64/x86-64.exp | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index 12f5cad..8e83ca8 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -1,5 +1,6 @@ # Expect script for ld-x86_64 tests -# Copyright (C) 2002, 2005, 2006, 2007, 2008, 2009 Free Software Foundation +# Copyright (C) 2002, 2005, 2006, 2007, 2008, 2009, 2010, 2011 +# Free Software Foundation # # This file is part of the GNU Binutils. # @@ -140,4 +141,43 @@ if { ![istarget "x86_64-*-linux*"] } { return } +if ![ld_assemble $as "--n32 $srcdir/$subdir/start.s" tmpdir/startn32.o] { + unresolved "Build ILP32 start.o" + return +} + +if ![ld_assemble $as "--32 $srcdir/$subdir/start.s" tmpdir/start32.o] { + unresolved "Build ia32 start.o" + return +} + +if ![ld_assemble $as "--64 $srcdir/$subdir/start.s" tmpdir/start64.o] { + unresolved "Build LP64 start.o" + return +} + +if ![ld_assemble $as "--n32 $srcdir/$subdir/foo.s" tmpdir/foon32.o] { + unresolved "Build ILP32 foo.o" + return +} + +if ![ld_assemble $as "--32 $srcdir/$subdir/foo.s" tmpdir/foo32.o] { + unresolved "Build ia32 foo.o" + return +} + +if ![ld_assemble $as "--64 $srcdir/$subdir/foo.s" tmpdir/foo64.o] { + unresolved "Build LP64 foo.o" + return +} + run_dump_test "compressed1" +run_dump_test "ilp32-1" +run_dump_test "ilp32-2" +run_dump_test "ilp32-3" +run_dump_test "ia32-1" +run_dump_test "ia32-2" +run_dump_test "ia32-3" +run_dump_test "lp64-1" +run_dump_test "lp64-2" +run_dump_test "lp64-3" |