Use is_xcoff_format in gas testsuite
authorAlan Modra <amodra@gmail.com>
Tue, 7 Jul 2020 02:20:52 +0000 (11:50 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 7 Jul 2020 08:56:34 +0000 (18:26 +0930)
* testsuite/gas/all/gas.exp: Use is_xcoff_format.
* testsuite/gas/ppc/ppc.exp: Likewise.
* testsuite/gas/all/weakref1l.d: Likewise.

gas/ChangeLog
gas/testsuite/gas/all/gas.exp
gas/testsuite/gas/all/weakref1l.d
gas/testsuite/gas/ppc/ppc.exp

index 64c58e0ecd126a217b22a35eafcf25e0af80ca82..90dc1013c20cd14119651616af6f7d1db35bf91a 100644 (file)
@@ -1,3 +1,9 @@
+2020-07-07  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/gas/all/gas.exp: Use is_xcoff_format.
+       * testsuite/gas/ppc/ppc.exp: Likewise.
+       * testsuite/gas/all/weakref1l.d: Likewise.
+
 2020-07-07  Nick Clifton  <nickc@redhat.com>
 
        * testsuite/gas/arm/cde-missing-fp.l: Fix spelling mistake in
index c782955370ab225f2be4930884743689f39ee535..5496d0bf7a7e4094e37559c6ca99b6937859b6a8 100644 (file)
@@ -161,7 +161,9 @@ switch -glob $target_triplet {
        setup_xfail "m68hc1*-*-*" "m6811-*-*" "m6812-*-*" "rl78-*-*"
        setup_xfail "riscv*-*-*" "rx-*-*" "vax*-*-*" "xgate*-*-*" "z8k-*-*"
        # rs6000-aix disallows redefinition via .comm.
-       setup_xfail "*-*-aix*"
+       if [is_xcoff_format] {
+           setup_xfail *-*-*
+       }
        # These targets fail redef3 because section contents for the
        # word referencing the .comm sym is not zero and/or its reloc
        # has a non-zero addend.  Relaxing the test would hide real
index 4172e4c0c92acd8743bf6f945c71d6e468897408..3a42c00a8f42115517b0d531aa64dc3fb54b486f 100644 (file)
@@ -3,7 +3,7 @@
 #source: weakref1.s
 # aix drops local symbols
 # see weakref1.d for comments on the other notargets
-#notarget: *-*-aix* alpha*-*-osf* *-*-ecoff pdp11-*-aout
+#notarget: [is_xcoff_format] alpha*-*-osf* *-*-ecoff pdp11-*-aout
 
 # the rest of this file is generated with the following script:
 # # script begin
index 48c4ce62f31ff02e4196633b55975de01da79cff..4fb06618a3814be207c1123beedb22bfc88f71ce 100644 (file)
@@ -44,9 +44,7 @@ run_dump_test "altivec_and_spe"
 run_list_test "range" "-a32"
 run_dump_test "cell"
 
-if { [istarget "*-*-aix*"]
-     || [istarget "*-*-macos*"]
-     || [istarget "*-*-beos*"] } then {
+if { [is_xcoff_format] } then {
     run_dump_test "test1xcoff32"
     run_dump_test "test2xcoff32"
     run_dump_test "altivec_xcoff"
This page took 0.027457 seconds and 4 git commands to generate.