projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ubsan: iq2000: left shift of negative value
[deliverable/binutils-gdb.git]
/
opcodes
/
score7-dis.c
diff --git
a/opcodes/score7-dis.c
b/opcodes/score7-dis.c
index 9d21ef84686fc1c151796741af91dcc495ac83e3..2dbc6674cc407c4356dfdac27b738d5024081fd2 100644
(file)
--- a/
opcodes/score7-dis.c
+++ b/
opcodes/score7-dis.c
@@
-1,5
+1,5
@@
/* Instruction printing code for Score
/* Instruction printing code for Score
- Copyright (C) 2009-201
8
Free Software Foundation, Inc.
+ Copyright (C) 2009-201
9
Free Software Foundation, Inc.
Contributed by:
Brain.lin (brain.lin@sunplusct.com)
Mei Ligang (ligang@sunnorth.com.cn)
Contributed by:
Brain.lin (brain.lin@sunplusct.com)
Mei Ligang (ligang@sunnorth.com.cn)
@@
-871,7
+871,7
@@
int
s7_print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little)
{
unsigned char b[4];
s7_print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little)
{
unsigned char b[4];
- long given;
+
unsigned
long given;
long ridparity;
int status;
bfd_boolean insn_pce_p = FALSE;
long ridparity;
int status;
bfd_boolean insn_pce_p = FALSE;
@@
-907,11
+907,11
@@
s7_print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little)
if (little)
{
if (little)
{
- given = (b[0]) | (b[1] << 8) | (b[2] << 16) | (b[3] << 24);
+ given = (b[0]) | (b[1] << 8) | (b[2] << 16) | (
(unsigned)
b[3] << 24);
}
else
{
}
else
{
- given = (b[0] << 24) | (b[1] << 16) | (b[2] << 8) | (b[3]);
+ given = (
(unsigned)
b[0] << 24) | (b[1] << 16) | (b[2] << 8) | (b[3]);
}
if ((given & 0x80008000) == 0x80008000)
}
if ((given & 0x80008000) == 0x80008000)
This page took
0.023877 seconds
and
4
git commands to generate.