summaryrefslogtreecommitdiff
path: root/gas/config/tc-h8300.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2008-07-21 17:50:54 +0000
committerDJ Delorie <dj@delorie.com>2008-07-21 17:50:54 +0000
commit150d0ed4aa43c0cdede771cb800bf289e74a57fb (patch)
treefa88e09e1c98f67f294a3d8c661673a95d1ac2e4 /gas/config/tc-h8300.c
parentba30183ca86838c431fe297407dbd731adff6c8b (diff)
downloadbinutils-redhat-150d0ed4aa43c0cdede771cb800bf289e74a57fb.tar.gz
* config/tc-h8300.c (fix_operand_size): Use the default size
specified by the .lbranch/.sbranch pseudos.
Diffstat (limited to 'gas/config/tc-h8300.c')
-rw-r--r--gas/config/tc-h8300.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c
index d0a7554c03..95864f3bf4 100644
--- a/gas/config/tc-h8300.c
+++ b/gas/config/tc-h8300.c
@@ -1815,7 +1815,12 @@ fix_operand_size (struct h8_op *operand, int size)
/* This condition is long standing, though somewhat suspect. */
if (operand->exp.X_add_number > -128
&& operand->exp.X_add_number < 127)
- operand->mode |= L_8;
+ {
+ if (operand->exp.X_add_symbol != NULL)
+ operand->mode |= bsize;
+ else
+ operand->mode |= L_8;
+ }
else
operand->mode |= L_16;
break;