* configure.ac (mips*-*-bsd*, mips*-*-ultrix*, mips*-*-osf*)
[deliverable/binutils-gdb.git] / gas / testsuite / gas / all / gas.exp
index c7cc452c18589e220225a076ffafc1d7fa9851a5..35bcd9594e3247b3a9b963fc478745d852c9a16e 100644 (file)
@@ -1,3 +1,20 @@
+# Copyright 2012
+# Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  
+
 #
 # These tests should be valid on all targets.
 #
@@ -44,6 +61,7 @@ if { ![istarget hppa*-*-*]
      && ![istarget alpha*-*-*vms*]
      && ![istarget rx-*-*]
      && ![istarget mn10300-*-*]
+     && ![istarget msp430*-*-*]
      && ![istarget am3*-*-*] } then {
     gas_test_error "diff1.s" "" "difference of two undefined symbols"
 }
@@ -82,13 +100,13 @@ case $target_triplet in {
     default {
        # Some targets don't manage to resolve BFD_RELOC_8 for constants.
        setup_xfail "alpha*-*-*" "*c30*-*-*" "*c4x*-*-*" \
-           "d\[13\]0v*-*-*" "i860-*-*" "mips*-*-*" "msp430-*-*" \
-           "pdp11-*-*" "sparc*-*-*" "xtensa*-*-*"
+           "d\[13\]0v*-*-*" "i860-*-*" "mips*-*-*" \
+           "pdp11-*-*" "xtensa*-*-*"
        run_dump_test forward
     }
 }
 
-# aout relocs are often weird, so is mep and mips-ecoff. don't bother testing
+# aout relocs are often weird, so is mep. don't bother testing
 # som doesn't use a .text section
 # mmix doesn't like .L1:
 # ti addresses aren't octets.
@@ -99,7 +117,6 @@ if { ![is_aout_format] } {
        }
        { hppa*-*-hpux* } { }
        { mep-*-* } { }
-       { mips*-*-ecoff* } { }
        { mmix-*-* } { }
        { tic30*-*-* } { }
        { tic4x*-*-* } { }
@@ -122,6 +139,7 @@ case $target_triplet in {
     { mips*-*-* } { }
     { mn10200-*-* } { }
     { mn10300-*-* } { }
+    { msp430*-*-* } { }
     { pdp11-*-* } { }
     { tic30*-*-* } { }
     { tic4x*-*-* } { }
@@ -130,20 +148,24 @@ case $target_triplet in {
     { z80-*-* } { }
     default {
        run_dump_test redef
-       # The next two tests can fail if the target does not convert fixups
-       # against ordinary symbols into relocations against section symbols.
-       # This is usually revealed by the error message:
-       #  symbol `sym' required but not present
-       setup_xfail "*arm*-*-*aout*" "*arm*-*-*coff" \
-           "*arm*-*-pe" "m68hc*-*-*" \
-           "rx-*-*" "vax*-*-*" "z8k-*-*"
+       # These targets fail redef2 because they disallow redefined
+       # symbols on relocs.
+       setup_xfail "m68hc1*-*-*" "m6811-*-*" "m6812-*-*"
+       setup_xfail "rx-*-*" "vax*-*-*" "xgate*-*-*" "z8k-*-*"
        run_dump_test redef2
-       setup_xfail "*-*-aix*" "bfin-*-*" "hppa*-*-hpux*" \
-           "i\[3-7\]86-*-*coff" "i\[3-7\]86-*-*pe" "i\[3-7\]86-*-go32*" \
-           "i\[3-7\]86-*-cygwin*" "i\[3-7\]86-*-mingw*" \
-           "x86_64-*-*coff" "x86_64-*-*pe" \
-           "x86_64-*-cygwin*" "x86_64-*-mingw*" \
-           "m68hc*-*-*" "or32-*-*" "rx-*-*" "vax*-*-*" "z8k-*-*"
+       setup_xfail "m68hc1*-*-*" "m6811-*-*" "m6812-*-*"
+       setup_xfail "rx-*-*" "vax*-*-*" "xgate*-*-*" "z8k-*-*"
+       # rs6000-aix disallows redefinition via .comm.
+       setup_xfail "*-*-aix*"
+       # SOM uses a different syntax for .comm
+       setup_xfail "hppa*-*-hpux*"
+       # 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
+       # failures such as or32-elf.
+       setup_xfail "bfin-*-*" "i\[3-7\]86-*-*coff" \
+           "i\[3-7\]86-*-*pe" "i\[3-7\]86-*-go32*" \
+           "i\[3-7\]86-*-cygwin*" "i\[3-7\]86-*-mingw*" "x86_64-*-mingw*"
        run_dump_test redef3
        gas_test_error "redef4.s" "" ".set for symbol already used as label"
        gas_test_error "redef5.s" "" ".set for symbol already defined through .comm"
@@ -245,8 +267,8 @@ if { ![istarget hppa*-*-*] &&
      ![istarget *c54x*-*-*] } then {
     # the vax fails because VMS can apparently actually handle this
     # case in relocs, so gas doesn't handle it itself.
-    # mn10300 emits two relocs to handle the difference of two symbols.
-    setup_xfail "mn10300*-*-*" "vax*-*-vms*"
+    # msp430 and mn10300 emit two relocs to handle the difference of two symbols.
+    setup_xfail "mn10300*-*-*" "msp430*-*-*" "vax*-*-vms*"
     do_930509a
 }
 
@@ -348,6 +370,14 @@ if { ![istarget "bfin-*-*"] } then {
     run_dump_test assign
 }
 run_dump_test sleb128
+run_dump_test sleb128-2
+run_dump_test sleb128-3
+run_dump_test sleb128-4
+run_dump_test sleb128-5
+# .byte is not 8 bits on either tic4x or tic54x
+if { ![istarget "tic4x*-*-*"] && ![istarget "tic54x*-*-*"] } {
+    run_dump_test sleb128-7
+}
 
 # .byte is 32 bits on tic4x, and .p2align isn't supported on tic54x
 # .space is different on hppa*-hpux.
This page took 0.026951 seconds and 4 git commands to generate.