summaryrefslogtreecommitdiff
path: root/bfd/elf-m10300.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-11-08 15:07:17 +0000
committerNick Clifton <nickc@redhat.com>2011-11-08 15:07:17 +0000
commitf77c4ce58e5f6bbad55237dbdc2f79bb3732c983 (patch)
tree4c1e7bdede078bcc2c79da9d49a509064f1b11a0 /bfd/elf-m10300.c
parent8e365cb13d9b228ad37b469816f8ea97e230795a (diff)
downloadbinutils-redhat-f77c4ce58e5f6bbad55237dbdc2f79bb3732c983.tar.gz
* elf-m10300.c (mn10300_elf_relax_section): Fix check for an
immediate move into an address register.
Diffstat (limited to 'bfd/elf-m10300.c')
-rw-r--r--bfd/elf-m10300.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c
index c2dc5835ea..fa33b4a2fb 100644
--- a/bfd/elf-m10300.c
+++ b/bfd/elf-m10300.c
@@ -3604,8 +3604,8 @@ mn10300_elf_relax_section (bfd *abfd,
&& (value & 0x8000))
continue;
- /* mov imm16, an zero-extends the immediate. */
- if (code == 0xdc
+ /* "mov imm16, an" zero-extends the immediate. */
+ if ((code & 0xfc) == 0xdc
&& (long) value < 0)
continue;