span ID.
dwarf32_testhd.hex: New optimizer downsizes .text by 4 bytes, update.
svn path=/branches/new-optimizer/; revision=1570
yasm_effaddr *ea = &x86_ea->ea;
yasm_immval *imm = insn->imm;
- if (ea && ea->disp.abs) {
+ if (ea && span == 1) {
/* Change displacement length into word-sized */
if (ea->disp.size == 0) {
ea->disp.size = (insn->common.addrsize == 16) ? 16 : 32;
}
}
- if (imm && imm->val.abs) {
+ if (imm && span == 2) {
if (insn->postop == X86_POSTOP_SIGNEXT_IMM8) {
/* Update bc->len for new opcode and immediate size */
bc->len -= insn->opcode.len;
00
00
e9
-ad
+a9
00
00
00
85
c0
75
-34
+30
83
ec
04
00
00
00
-e9
-73
-00
-00
-00
-8d
-76
-00
+eb
+72
+89
+f6
83
ec
08
56
00
00
-75
+71
00
00
00
4b
00
00
-7a
+76
00
00
00
58
00
00
-86
+82
00
00
00
59
00
00
-94
+90
00
00
00
5a
00
00
-a8
+a4
00
00
00
5b
00
00
-ba
+b6
00
00
00
4b
00
00
-c0
+bc
00
00
00
55
00
00
-c5
+c1
00
00
00
56
00
00
-d5
+d1
00
00
00
00
00
00
-e7
+e3
00
00
00
00
00
00
-e7
+e3
00
00
00
75
08
59
-cc
+94
02
22
14
00
00
00
-e7
+e3
00
00
00
00
00
00
-e7
+e3
00
00
00
01
00
00
-e7
+e3
00
00
00
00
00
00
-e7
+e3
00
00
00
00
00
00
-d0
+cc
00
00
00
00
00
00
-b3
+af
00
00
00
00
00
00
-a3
+9f
00
00
00
00
00
00
-70
+6c
00
00
00
00
00
00
-81
+7d
00
00
00
00
00
00
-e0
+dc
00
00
00
00
00
00
-e7
+e3
00
00
00
00
00
00
+00
+00
+00
+00
ee
00
00
00
00
00
-dc
+d8
0a
00
00
00
00
00
-d4
+d0
0b
00
00
00
00
00
-40
+3c
0e
00
00
00
00
00
-e7
+e3
00
00
00
00
00
00
-28
+24
01
00
00
00
00
00
-b0
+ac
01
00
00
00
00
00
-c0
+bc
02
00
00
00
00
00
-ec
+e8
05
00
00
00
00
00
-74
+70
07
00
00
00
00
00
-18
+14
08
00
00
00
00
00
-20
+1c
08
00
00
00
00
00
-6c
+68
08
00
00
00
00
00
-b0
+ac
08
00
00
00
00
00
-c0
+bc
08
00
00
00
00
00
-dc
+d8
08
00
00
00
00
00
-e4
+e0
08
00
00
00
00
00
-04
+00
09
00
00
00
00
00
-14
+10
09
00
00
00
00
00
-b5
+b1
0a
00
00