]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/testsuite/gas/hppa/parse/parse.exp
Update copyright years
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / hppa / parse / parse.exp
old mode 100755 (executable)
new mode 100644 (file)
index 80dcedb..dff0466
@@ -1,8 +1,8 @@
-# Copyright (C) 1993 Free Software Foundation, Inc.
+# Copyright (C) 1993-2014 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 2 of the License, or
+# 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,
 # 
 # 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., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  
 
 # Please email any bugs, comments, and/or additions to this file to:
-# DejaGnu@cygnus.com
+# dejagnu@gnu.org
 
 # Written by the Center for Software Science at the University of Utah
 # and by Cygnus Support.
@@ -119,8 +119,11 @@ proc do_valid_align_tests {} {
 }
 
 if [istarget hppa*-*-*] then {
-    # GAS-2.0 does not always parse ! as a line separator when it should.
-    setup_xfail hppa*-*-*
+    if { ![istarget hppa*-*-linux*] 
+        && ![istarget hppa*-*-netbsd*] } {
+       # GAS-2.0 does not always parse ! as a line separator when it should.
+       setup_xfail hppa*-*-*
+    }
     gas_test "linesepbug.s" "" "" "line separator bug"
 
     # Make sure GAS accepts syntax for accessing static data.
@@ -137,11 +140,10 @@ if [istarget hppa*-*-*] then {
     gas_test_error "undefbug.s" "" "Check for error when using undefined symbol"
 
     # This file has code and assembler directives before switching into any
-    # space/subspace pair.  This should report an error.
-    if ![istarget hppa*-*-*elf*] then {
-       setup_xfail hppa*-*-*
-    }
-    gas_test_error "nosubspace.s" "" "Check for error if no subspace directive"
+    # space/subspace pair.  This should report an error for SOM (it is not
+    # an error for ELF.  The file also has mismatched entry/exit and
+    # proc/procend pairs which are errors for both SOM and ELF.
+    gas_test_error "nosubspace.s" "" "Check for error(s) in input file "
 
     # This file should return errors for both the ENTRY_GR and ENTRY_FR
     # directives (they are out-of-range)
@@ -176,8 +178,6 @@ if [istarget hppa*-*-*] then {
     # Now check to make sure an invalid argument is flagged as an error.
     gas_test_error "align2.s" "" "Check for error on bogus argument to .align"
 
-    # GAS can't handle upper bound for a PA .block[z] directive
-    setup_xfail hppa*-*-*
     gas_test "block1.s" "" "" "Check min/max values for .block"
 
     # Now check for an invalid argument
@@ -189,7 +189,7 @@ if [istarget hppa*-*-*] then {
 
     # Bad things happen in the PA ELF backend (others too?) if a non-default
     # section is created...
-    setup_xfail hppa*-*-*elf*
+    setup_xfail "hppa*-*-*elf*" "hppa*-*-linux*" "hppa*64*-*-*"
     gas_test "ssbug.s" "" "" "Check for acceptance of non-default subspaces"
 
     # To be compatable with certain "features" of the HP compiler
@@ -201,6 +201,7 @@ if [istarget hppa*-*-*] then {
     gas_test "stdreg.s" "" "" "Test standard predefined registers"
 
     # Make sure GAS will accept a label without a colon.
+    setup_xfail "hppa*-*-linux*"
     gas_test "labelbug.s" "" "" "Test label without colon"
 
     # Make sure we grok # line directives.
@@ -208,12 +209,19 @@ if [istarget hppa*-*-*] then {
 
     # Make sure we give errors if a floating point format is specified
     # for an xmpyu instruction (integer multiple)
-    gas_test_error "xmpyubug.s" "" "Check for error on bogus argument to .block"
+    gas_test_error "xmpyubug.s" "" "Check for error on bogus argument to xmpyu"
 
     # Make sure gas handles various kinds of .reg pseudo-ops
     gas_test "regpopbug.s" "" "" "Test for bugs in .reg pseudo-op"
 
     # Check some bugs that have appeared in parsing .callinfo directives
     gas_test "callinfobug.s" "" "" "Test for bugs in .callinfo directive"
+
+    # Check for bogus registers in single precision fmpyadd/fmpysub
+    # instructions
+    gas_test_error "badfmpyadd.s" "" "Check for error on bad fmpyadd insn"
+
+    # Make sure we grok spaces in directives.
+    gas_test "space.s" "" "" "Test acceptance of spaces in directives"
 }