aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-12-04 10:07:03 +0000
committerAlexandre Oliva <aoliva@redhat.com>2001-12-04 10:07:03 +0000
commit461448d8557871f8fc0f9b3118264656ea1b38a2 (patch)
treee620b5f0476fe7da67b6619aa1345e6185075d5f /gas
parent41852a32f7b4eb242d80ff3ab8efd70dc8bb95b1 (diff)
downloadgdb-461448d8557871f8fc0f9b3118264656ea1b38a2.zip
gdb-461448d8557871f8fc0f9b3118264656ea1b38a2.tar.gz
gdb-461448d8557871f8fc0f9b3118264656ea1b38a2.tar.bz2
* config/tc-d10v.c (find_opcode): Reject SP operand if
OPERAND_NOSP flag is present.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-d10v.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index e2e94d8..4f40f80 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-04 Alexandre Oliva <aoliva@redhat.com>
+
+ * config/tc-d10v.c (find_opcode): Reject SP operand if
+ OPERAND_NOSP flag is present.
+
2001-12-03 Eric Christopher <echristo@redhat.com>
* config/tc-mips.c (tc_gen_reloc): One missed BFD_RELOC_MIPS_GPREL.
diff --git a/gas/config/tc-d10v.c b/gas/config/tc-d10v.c
index 5074cdd..5238fb9 100644
--- a/gas/config/tc-d10v.c
+++ b/gas/config/tc-d10v.c
@@ -1468,6 +1468,9 @@ find_opcode (opcode, myops)
if ((d10v_operands[opcode->operands[i]].flags & OPERAND_EVEN) &&
(myops[i].X_add_number & 1))
as_fatal (_("Register number must be EVEN"));
+ if ((d10v_operands[opcode->operands[i]].flags & OPERAND_NOSP)
+ && (myops[i].X_add_number & OPERAND_SP))
+ as_bad (_("Unsupported use of sp"));
if (myops[i].X_op == O_register)
{
if (!(d10v_operands[opcode->operands[i]].flags & OPERAND_REG))