aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-v850.h
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-10-29 19:32:56 +0000
committerJeff Law <law@redhat.com>1996-10-29 19:32:56 +0000
commita334533c1be607d4deea642e97f98f2a2d7a37d1 (patch)
treed430e29ccec577a63a79965c7b8ee98bff71f06c /gas/config/tc-v850.h
parent244558e3547f0ac1ce858df1f35fefe2cfc6c977 (diff)
downloadgdb-a334533c1be607d4deea642e97f98f2a2d7a37d1.zip
gdb-a334533c1be607d4deea642e97f98f2a2d7a37d1.tar.gz
gdb-a334533c1be607d4deea642e97f98f2a2d7a37d1.tar.bz2
* config/tc-v850.h (TC_GENERIC_RELAX_TABLE): Define.
* config/tc-v850.c: Fix some indention problems. (md_relax_table): Define for D9->D99 branch displacement relaxing. (md_convert_frag): Do something useful instead of aborting. (md_estimate_size_before_relax): Likewise. (md_assemble): Note if the matching instruction has a relaxable operand. If it does, allocate frag with frag_var and don't do any fixups. So we can do 9bit displacement to 22bit displacement relaxing.
Diffstat (limited to 'gas/config/tc-v850.h')
-rw-r--r--gas/config/tc-v850.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gas/config/tc-v850.h b/gas/config/tc-v850.h
index 6a61ac1..d76215b 100644
--- a/gas/config/tc-v850.h
+++ b/gas/config/tc-v850.h
@@ -52,3 +52,10 @@
#define tc_fix_adjustable(FIX) \
(!(FIX)->fx_pcrel && (FIX)->fx_r_type != BFD_RELOC_V850_TDA_OFFSET)
+/* We need to handle lo(), hi(), etc etc in .hword, .word, etc
+ directives, so we have to parse "cons" expressions ourselves. */
+#define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) parse_cons_expression_v850 (EXP)
+#define TC_CONS_FIX_NEW cons_fix_new_v850
+extern const struct relax_type md_relax_table[];
+#define TC_GENERIC_RELAX_TABLE md_relax_table
+