aboutsummaryrefslogtreecommitdiff
path: root/opcodes/cr16-dis.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-10-06 08:08:25 +1030
committerAlan Modra <amodra@gmail.com>2016-10-06 09:36:33 +1030
commit616ec3583b7b6ba0a4e581c426b700b0664a3027 (patch)
tree544e86a910e39c353eaba3cd2ca40595a8278147 /opcodes/cr16-dis.c
parentf389f6fef76d7cf8e8beb7061edff2155c284898 (diff)
downloadgdb-616ec3583b7b6ba0a4e581c426b700b0664a3027.zip
gdb-616ec3583b7b6ba0a4e581c426b700b0664a3027.tar.gz
gdb-616ec3583b7b6ba0a4e581c426b700b0664a3027.tar.bz2
Don't use boolean OR in arithmetic expressions
bfd/ * elf32-epiphany.c (epiphany_final_link_relocate): Use bitwise OR in arithmetic expression, not boolean OR. opcodes/ * cr16-dis.c (print_insn_cr16): Don't use boolean OR in arithmetic. * crx-dis.c (print_insn_crx): Likewise.
Diffstat (limited to 'opcodes/cr16-dis.c')
-rw-r--r--opcodes/cr16-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/cr16-dis.c b/opcodes/cr16-dis.c
index 3c901f9..1d7054a 100644
--- a/opcodes/cr16-dis.c
+++ b/opcodes/cr16-dis.c
@@ -815,7 +815,7 @@ print_insn_cr16 (bfd_vma memaddr, struct disassemble_info *info)
/* Find a matching opcode in table. */
is_decoded = cr16_match_opcode ();
/* If found, print the instruction's mnemonic and arguments. */
- if (is_decoded > 0 && (cr16_words[0] << 16 || cr16_words[1]) != 0)
+ if (is_decoded > 0 && (cr16_words[0] != 0 || cr16_words[1] != 0))
{
if (strneq (instruction->mnemonic, "cinv", 4))
info->fprintf_func (info->stream,"%s", getcinvstring (instruction->mnemonic));