diff options
author | Nick Clifton <nickc@redhat.com> | 2011-11-08 15:07:17 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-11-08 15:07:17 +0000 |
commit | 6746a626dcc77ce098ae890427f7991940158ca5 (patch) | |
tree | 33d7b800cf62d8ef06b6971de5e12eb51b09166f /bfd/elf-m10300.c | |
parent | 409ff343a402799563f71f938138b29f8baf7a1c (diff) | |
download | gdb-6746a626dcc77ce098ae890427f7991940158ca5.zip gdb-6746a626dcc77ce098ae890427f7991940158ca5.tar.gz gdb-6746a626dcc77ce098ae890427f7991940158ca5.tar.bz2 |
* 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c index c2dc583..fa33b4a 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; |