+2004-11-12 Nick Clifton <nickc@redhat.com>
+
+ * config/tc-mn10300.c (md_relax_table): Fix off by one negative
+ offsets for conditional branches.
+
2004-11-11 Bob Wilson <bob.wilson@acm.org>
* config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
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 */
/* fbCC relaxing */
{0x7f, -0x80, 3, 14},
- {0x7fff, -0x8000, 6, 15},
+ {0x7fff, -0x8000 + 1, 6, 15},
{0x7fffffff, -0x80000000, 8, 0},
};
+2004-11-12 Nick Clifton <nickc@redhat.com>
+
+ * gas/mn10300/basic.exp: Add relax test.
+ * gas/mn10300/relax.s: New test.
+ * gas/mn10300/relax.d: Expected results. Make sure that the
+ correct size of instruction has been selected.
+
2004-11-11 Bob Wilson <bob.wilson@acm.org>
* gas/xtensa/short_branch_offset.s: New.
--- /dev/null
+#objdump: -r
+#name: Relaxation of conditional branches
+
+.*: +file format.*elf32-[am33lin|mn10300].*
+
+RELOCATION RECORDS FOR \[.rlcb\]:
+OFFSET TYPE VALUE
+0+8003 R_MN10300_PCREL8 .L0._0\+0x00000001
+0+8005 R_MN10300_PCREL32 .L2\+0x00000001
+
+
+RELOCATION RECORDS FOR \[.rsflb\]:
+OFFSET TYPE VALUE
+0+8004 R_MN10300_PCREL8 .L0._1\+0x00000002
+0+8006 R_MN10300_PCREL32 .L4\+0x00000001
+
+