diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-08-24 17:57:51 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-08-24 17:57:51 +0000 |
commit | 8d89367e21c2e2c0965fe725e620a6d53b7d5d05 (patch) | |
tree | a6fcb20ef6a3a09d6cbc593084a6f42d1c2e5e4e /gas/testsuite/gas/i386 | |
parent | 90a521152894f6ede7480151a3924c8425ba5a1e (diff) | |
download | binutils-redhat-8d89367e21c2e2c0965fe725e620a6d53b7d5d05.tar.gz |
Properly check x32 support
* gas/i386/ilp32/ilp32.exp (gas_64_check): Renamed to ...
(gas_x32_check): This. Check elf32-x86-64.
Remove Solaris check.
* gas/i386/ilp32/cfi/ilp32.exp: Likewise.
* gas/i386/ilp32/elf/ilp32.exp: Likewise.
* gas/i386/ilp32/lns/ilp32.exp: Likewise.
Diffstat (limited to 'gas/testsuite/gas/i386')
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/elf/ilp32.exp | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/ilp32.exp | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/lns/ilp32.exp | 10 |
4 files changed, 12 insertions, 28 deletions
diff --git a/gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp b/gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp index 3a6dbd5253..96e9b78fcd 100644 --- a/gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp +++ b/gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp @@ -1,19 +1,15 @@ # # x86-64 ILP32 tests # -proc gas_64_check { } { +proc gas_x32_check { } { global NM global NMFLAGS set status [gas_host_run "$NM $NMFLAGS --help" ""] - return [regexp "targets:.*x86-64" [lindex $status 1]]; + return [regexp "targets:.*elf32-x86-64" [lindex $status 1]]; } -if [expr [istarget "i*86-*-solaris*"] || [istarget "x86_64-*-solaris*"]] then { - return -} - -if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then { +if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_x32_check] && [is_elf_format]] then { global ASFLAGS set old_ASFLAGS "$ASFLAGS" diff --git a/gas/testsuite/gas/i386/ilp32/elf/ilp32.exp b/gas/testsuite/gas/i386/ilp32/elf/ilp32.exp index 3a6dbd5253..96e9b78fcd 100644 --- a/gas/testsuite/gas/i386/ilp32/elf/ilp32.exp +++ b/gas/testsuite/gas/i386/ilp32/elf/ilp32.exp @@ -1,19 +1,15 @@ # # x86-64 ILP32 tests # -proc gas_64_check { } { +proc gas_x32_check { } { global NM global NMFLAGS set status [gas_host_run "$NM $NMFLAGS --help" ""] - return [regexp "targets:.*x86-64" [lindex $status 1]]; + return [regexp "targets:.*elf32-x86-64" [lindex $status 1]]; } -if [expr [istarget "i*86-*-solaris*"] || [istarget "x86_64-*-solaris*"]] then { - return -} - -if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then { +if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_x32_check] && [is_elf_format]] then { global ASFLAGS set old_ASFLAGS "$ASFLAGS" diff --git a/gas/testsuite/gas/i386/ilp32/ilp32.exp b/gas/testsuite/gas/i386/ilp32/ilp32.exp index 51970222c0..e2ec85c21f 100644 --- a/gas/testsuite/gas/i386/ilp32/ilp32.exp +++ b/gas/testsuite/gas/i386/ilp32/ilp32.exp @@ -1,19 +1,15 @@ # # x86-64 ILP32 tests # -proc gas_64_check { } { +proc gas_x32_check { } { global NM global NMFLAGS set status [gas_host_run "$NM $NMFLAGS --help" ""] - return [regexp "targets:.*x86-64" [lindex $status 1]]; + return [regexp "targets:.*elf32-x86-64" [lindex $status 1]]; } -if [expr [istarget "i*86-*-solaris*"] || [istarget "x86_64-*-solaris*"]] then { - return -} - -if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then { +if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_x32_check] && [is_elf_format]] then { global ASFLAGS set old_ASFLAGS "$ASFLAGS" diff --git a/gas/testsuite/gas/i386/ilp32/lns/ilp32.exp b/gas/testsuite/gas/i386/ilp32/lns/ilp32.exp index 3a6dbd5253..96e9b78fcd 100644 --- a/gas/testsuite/gas/i386/ilp32/lns/ilp32.exp +++ b/gas/testsuite/gas/i386/ilp32/lns/ilp32.exp @@ -1,19 +1,15 @@ # # x86-64 ILP32 tests # -proc gas_64_check { } { +proc gas_x32_check { } { global NM global NMFLAGS set status [gas_host_run "$NM $NMFLAGS --help" ""] - return [regexp "targets:.*x86-64" [lindex $status 1]]; + return [regexp "targets:.*elf32-x86-64" [lindex $status 1]]; } -if [expr [istarget "i*86-*-solaris*"] || [istarget "x86_64-*-solaris*"]] then { - return -} - -if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then { +if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_x32_check] && [is_elf_format]] then { global ASFLAGS set old_ASFLAGS "$ASFLAGS" |