diff options
author | Jeff Law <law@redhat.com> | 1996-10-29 19:32:56 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1996-10-29 19:32:56 +0000 |
commit | a334533c1be607d4deea642e97f98f2a2d7a37d1 (patch) | |
tree | d430e29ccec577a63a79965c7b8ee98bff71f06c /gas/config/tc-v850.h | |
parent | 244558e3547f0ac1ce858df1f35fefe2cfc6c977 (diff) | |
download | gdb-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.h | 7 |
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 + |