* elf-m10300.c (mn10300_elf_relax_section): Fix check for an
authorNick Clifton <nickc@redhat.com>
Tue, 8 Nov 2011 15:07:17 +0000 (15:07 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 8 Nov 2011 15:07:17 +0000 (15:07 +0000)
immediate move into an address register.

bfd/ChangeLog
bfd/elf-m10300.c

index 14db95fe397c6a7766564e3de7533d5700cd1f60..6f7fdac945858183857d3fe3236c9884d655496d 100644 (file)
@@ -1,3 +1,8 @@
+2011-11-08  Nick Clifton  <nickc@redhat.com>
+
+       * elf-m10300.c (mn10300_elf_relax_section): Fix check for an
+       immediate move into an address register.
+
 2011-11-09  Alan Modra  <amodra@gmail.com>
 
        * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in
index c2dc5835ea65977d786303320cb9d3645514ef76..fa33b4a2fbe19f6be4b9549b0b68feba80242175 100644 (file)
@@ -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;