diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-12 15:14:36 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-12 15:14:36 +0900 |
commit | 993d65531741fccf26fc10fc5789a5c9fca8c5ae (patch) | |
tree | 996be9095a97ff2aac0d98963b6044d47a0ec60c /test/test67.asm | |
parent | 65c26d26fb72cec0d43d199c72ed27513d17f4c9 (diff) | |
download | nasm-993d65531741fccf26fc10fc5789a5c9fca8c5ae.tar.gz nasm-993d65531741fccf26fc10fc5789a5c9fca8c5ae.tar.bz2 nasm-993d65531741fccf26fc10fc5789a5c9fca8c5ae.zip |
Tizen 2.1 basesubmit/tizen_2.2/20130710.072957submit/tizen_2.1/20130423.103612accepted/tizen_2.1/20130423.1515012.1b_releasetizen_2.1
Diffstat (limited to 'test/test67.asm')
-rw-r--r-- | test/test67.asm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/test67.asm b/test/test67.asm new file mode 100644 index 0000000..7cf300d --- /dev/null +++ b/test/test67.asm @@ -0,0 +1,38 @@ +;Testname=unoptimized; Arguments=-fbin -otest67.bin -O0; Files=stdout stderr test67.bin +;Testname=optimized; Arguments=-fbin -otest67.bin -Ox; Files=stdout stderr test67.bin + + bits 16 + + mov ax,[bx] + mov ax,[foo] + mov ax,[word foo] + mov ax,[dword foo] + mov ax,[ebx] + rep movsb + a16 rep movsb + a32 rep movsb + a32 mov ax,bx + + bits 32 + + mov ax,[bx] + mov ax,[foo] + mov ax,[word foo] + mov ax,[dword foo] + mov ax,[ebx] + rep movsb + a16 rep movsb + a32 rep movsb + + bits 64 + + mov ax,[rbx] + mov ax,[foo] + mov ax,[qword foo] + mov ax,[dword foo] + mov ax,[ebx] + rep movsb + a32 rep movsb + a64 rep movsb + +foo: |