aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2008-01-03 03:28:35 +0000
committerH.J. Lu <hjl.tools@gmail.com>2008-01-03 03:28:35 +0000
commitf2a9c676b7e4d2d0fa3017fde699910b87439058 (patch)
tree60dcd81a9b158ca181cb16befeadd5e73b0f04d3 /gas
parent615888ae9fe0fd690b17e404c0d13fcff93453c5 (diff)
downloadgdb-f2a9c676b7e4d2d0fa3017fde699910b87439058.zip
gdb-f2a9c676b7e4d2d0fa3017fde699910b87439058.tar.gz
gdb-f2a9c676b7e4d2d0fa3017fde699910b87439058.tar.bz2
gas/testsuite/
2008-01-02 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.s: Add tests for movq. * gas/i386/x86_64.s: Likewise. * gas/i386/i386.d Updated. * gas/i386/x86_64.d: Likewise. opcodes/ 2008-01-02 H.J. Lu <hongjiu.lu@intel.com> * i386-opc.h: Update comments.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog8
-rw-r--r--gas/testsuite/gas/i386/i386.d5
-rw-r--r--gas/testsuite/gas/i386/i386.s5
-rw-r--r--gas/testsuite/gas/i386/x86_64.d5
-rw-r--r--gas/testsuite/gas/i386/x86_64.s5
5 files changed, 27 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 03e19d0..5c6e1e2 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,13 @@
2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
+ * gas/i386/i386.s: Add tests for movq.
+ * gas/i386/x86_64.s: Likewise.
+
+ * gas/i386/i386.d Updated.
+ * gas/i386/x86_64.d: Likewise.
+
+2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
+
PR gas/5534
* gas/i386/intel.s: Use QWORD on movq instead of DWORD.
diff --git a/gas/testsuite/gas/i386/i386.d b/gas/testsuite/gas/i386/i386.d
index fbdcb21..ddfc522 100644
--- a/gas/testsuite/gas/i386/i386.d
+++ b/gas/testsuite/gas/i386/i386.d
@@ -25,3 +25,8 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: 0f b6 10 movzbl \(%eax\),%edx
[ ]*[a-f0-9]+: 66 0f b6 10 movzbw \(%eax\),%dx
[ ]*[a-f0-9]+: 0f b7 10 movzwl \(%eax\),%edx
+[ ]*[a-f0-9]+: f3 0f 7e 0c 24 movq \(%esp\),%xmm1
+[ ]*[a-f0-9]+: f3 0f 7e 0c 24 movq \(%esp\),%xmm1
+[ ]*[a-f0-9]+: 66 0f d6 0c 24 movq %xmm1,\(%esp\)
+[ ]*[a-f0-9]+: 66 0f d6 0c 24 movq %xmm1,\(%esp\)
+#pass
diff --git a/gas/testsuite/gas/i386/i386.s b/gas/testsuite/gas/i386/i386.s
index 077664d..8eb5e53 100644
--- a/gas/testsuite/gas/i386/i386.s
+++ b/gas/testsuite/gas/i386/i386.s
@@ -24,3 +24,8 @@
movzx edx,BYTE PTR [eax]
movzx dx,BYTE PTR [eax]
movzx edx,WORD PTR [eax]
+
+ movq xmm1,QWORD PTR [esp]
+ movq xmm1,[esp]
+ movq QWORD PTR [esp],xmm1
+ movq [esp],xmm1
diff --git a/gas/testsuite/gas/i386/x86_64.d b/gas/testsuite/gas/i386/x86_64.d
index cdae47f..b21d0af 100644
--- a/gas/testsuite/gas/i386/x86_64.d
+++ b/gas/testsuite/gas/i386/x86_64.d
@@ -187,5 +187,8 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: 66 0f b6 10 movzbw \(%rax\),%dx
[ ]*[a-f0-9]+: 0f b7 10 movzwl \(%rax\),%edx
[ ]*[a-f0-9]+: 48 0f b7 10 movzwq \(%rax\),%rdx
- ...
+[ ]*[a-f0-9]+: f3 0f 7e 0c 24 movq \(%rsp\),%xmm1
+[ ]*[a-f0-9]+: f3 0f 7e 0c 24 movq \(%rsp\),%xmm1
+[ ]*[a-f0-9]+: 66 0f d6 0c 24 movq %xmm1,\(%rsp\)
+[ ]*[a-f0-9]+: 66 0f d6 0c 24 movq %xmm1,\(%rsp\)
#pass
diff --git a/gas/testsuite/gas/i386/x86_64.s b/gas/testsuite/gas/i386/x86_64.s
index d4e9d5d..fbf4b31 100644
--- a/gas/testsuite/gas/i386/x86_64.s
+++ b/gas/testsuite/gas/i386/x86_64.s
@@ -228,5 +228,10 @@ cmpxchg16b oword ptr [rax]
movzx edx,WORD PTR [rax]
movzx rdx,WORD PTR [rax]
+ movq xmm1,QWORD PTR [rsp]
+ movq xmm1,[rsp]
+ movq QWORD PTR [rsp],xmm1
+ movq [rsp],xmm1
+
# Get a good alignment.
.p2align 4,0