diff options
Diffstat (limited to 'bfd/elf32-cr16.c')
-rw-r--r-- | bfd/elf32-cr16.c | 2 |
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) |