projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
943c9d7
)
sbyte: optimization is OK if UNKNOWN isn't set
author
H. Peter Anvin
<hpa@linux.intel.com>
Fri, 27 Feb 2009 00:34:56 +0000
(16:34 -0800)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Fri, 27 Feb 2009 00:34:56 +0000
(16:34 -0800)
We can optimize the sbytes if the UNKNOWN flag isn't set
assemble.c
patch
|
blob
|
history
diff --git
a/assemble.c
b/assemble.c
index
6ff7428
..
7e8462b
100644
(file)
--- a/
assemble.c
+++ b/
assemble.c
@@
-758,7
+758,7
@@
int64_t insn_size(int32_t segment, int64_t offset, int bits, uint32_t cp,
static bool possible_sbyte(operand *o)
{
return o->wrt == NO_SEG && o->segment == NO_SEG &&
- !(o->opflags & OPFLAG_
FORWARD
) &&
+ !(o->opflags & OPFLAG_
UNKNOWN
) &&
optimizing >= 0 && !(o->type & STRICT);
}