diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-17 13:19:25 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-17 13:19:25 -0700 |
commit | 2ced2ec3709d8cbcbb80d51f23092af260258cd1 (patch) | |
tree | 026890b2c89da8aa5f0fdef13ffaf8244bb7b42b /test | |
parent | 2f3c4c056ef62e62f73122e9b40a349bfc48599f (diff) | |
download | nasm-2ced2ec3709d8cbcbb80d51f23092af260258cd1.tar.gz nasm-2ced2ec3709d8cbcbb80d51f23092af260258cd1.tar.bz2 nasm-2ced2ec3709d8cbcbb80d51f23092af260258cd1.zip |
test/r13.asm: test special-casing of rbp and r13 in 64-bit mode
Test that we correctly special-case the modr/m generation for r13 in
64-bit mode.
Diffstat (limited to 'test')
-rw-r--r-- | test/r13.asm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/r13.asm b/test/r13.asm new file mode 100644 index 0000000..7748aa6 --- /dev/null +++ b/test/r13.asm @@ -0,0 +1,13 @@ + bits 64 + mov rax,[rbx] + mov rax,[rbx*4] + mov rax,[rbx+rbx*2] + mov rax,[r13+rbx*2] + mov rax,[rbp] + mov rax,[rbp*4] + mov rax,[rbp+rbp*2] + mov rax,[rbp+r13*2] + mov rax,[r13] + mov rax,[r13*4] + mov rax,[r13+rbp*2] + mov rax,[r13+r13*2] |