From ccafc3c4b75d8c26c2d57c2a4d39bb49cd76231c Mon Sep 17 00:00:00 2001 From: Victor van den Elzen Date: Mon, 23 Feb 2009 04:35:00 +0100 Subject: BR 2420167: jmp not always optimized Begin by assuming short jumps are possible to prevent suboptimal convergence. --- assemble.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'assemble.c') diff --git a/assemble.c b/assemble.c index ad7ea70..748e62f 100644 --- a/assemble.c +++ b/assemble.c @@ -262,6 +262,11 @@ static bool jmp_match(int32_t segment, int64_t offset, int bits, return false; isize = calcsize(segment, offset, bits, ins, code); + + if (ins->oprs[0].segment == NO_SEG) + /* Be optimistic in pass 1 */ + return true; + if (ins->oprs[0].segment != segment) return false; -- cgit v1.2.3