From e9deb29d4fbb19de560012f1ddcd2d00f9444966 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 12 Oct 2007 16:11:02 +0000 Subject: * 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/elf32-cr16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/elf32-cr16.c') diff --git a/bfd/elf32-cr16.c b/bfd/elf32-cr16.c index d0f7fd1..76616b9 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) -- cgit v1.1