aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mn10300.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-11-12 12:27:05 +0000
committerNick Clifton <nickc@redhat.com>2004-11-12 12:27:05 +0000
commit30e857fcdb77010a0a57bc86d2855e78c1842918 (patch)
tree992db7b4234c3ce3b94aacd4f789a6822c5ff44a /gas/config/tc-mn10300.c
parent9b098f24af69b10358b2254bd1a71f070d3e2514 (diff)
downloadfsf-binutils-gdb-30e857fcdb77010a0a57bc86d2855e78c1842918.zip
fsf-binutils-gdb-30e857fcdb77010a0a57bc86d2855e78c1842918.tar.gz
fsf-binutils-gdb-30e857fcdb77010a0a57bc86d2855e78c1842918.tar.bz2
Fix off by one negative offsets for conditional branches.
Add a test of this fix.
Diffstat (limited to 'gas/config/tc-mn10300.c')
-rw-r--r--gas/config/tc-mn10300.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c
index ea5b533..e2fcf75 100644
--- a/gas/config/tc-mn10300.c
+++ b/gas/config/tc-mn10300.c
@@ -57,12 +57,12 @@ const char FLT_CHARS[] = "dD";
const relax_typeS md_relax_table[] = {
/* bCC relaxing */
{0x7f, -0x80, 2, 1},
- {0x7fff, -0x8000, 5, 2},
+ {0x7fff, -0x8000 + 1, 5, 2},
{0x7fffffff, -0x80000000, 7, 0},
/* bCC relaxing (uncommon cases) */
{0x7f, -0x80, 3, 4},
- {0x7fff, -0x8000, 6, 5},
+ {0x7fff, -0x8000 + 1, 6, 5},
{0x7fffffff, -0x80000000, 8, 0},
/* call relaxing */
@@ -80,7 +80,7 @@ const relax_typeS md_relax_table[] = {
/* fbCC relaxing */
{0x7f, -0x80, 3, 14},
- {0x7fff, -0x8000, 6, 15},
+ {0x7fff, -0x8000 + 1, 6, 15},
{0x7fffffff, -0x80000000, 8, 0},
};