test/r13.asm: test special-casing of rbp and r13 in 64-bit mode
authorH. Peter Anvin <hpa@zytor.com>
Mon, 17 Sep 2007 20:19:25 +0000 (13:19 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 17 Sep 2007 20:19:25 +0000 (13:19 -0700)
Test that we correctly special-case the modr/m generation for r13 in
64-bit mode.

test/r13.asm [new file with mode: 0644]

diff --git a/test/r13.asm b/test/r13.asm
new file mode 100644 (file)
index 0000000..7748aa6
--- /dev/null
@@ -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]