aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-01-18 23:47:03 +0000
committerJakub Jelinek <jakub@redhat.com>2004-01-18 23:47:03 +0000
commit26664553599f5c3a570426409b17fbeb5b2bb626 (patch)
treecd3ca094f6b3aa3892b84abe017c25ff81170029
parentff24f1246e056003f2040241bf6b90f146a904b9 (diff)
downloadgdb-26664553599f5c3a570426409b17fbeb5b2bb626.zip
gdb-26664553599f5c3a570426409b17fbeb5b2bb626.tar.gz
gdb-26664553599f5c3a570426409b17fbeb5b2bb626.tar.bz2
* config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
precision operands.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-sparc.c8
2 files changed, 12 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index f037334..cf68b2a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c
index c78bd27..ba6b4ed 100644
--- a/gas/config/tc-sparc.c
+++ b/gas/config/tc-sparc.c
@@ -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 */
}