summaryrefslogtreecommitdiff
path: root/gas/config/tc-h8300.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2002-01-24 18:22:06 +0000
committerKazu Hirata <kazu@codesourcery.com>2002-01-24 18:22:06 +0000
commit5d027c50fdebe472879249dc21b77af1a23e8f5e (patch)
tree1985f807261bc4364e0355408975cae390238f46 /gas/config/tc-h8300.c
parent0f0f60816cda2915b8ef0676ac753e690820f87d (diff)
downloadbinutils-redhat-5d027c50fdebe472879249dc21b77af1a23e8f5e.tar.gz
* config/tc-h8300.c (check_operand): Don't print a warning
when a valid 24-bit address is given to a 16-bit address operand.
Diffstat (limited to 'gas/config/tc-h8300.c')
-rw-r--r--gas/config/tc-h8300.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c
index b1f6ecbc2c..940e6d67f5 100644
--- a/gas/config/tc-h8300.c
+++ b/gas/config/tc-h8300.c
@@ -813,6 +813,14 @@ check_operand (operand, width, string)
fit a 16 bit address truncated into an 8 bit address
of something like bset. */
}
+ else if (strcmp (string, "@") == 0
+ && width == 0xffff
+ && (operand->exp.X_add_number & 0xff8000) == 0xff8000)
+ {
+ /* Just ignore this one - which happens when trying to
+ fit a 24 bit address truncated into a 16 bit address
+ of something like mov.w. */
+ }
else
{
as_warn (_("operand %s0x%lx out of range."), string,