projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79b5972
)
BR 2420167: jmp not always optimized
author
Victor van den Elzen
<victor.vde@gmail.com>
Mon, 23 Feb 2009 03:35:00 +0000
(
04:35
+0100)
committer
Victor van den Elzen
<victor.vde@gmail.com>
Mon, 23 Feb 2009 03:35:00 +0000
(
04:35
+0100)
Begin by assuming short jumps are possible to prevent suboptimal convergence.
assemble.c
patch
|
blob
|
history
diff --git
a/assemble.c
b/assemble.c
index
ad7ea70
..
748e62f
100644
(file)
--- 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;