aboutsummaryrefslogtreecommitdiff
path: root/tests/asmtest.S
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-05-12 00:57:02 +0200
committerMichael Matz <matz@suse.de>2016-05-12 00:57:02 +0200
commit6bd8c936e33db20f7023e11228bc2f2a4fb51f2e (patch)
tree46b0f7e21a1c78f17feb8e0b541018f358f962c0 /tests/asmtest.S
parentb9f01dffc61d41868157d3cc31f460d952502779 (diff)
downloadtinycc-6bd8c936e33db20f7023e11228bc2f2a4fb51f2e.tar.gz
tinycc-6bd8c936e33db20f7023e11228bc2f2a4fb51f2e.tar.bz2
x86-64-asm: Add mov[sz]xq opcodes
This adds the zero/sign-extending opcodes with 64bit destinations.
Diffstat (limited to 'tests/asmtest.S')
-rw-r--r--tests/asmtest.S7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/asmtest.S b/tests/asmtest.S
index 3589f33..e50a5d0 100644
--- a/tests/asmtest.S
+++ b/tests/asmtest.S
@@ -86,6 +86,13 @@ movl %ebx, %fs
movzb 0x1000, %eax
movzb 0x1000, %ax
+#ifdef __x86_64__
+ movzb 0x1000, %rax
+ movzbq 0x1000, %rbx
+ movsbq 0x1000, %rdx
+ movzwq 0x1000, %rdi
+ movswq 0x1000, %rdx
+#endif
#ifdef __i386__
pushl %eax