summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2009-02-26 14:48:03 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2009-02-26 14:48:03 -0800
commit9945feeed615ccb6f75ea6044531be5171694e06 (patch)
tree86f6e7d60495957b4a7518bc29d587e11630abc6
parented2dcb8dc05d0cf1175826e8d568c3b81d61e73c (diff)
downloadnasm-9945feeed615ccb6f75ea6044531be5171694e06.tar.gz
BR 2413265: don't pessimize displacements
Optimize displacements, don't pessimize them. When running in the optimizer, we always keep track of when a reference is forward. That doesn't mean it is unknown.
-rw-r--r--assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assemble.c b/assemble.c
index d4e7f25c..6ff74284 100644
--- a/assemble.c
+++ b/assemble.c
@@ -2103,7 +2103,7 @@ static int matches(const struct itemplate *itemp, insn * instruction, int bits)
static ea *process_ea(operand * input, ea * output, int bits,
int addrbits, int rfield, int32_t rflags)
{
- bool forw_ref = !!(input->opflags & OPFLAG_FORWARD);
+ bool forw_ref = !!(input->opflags & OPFLAG_UNKNOWN);
output->rip = false;