diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2002-01-24 18:22:06 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2002-01-24 18:22:06 +0000 |
commit | 166e23f998961a9a7106717406a984c23e39281a (patch) | |
tree | ce2f003d6a130cb505ef41d2b5aacd4a1efe11f9 /gas/config/tc-h8300.c | |
parent | 391154e9f7452915c95b0c4acf99463f2330dfef (diff) | |
download | gdb-166e23f998961a9a7106717406a984c23e39281a.zip gdb-166e23f998961a9a7106717406a984c23e39281a.tar.gz gdb-166e23f998961a9a7106717406a984c23e39281a.tar.bz2 |
* 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.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c index b1f6ecb..940e6d6 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, |