sbyte: optimization is OK if UNKNOWN isn't set
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 27 Feb 2009 00:34:56 +0000 (16:34 -0800)
committerH. 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

index 6ff7428..7e8462b 100644 (file)
@@ -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);
 }