summaryrefslogtreecommitdiff
path: root/assemble.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2009-02-26 16:34:56 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2009-02-26 16:34:56 -0800
commite8ab891a6538ce2c6758968ca6e9852e8ed759f8 (patch)
tree2e8ab74ea4e28e847720f466256d680850d0bb99 /assemble.c
parent943c9d74588c6606e497424761ab91d119b1e487 (diff)
downloadnasm-e8ab891a6538ce2c6758968ca6e9852e8ed759f8.tar.gz
nasm-e8ab891a6538ce2c6758968ca6e9852e8ed759f8.tar.bz2
nasm-e8ab891a6538ce2c6758968ca6e9852e8ed759f8.zip
sbyte: optimization is OK if UNKNOWN isn't set
We can optimize the sbytes if the UNKNOWN flag isn't set
Diffstat (limited to 'assemble.c')
-rw-r--r--assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assemble.c b/assemble.c
index 6ff7428..7e8462b 100644
--- 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);
}