projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f3c4c0
)
test/r13.asm: test special-casing of rbp and r13 in 64-bit mode
author
H. Peter Anvin
<hpa@zytor.com>
Mon, 17 Sep 2007 20:19:25 +0000
(13:19 -0700)
committer
H. 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]
patch
|
blob
diff --git a/test/r13.asm
b/test/r13.asm
new file mode 100644
(file)
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]