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: alpha-vma: timeout
[deliverable/binutils-gdb.git]
/
opcodes
/
v850-opc.c
diff --git
a/opcodes/v850-opc.c
b/opcodes/v850-opc.c
index b02e22aa9e358b93b335b9e0a8ceb1dbb5ee2f78..24b07fca4d63ea859b8b825db8167d9560f44aa9 100644
(file)
--- a/
opcodes/v850-opc.c
+++ b/
opcodes/v850-opc.c
@@
-1,5
+1,5
@@
/* Assemble V850 instructions.
/* Assemble V850 instructions.
- Copyright (C) 1996-20
19
Free Software Foundation, Inc.
+ Copyright (C) 1996-20
20
Free Software Foundation, Inc.
This file is part of the GNU opcodes library.
This file is part of the GNU opcodes library.
@@
-693,14
+693,10
@@
extract_WIDTH_L (unsigned long insn, int * invalid)
static unsigned long
insert_SELID (unsigned long insn, long selid, const char ** errmsg)
{
static unsigned long
insert_SELID (unsigned long insn, long selid, const char ** errmsg)
{
- unsigned long ret;
-
- if (selid > 0x1f || selid < 0)
+ if ((unsigned long) selid > 0x1f)
* errmsg = _(selid_out_of_range);
* errmsg = _(selid_out_of_range);
- ret = (insn | ((selid & 0x1f) << 27));
-
- return ret;
+ return insn | ((selid & 0x1fUL) << 27);
}
static unsigned long
}
static unsigned long
This page took
0.025877 seconds
and
4
git commands to generate.