* elf32-cr16.c (elf32_cr16_relax_section): Fix condition check typo.

* config/tc-cr16.c: Update the md_relax_table for 1 word b<cc> instruction range information.
This commit is contained in:
Nick Clifton 2007-10-12 16:11:02 +00:00
parent 720199d64e
commit e9deb29d4f
4 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2007-10-12 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
* elf32-cr16.c (elf32_cr16_relax_section): Fix condition check typo.
2007-10-12 Daniel Jacobowitz <dan@codesourcery.com>
* elfxx-mips.c (mips_elf_sort_hash_table_f): Handle forced

View File

@ -1337,7 +1337,7 @@ elf32_cr16_relax_section (bfd *abfd, asection *sec,
/* Verify it's a arithmetic ADDD or MOVD instruction.
For ADDD and MOVD only, convert to IMM32 -> IMM20. */
if (((code & 0xfff0) != 0x0070) || ((code & 0xfff0) != 0x0020))
if (((code & 0xfff0) == 0x0070) || ((code & 0xfff0) == 0x0020))
is_add_mov = 1;
if (is_add_mov)

View File

@ -1,3 +1,8 @@
2007-10-12 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
* config/tc-cr16.c: Update the md_relax_table for 1 word b<cc>
instruction range information.
2007-10-12 Daniel Jacobowitz <dan@codesourcery.com>
* doc/as.texinfo (Object Attributes): New chapter.

View File

@ -255,7 +255,7 @@ const pseudo_typeS md_pseudo_table[] =
const relax_typeS md_relax_table[] =
{
/* bCC */
{0xfa, -0x100, 2, 1}, /* 8 */
{0x7f, -0x80, 2, 1}, /* 8 */
{0xfffe, -0x10000, 4, 2}, /* 16 */
{0xfffffe, -0x1000000, 6, 0}, /* 24 */
};