* config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
authorJakub Jelinek <jakub@redhat.com>
Sun, 18 Jan 2004 23:47:03 +0000 (23:47 +0000)
committerJakub Jelinek <jakub@redhat.com>
Sun, 18 Jan 2004 23:47:03 +0000 (23:47 +0000)
precision operands.

gas/ChangeLog
gas/config/tc-sparc.c

index f03733462423b896eec468e8d83a1e0023ee22c9..cf68b2a2f9a172d840f21f4ab349d0438c55266d 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-19  Jakub Jelinek  <jakub@redhat.com>
+
+       * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
+       precision operands.
+
 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
 
        * config/tc-mips.c (append_insn): Properly detect variant frags
index c78bd27b40242ed8df4c1dd8d9d5e9886c5e09b8..ba6b4ed5689a0834cc91c4344c9cb22737a9bc1c 100644 (file)
@@ -1,6 +1,6 @@
 /* tc-sparc.c -- Assemble for the SPARC
    Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000, 2001, 2002, 2003
+   1999, 2000, 2001, 2002, 2003, 2004
    Free Software Foundation, Inc.
    This file is part of GAS, the GNU Assembler.
 
@@ -2146,6 +2146,12 @@ sparc_ip (str, pinsn)
                      {
                        if (SPARC_OPCODE_ARCH_V9_P (max_architecture))
                          {
+                           if (*args == 'e' || *args == 'f' || *args == 'g')
+                             {
+                               error_message
+                                 = _(": There are only 32 single precision f registers; [0-31]");
+                               goto error;
+                             }
                            v9_arg_p = 1;
                            mask -= 31; /* wrap high bit */
                          }