aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-08-23 20:58:13 +0000
committerJeff Law <law@redhat.com>1996-08-23 20:58:13 +0000
commit88b47a852118f1b03a6abb2f5ea1f345765a47de (patch)
tree22bdf4cb6e37551375f26abd4c7ece264900215a
parentd3edb57f12db5e9ac26abaf8267d169f8d49e402 (diff)
downloadgdb-88b47a852118f1b03a6abb2f5ea1f345765a47de.zip
gdb-88b47a852118f1b03a6abb2f5ea1f345765a47de.tar.gz
gdb-88b47a852118f1b03a6abb2f5ea1f345765a47de.tar.bz2
* config/tc-v850.c (md_assemble): Rough cut at demanding
"ep" or "r30" in sst and sld instructions. (md_apply_fix3): Don't abort. Just warn that we don't have relocs yet.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-v850.c24
2 files changed, 29 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 1622897..75329b2 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -7,6 +7,11 @@ end-sanitize-d10v
start-sanitize-v850
Fri Aug 23 10:41:32 1996 Jeffrey A Law (law@cygnus.com)
+ * config/tc-v850.c (md_assemble): Rough cut at demanding
+ "ep" or "r30" in sst and sld instructions.
+ (md_apply_fix3): Don't abort. Just warn that we don't
+ have relocs yet.
+
* config/tc-v850.c (CC_NAME_CNT): Define.
(cc_name): New function.
(md_assemble): Handle V850_OPERAND_CC correctly.
diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c
index 79bd779..f738a11 100644
--- a/gas/config/tc-v850.c
+++ b/gas/config/tc-v850.c
@@ -557,6 +557,27 @@ md_assemble (str)
goto error;
}
}
+ else if ((operand->flags & V850_OPERAND_EP) != 0)
+ {
+ char *start = input_line_pointer;
+ char c = get_symbol_end ();
+ if (strcmp (start, "ep") != 0
+ && strcmp (start, "r30") != 0)
+ {
+ /* Put things back the way we found them. */
+ *input_line_pointer = c;
+ input_line_pointer = start;
+ errmsg = "expected EP register";
+ goto error;
+ }
+ *input_line_pointer = c;
+ str = input_line_pointer;
+ input_line_pointer = hold;
+
+ while (*str == ' ' || *str == ',' || *str == '[' || *str == ']')
+ ++str;
+ continue;
+ }
else if ((operand->flags & V850_OPERAND_CC) != 0)
{
if (!cc_name(&ex))
@@ -756,6 +777,9 @@ md_apply_fix3 (fixp, valuep, seg)
valueT *valuep;
segT seg;
{
+ as_tsktsk ("relocations not supported yet.\n");
+ fixp->fx_done = 1;
+ return 1;
abort();
#if 0
valueT value;