aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog13
-rw-r--r--gas/testsuite/gas/sparc/save-args.d2
-rw-r--r--gas/testsuite/gas/sparc/sparc.exp89
3 files changed, 56 insertions, 48 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 0273942..9ffb962 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,16 @@
+2016-07-27 Jose E. Marchesi <jose.marchesi@oracle.com>
+
+ * testsuite/gas/sparc/sparc.exp: Use is_elf_format to discriminate
+ ELF targets.
+ Run natural, natural-32, pr4587, ticc-imm-reg, v8-movwr-imm,
+ pause, save-args, cbcond, cfr, crypto edge, flush, hpcvis3, ima,
+ ld_st_fsr, ldtw_sttw, ldd_std, ldx_stx, ldx_efsr, mwait, mcdper,
+ sparc5vis4, xcrypto, v9branch1 and imm-plus-rreg only in ELF
+ targets.
+ (sparc_elf_setup): Delete.
+ * testsuite/gas/sparc/save-args.d: Fix a copy-paste typo in the
+ test's #name entry.
+
2016-07-27 Maciej W. Rozycki <macro@imgtec.com>
* config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Add `nods' flag.
diff --git a/gas/testsuite/gas/sparc/save-args.d b/gas/testsuite/gas/sparc/save-args.d
index 19e6d72..af21100 100644
--- a/gas/testsuite/gas/sparc/save-args.d
+++ b/gas/testsuite/gas/sparc/save-args.d
@@ -1,6 +1,6 @@
#as: -Av8
#objdump: -dr
-#name: software traps
+#name: save args
.*: +file format .*
diff --git a/gas/testsuite/gas/sparc/sparc.exp b/gas/testsuite/gas/sparc/sparc.exp
index f0a129d..8cb0904 100644
--- a/gas/testsuite/gas/sparc/sparc.exp
+++ b/gas/testsuite/gas/sparc/sparc.exp
@@ -31,25 +31,47 @@ proc gas_64_check { } {
return [regexp "elf64\[_-\]sparc" [lindex $status 1]]
}
-proc sparc_elf_setup { } {
- setup_xfail "sparc*-*-*aout*" "sparc*-*-sunos4*"
- setup_xfail "sparc*-fujitsu-none" "sparc*-*-*n*bsd*"
- setup_xfail "sparc*-*-coff" "sparc*-*-lynxos*"
- clear_xfail "sparc64*-*-*n*bsd*"
- clear_xfail "sparc*-*-netbsdelf*"
-}
-
if [istarget sparc*-*-*] {
- run_dump_test "synth"
- # The next four tests are ELF only.
- sparc_elf_setup
- run_dump_test "unalign"
- sparc_elf_setup
- run_dump_test "pcrel"
- sparc_elf_setup
- run_dump_test "plt"
- sparc_elf_setup
- run_dump_test "gotop32"
+
+ if [is_elf_format] {
+ # The next five tests are ELF only.
+ run_dump_test "unalign"
+ run_dump_test "pcrel"
+ run_dump_test "plt"
+ run_dump_test "gotop32"
+ run_dump_test "pc2210"
+ # The features tested in the tests below are not ELF-specific.
+ # However, these features are not present in practice in COFF
+ # and a.out targets. Running them only in ELF targets allows
+ # us to don't have to replicate pattern test files as that
+ # would bring no practical advantage.
+ run_dump_test "natural"
+ run_dump_test "natural-32"
+ run_list_test "pr4587" ""
+ run_dump_test "ticc-imm-reg"
+ run_dump_test "v8-movwr-imm"
+ run_dump_test "pause"
+ run_dump_test "save-args"
+ run_dump_test "cbcond"
+ run_dump_test "cfr"
+ run_dump_test "crypto"
+ run_dump_test "edge"
+ run_dump_test "flush"
+ run_dump_test "hpcvis3"
+ run_dump_test "ima"
+ run_dump_test "ld_st_fsr"
+ run_dump_test "ldtw_sttw"
+ run_dump_test "ldd_std"
+ run_dump_test "ldx_stx"
+ run_dump_test "ldx_efsr"
+ run_dump_test "mwait"
+ run_dump_test "mcdper"
+ run_dump_test "sparc5vis4"
+ run_dump_test "xcrypto"
+ run_dump_test "v9branch1"
+ run_dump_test "imm-plus-rreg"
+ }
+
if [gas_64_check] {
run_dump_test "asi"
run_dump_test "membar"
@@ -68,39 +90,12 @@ if [istarget sparc*-*-*] {
run_dump_test "plt64"
run_dump_test "gotop64"
}
- run_dump_test "imm-plus-rreg"
- run_dump_test "ticc-imm-reg"
- run_dump_test "v8-movwr-imm"
- run_dump_test "save-args"
- run_dump_test "v9branch1"
+
+ run_dump_test "synth"
run_dump_test "v9branch2"
run_dump_test "v9branch3"
run_dump_test "v9branch4"
run_dump_test "v9branch5"
- run_dump_test "pc2210"
- run_dump_test "hpcvis3"
- run_dump_test "ima"
- run_dump_test "crypto"
- run_dump_test "xcrypto"
- run_dump_test "cbcond"
- run_dump_test "pause"
- run_dump_test "cfr"
- run_dump_test "ldtw_sttw"
- run_dump_test "ldtxa"
- run_dump_test "ldd_std"
- run_dump_test "ldx_stx"
- run_dump_test "ldx_efsr"
- run_dump_test "ld_st_fsr"
- run_dump_test "edge"
- run_dump_test "flush"
- run_dump_test "mwait"
- run_dump_test "mcdper"
- run_dump_test "sparc5vis4"
- run_dump_test "natural"
- run_dump_test "natural-32"
-
- run_list_test "pr4587" ""
-
run_dump_test "pr19910-1"
run_list_test "pr19910-2"
}