From e8ab891a6538ce2c6758968ca6e9852e8ed759f8 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 26 Feb 2009 16:34:56 -0800 Subject: [PATCH] sbyte: optimization is OK if UNKNOWN isn't set We can optimize the sbytes if the UNKNOWN flag isn't set --- assemble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.7.4