aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2020-07-20 08:54:37 +0200
committerJan Beulich <jbeulich@suse.com>2020-07-20 08:54:37 +0200
commit693bec1ed63fcd4dc00ce13a702a256955f8cc6f (patch)
treea076effed40e7aee0d11de20456c8c91f3c147aa /gas
parent49bcc139299b5cce49fd39179c48c6a111bd6440 (diff)
downloadgdb-693bec1ed63fcd4dc00ce13a702a256955f8cc6f.zip
gdb-693bec1ed63fcd4dc00ce13a702a256955f8cc6f.tar.gz
gdb-693bec1ed63fcd4dc00ce13a702a256955f8cc6f.tar.bz2
ix86: enable more ELF tests for VxWorks
The tree-wide is_elf_format predicate excludes VxWorks, but the majority of ELF specific tests is quite fine for this target.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/testsuite/gas/i386/i386.exp23
2 files changed, 19 insertions, 9 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index e07e4ee..74bc5a0 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2020-07-20 Jan Beulich <jbeulich@suse.com>
+
+ * testsuite/gas/i386/i386.exp: Include *-*-vxworks alongside
+ is_elf_format as applicable; merely exclude iamcu tests.
+
2020-07-19 H.J. Lu <hongjiu.lu@intel.com>
PR gas/26263
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index 8544177..4fd5a77 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -550,7 +550,10 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
# These tests require support for 8 and 16 bit relocs,
# so we only run them for ELF and COFF targets.
- if {[is_elf_format] || [istarget "*-*-coff*"]} then {
+ if {[is_elf_format]
+ || [istarget "*-*-vxworks*"]
+ || [istarget "*-*-coff*"]
+ } then {
run_dump_test "reloc"
run_dump_test "jump16"
run_list_test "white" "-al --listing-lhs-width=3"
@@ -566,7 +569,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
}
# ELF specific tests
- if [is_elf_format] then {
+ if {[is_elf_format] || [istarget "*-*-vxworks*"]} then {
# PIC is only supported on ELF targets.
run_dump_test "intelpic"
@@ -641,12 +644,14 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
run_list_test "code64-inval" "-I${srcdir}/$subdir -al"
}
- run_dump_test "iamcu-1"
- run_dump_test "iamcu-2"
- run_dump_test "iamcu-3"
- run_dump_test "iamcu-4"
- run_dump_test "iamcu-5"
- run_list_test "iamcu-inval-1" "-march=iamcu -al"
+ if {![istarget "*-*-vxworks*"]} then {
+ run_dump_test "iamcu-1"
+ run_dump_test "iamcu-2"
+ run_dump_test "iamcu-3"
+ run_dump_test "iamcu-4"
+ run_dump_test "iamcu-5"
+ run_list_test "iamcu-inval-1" "-march=iamcu -al"
+ }
}
# This is a PE specific test.
@@ -676,7 +681,7 @@ if [expr [istarget "i*86-*-*"] || [istarget "x86_64-*-*"]] then {
run_dump_test pr19498
run_list_test "nop-bad-1" ""
run_list_test "unspec" ""
- if [is_elf_format] then {
+ if {[is_elf_format] || [istarget "*-*-vxworks*"]} then {
run_list_test_stdin "list-1" "-al"
run_list_test_stdin "list-2" "-al"
run_list_test_stdin "list-3" "-al"