aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-11-19 15:26:42 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-11-19 15:26:42 +0000
commit18d0c96eb96c5dc0d816b455671fbfb11defe3ba (patch)
tree14c547d56bc780e2b87b629cc8c74682ff69c779 /gas
parent945ee43039cf180d2b6b77b0d72953af50359d72 (diff)
downloadgdb-18d0c96eb96c5dc0d816b455671fbfb11defe3ba.zip
gdb-18d0c96eb96c5dc0d816b455671fbfb11defe3ba.tar.gz
gdb-18d0c96eb96c5dc0d816b455671fbfb11defe3ba.tar.bz2
Allow lock on cmpxch16b.
gas/testsuite/ 2009-11-19 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/lock-1.s: Add cmpxchg16b test. * gas/i386/lock-1-intel.d: Updated. * gas/i386/lock-1.d: Likewise. opcodes/ 2009-11-19 H.J. Lu <hongjiu.lu@intel.com> * i386-opc.tbl: Add IsLockable to cmpxch16b. * i386-tbl.h: Regenerated.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/i386/x86-64-lock-1-intel.d2
-rw-r--r--gas/testsuite/gas/i386/x86-64-lock-1.d2
-rw-r--r--gas/testsuite/gas/i386/x86-64-lock-1.s2
4 files changed, 12 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index de0c6ca..3d7740b 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2009-11-19 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/i386/lock-1.s: Add cmpxchg16b test.
+ * gas/i386/lock-1-intel.d: Updated.
+ * gas/i386/lock-1.d: Likewise.
+
2009-11-19 Nick Clifton <nickc@redhat.com>
PR binutils/10924
diff --git a/gas/testsuite/gas/i386/x86-64-lock-1-intel.d b/gas/testsuite/gas/i386/x86-64-lock-1-intel.d
index 3a5cc38..696c4cf 100644
--- a/gas/testsuite/gas/i386/x86-64-lock-1-intel.d
+++ b/gas/testsuite/gas/i386/x86-64-lock-1-intel.d
@@ -22,6 +22,7 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: f0 0f ba 2b 64 lock bts DWORD PTR \[rbx\],0x64
[ ]*[a-f0-9]+: f0 0f b1 03 lock cmpxchg DWORD PTR \[rbx\],eax
[ ]*[a-f0-9]+: f0 0f c7 0b lock cmpxchg8b QWORD PTR \[rbx\]
+[ ]*[a-f0-9]+: f0 48 0f c7 0b lock cmpxchg16b OWORD PTR \[rbx\]
[ ]*[a-f0-9]+: f0 ff 0b lock dec DWORD PTR \[rbx\]
[ ]*[a-f0-9]+: f0 ff 03 lock inc DWORD PTR \[rbx\]
[ ]*[a-f0-9]+: f0 f7 1b lock neg DWORD PTR \[rbx\]
@@ -51,6 +52,7 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: f0 0f ba 2b 64 lock bts DWORD PTR \[rbx\],0x64
[ ]*[a-f0-9]+: f0 0f b1 03 lock cmpxchg DWORD PTR \[rbx\],eax
[ ]*[a-f0-9]+: f0 0f c7 0b lock cmpxchg8b QWORD PTR \[rbx\]
+[ ]*[a-f0-9]+: f0 48 0f c7 0b lock cmpxchg16b OWORD PTR \[rbx\]
[ ]*[a-f0-9]+: f0 ff 0b lock dec DWORD PTR \[rbx\]
[ ]*[a-f0-9]+: f0 ff 03 lock inc DWORD PTR \[rbx\]
[ ]*[a-f0-9]+: f0 f7 1b lock neg DWORD PTR \[rbx\]
diff --git a/gas/testsuite/gas/i386/x86-64-lock-1.d b/gas/testsuite/gas/i386/x86-64-lock-1.d
index bf065cb..edf59cb 100644
--- a/gas/testsuite/gas/i386/x86-64-lock-1.d
+++ b/gas/testsuite/gas/i386/x86-64-lock-1.d
@@ -21,6 +21,7 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: f0 0f ba 2b 64 lock btsl \$0x64,\(%rbx\)
[ ]*[a-f0-9]+: f0 0f b1 03 lock cmpxchg %eax,\(%rbx\)
[ ]*[a-f0-9]+: f0 0f c7 0b lock cmpxchg8b \(%rbx\)
+[ ]*[a-f0-9]+: f0 48 0f c7 0b lock cmpxchg16b \(%rbx\)
[ ]*[a-f0-9]+: f0 ff 0b lock decl \(%rbx\)
[ ]*[a-f0-9]+: f0 ff 03 lock incl \(%rbx\)
[ ]*[a-f0-9]+: f0 f7 1b lock negl \(%rbx\)
@@ -50,6 +51,7 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: f0 0f ba 2b 64 lock btsl \$0x64,\(%rbx\)
[ ]*[a-f0-9]+: f0 0f b1 03 lock cmpxchg %eax,\(%rbx\)
[ ]*[a-f0-9]+: f0 0f c7 0b lock cmpxchg8b \(%rbx\)
+[ ]*[a-f0-9]+: f0 48 0f c7 0b lock cmpxchg16b \(%rbx\)
[ ]*[a-f0-9]+: f0 ff 0b lock decl \(%rbx\)
[ ]*[a-f0-9]+: f0 ff 03 lock incl \(%rbx\)
[ ]*[a-f0-9]+: f0 f7 1b lock negl \(%rbx\)
diff --git a/gas/testsuite/gas/i386/x86-64-lock-1.s b/gas/testsuite/gas/i386/x86-64-lock-1.s
index e6da5c5..bbd71c8 100644
--- a/gas/testsuite/gas/i386/x86-64-lock-1.s
+++ b/gas/testsuite/gas/i386/x86-64-lock-1.s
@@ -16,6 +16,7 @@ foo:
lock bts $0x64, (%rbx)
lock cmpxchg %eax,(%rbx)
lock cmpxchg8b (%rbx)
+ lock cmpxchg16b (%rbx)
lock decl (%rbx)
lock incl (%rbx)
lock negl (%rbx)
@@ -47,6 +48,7 @@ foo:
lock bts DWORD PTR [rbx],0x64
lock cmpxchg DWORD PTR [rbx],eax
lock cmpxchg8b QWORD PTR [rbx]
+ lock cmpxchg16b OWORD PTR [rbx]
lock dec DWORD PTR [rbx]
lock inc DWORD PTR [rbx]
lock neg DWORD PTR [rbx]