summaryrefslogtreecommitdiff
path: root/test/optimization.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2009-02-26 16:37:55 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2009-02-26 16:37:55 -0800
commitae2597b116669003bd5fe004eebc88748cd8afcd (patch)
tree8f40c6097beaa7cd225a5967a3d62007ed701030 /test/optimization.asm
parente8ab891a6538ce2c6758968ca6e9852e8ed759f8 (diff)
downloadnasm-ae2597b116669003bd5fe004eebc88748cd8afcd.tar.gz
nasm-ae2597b116669003bd5fe004eebc88748cd8afcd.tar.bz2
nasm-ae2597b116669003bd5fe004eebc88748cd8afcd.zip
optimization.asm: more sbyte tests
A few more sbyte optimization tests.
Diffstat (limited to 'test/optimization.asm')
-rw-r--r--test/optimization.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/optimization.asm b/test/optimization.asm
index 975938e..d78209d 100644
--- a/test/optimization.asm
+++ b/test/optimization.asm
@@ -88,5 +88,17 @@ add ecx,onetwentynine ; not sbyte (backward)
onetwentyseven equ 127
onetwentyeight equ 128
+; Simple
+add eax, holug2-holug1
+holug1:
+times 127 nop
+holug2:
+
+; Must start short
+ialog1:
+add eax, ialog2-ialog1
+times 127 - 3 nop
+ialog2:
+
; Do not confuse forward references and segmentless addresses!
jmp 12345