optimization.asm: add EA optimization tests

Add tests for EA optimizations
This commit is contained in:
H. Peter Anvin 2009-02-26 14:47:17 -08:00
parent 3213a57740
commit ed2dcb8dc0

View File

@ -46,5 +46,29 @@ times 127 - 3 nop
calog2:
; Simple
lea eax, [eax+dolug2-dolug1]
dolug1:
times 127 nop
dolug2:
; Must start short
ealog1:
lea eax, [eax+ealog2-ealog1]
times 127 - 3 nop
ealog2:
; Must stay long!
lea eax, [eax+folug2-folug1]
folug1:
times 128 nop
folug2:
; Must stay long!
galog1:
lea eax, [eax+galog2-galog1]
times 128 - 3 nop
galog2:
; Do not confuse forward references and segmentless addresses!
jmp 12345