diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-10-19 16:47:53 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-19 16:47:53 -0700 |
commit | 2d4722fe4ca6d6509fb4b6078e6ce07e3634b3a4 (patch) | |
tree | ff7f908709322ccd3c3b1b935466bbdda007c952 /test/smartalign16.asm | |
parent | f991f5ae56468b225b5df848b47b5173dedf8332 (diff) | |
download | nasm-2d4722fe4ca6d6509fb4b6078e6ce07e3634b3a4.tar.gz nasm-2d4722fe4ca6d6509fb4b6078e6ce07e3634b3a4.tar.bz2 nasm-2d4722fe4ca6d6509fb4b6078e6ce07e3634b3a4.zip |
test: better smartalign tests
Smartalign tests for 16, 32 and 64-bit mode.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'test/smartalign16.asm')
-rw-r--r-- | test/smartalign16.asm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/smartalign16.asm b/test/smartalign16.asm new file mode 100644 index 0000000..42915de --- /dev/null +++ b/test/smartalign16.asm @@ -0,0 +1,36 @@ +;Testname=test; Arguments=-fbin -osmartalign16.bin; Files=stdout stderr smartalign16.bin + +%use smartalign + + bits 16 + + alignmode nop, 32 + add ax,ax + align 32 + + alignmode generic, 32 + add ax,ax + align 32 + + alignmode k7, 32 + add ax,ax + align 32 + + alignmode k8, 32 + add ax,ax + align 32 + + alignmode p6, 32 + add ax,ax + align 32 + + add ecx,ecx + align 32 + add edx,edx + align 128 + add ebx,ebx + align 256 + add esi,esi + align 512 + + add edi,edi |