diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2009-02-26 14:47:17 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2009-02-26 14:47:17 -0800 |
commit | ed2dcb8dc05d0cf1175826e8d568c3b81d61e73c (patch) | |
tree | b70289b58a2ba7ee799df9cb345088a58fff0584 /test | |
parent | 3213a5774024146be5493c750d71673d5361e108 (diff) | |
download | nasm-ed2dcb8dc05d0cf1175826e8d568c3b81d61e73c.tar.gz nasm-ed2dcb8dc05d0cf1175826e8d568c3b81d61e73c.tar.bz2 nasm-ed2dcb8dc05d0cf1175826e8d568c3b81d61e73c.zip |
optimization.asm: add EA optimization tests
Add tests for EA optimizations
Diffstat (limited to 'test')
-rw-r--r-- | test/optimization.asm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/optimization.asm b/test/optimization.asm index 2390586..fcc209e 100644 --- a/test/optimization.asm +++ b/test/optimization.asm @@ -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 |