aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2023-05-26 10:13:53 +0200
committerJan Beulich <jbeulich@suse.com>2023-05-26 10:13:53 +0200
commita7aee0b5770d7c1c41ec38128729b9e6fd077ae4 (patch)
tree24bf87b3266958002692a99d6108a55a0013a580
parentfd0caa872cdfafad1b4340eb724c09c190065e51 (diff)
downloadgdb-a7aee0b5770d7c1c41ec38128729b9e6fd077ae4.zip
gdb-a7aee0b5770d7c1c41ec38128729b9e6fd077ae4.tar.gz
gdb-a7aee0b5770d7c1c41ec38128729b9e6fd077ae4.tar.bz2
x86-64: conditionalize tests using --32
Using this option doesn't really work when no support for any 32-bit target was configured in (as is the case for at least cloudabi and rdos).
-rw-r--r--gas/testsuite/gas/i386/x86-64.exp14
1 files changed, 12 insertions, 2 deletions
diff --git a/gas/testsuite/gas/i386/x86-64.exp b/gas/testsuite/gas/i386/x86-64.exp
index f412b17..48ec9c2 100644
--- a/gas/testsuite/gas/i386/x86-64.exp
+++ b/gas/testsuite/gas/i386/x86-64.exp
@@ -33,6 +33,14 @@ if { ![gas_64_check] } then {
return
}
+proc gas_32_check { } {
+ global NM
+ global NMFLAGS
+
+ set status [gas_host_run "$NM $NMFLAGS --help" ""]
+ return [regexp "targets:.*i386" [lindex $status 1]];
+}
+
global ASFLAGS
set old_ASFLAGS "$ASFLAGS"
set ASFLAGS "$ASFLAGS --64 --defsym x86_64=1 --strip-local-absolute"
@@ -582,8 +590,10 @@ if [is_elf_format] then {
run_dump_test "mixed-mode-reloc64"
run_dump_test "rela"
run_dump_test "x86-64-ifunc"
- run_dump_test "x86-64-opcode-inval"
- run_dump_test "x86-64-opcode-inval-intel"
+ if { [gas_32_check] } then {
+ run_dump_test "x86-64-opcode-inval"
+ run_dump_test "x86-64-opcode-inval-intel"
+ }
run_dump_test "intel-got64"
run_dump_test "x86-64-localpic"
run_dump_test "debug1"