From 0e68e1a7fdad735675e7f08e266d2865143e4807 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 12 Oct 2007 16:11:02 +0000 Subject: [PATCH] * elf32-cr16.c (elf32_cr16_relax_section): Fix condition check typo. * config/tc-cr16.c: Update the md_relax_table for 1 word b instruction range information. --- bfd/ChangeLog | 4 ++++ bfd/elf32-cr16.c | 2 +- gas/ChangeLog | 5 +++++ gas/config/tc-cr16.c | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 89cbac02b..2ed0e4aa0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2007-10-12 M R Swami Reddy + + * elf32-cr16.c (elf32_cr16_relax_section): Fix condition check typo. + 2007-10-12 Daniel Jacobowitz * elfxx-mips.c (mips_elf_sort_hash_table_f): Handle forced diff --git a/bfd/elf32-cr16.c b/bfd/elf32-cr16.c index d0f7fd19b..76616b9eb 100644 --- a/bfd/elf32-cr16.c +++ b/bfd/elf32-cr16.c @@ -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) diff --git a/gas/ChangeLog b/gas/ChangeLog index 688bc942b..fa5393120 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2007-10-12 M R Swami Reddy + + * config/tc-cr16.c: Update the md_relax_table for 1 word b + instruction range information. + 2007-10-12 Daniel Jacobowitz * doc/as.texinfo (Object Attributes): New chapter. diff --git a/gas/config/tc-cr16.c b/gas/config/tc-cr16.c index 31c621574..cb0947383 100644 --- a/gas/config/tc-cr16.c +++ b/gas/config/tc-cr16.c @@ -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 */ }; -- 2.11.4.GIT