summaryrefslogtreecommitdiff
path: root/bfd/elf32-cr16.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-10-12 16:11:02 +0000
committerNick Clifton <nickc@redhat.com>2007-10-12 16:11:02 +0000
commit0e68e1a7fdad735675e7f08e266d2865143e4807 (patch)
treed401c09b92fddbb3ba05aaeef56dcef6a740732b /bfd/elf32-cr16.c
parent6ab79df97af1b25448cf858510f7ada2d58f23a7 (diff)
downloadbinutils-redhat-0e68e1a7fdad735675e7f08e266d2865143e4807.tar.gz
* 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.
Diffstat (limited to 'bfd/elf32-cr16.c')
-rw-r--r--bfd/elf32-cr16.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-cr16.c b/bfd/elf32-cr16.c
index d0f7fd19bd..76616b9eba 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)