aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2017-11-16 12:28:06 +0100
committerJan Beulich <jbeulich@suse.com>2017-11-16 12:28:06 +0100
commitc2b9da16088f8c500ab93e9a4e3001ab7393cb38 (patch)
treef5000e7eb2e7b4be8db0ee3a96c8f378226782ba /gas/testsuite
parent8c8cad3aa839747e368cc5db58331756a2b70e8e (diff)
downloadgdb-c2b9da16088f8c500ab93e9a4e3001ab7393cb38.zip
gdb-c2b9da16088f8c500ab93e9a4e3001ab7393cb38.tar.gz
gdb-c2b9da16088f8c500ab93e9a4e3001ab7393cb38.tar.bz2
ix86/Intel: don't require memory operand size specifier for PTWRITE
Other than in 64-bit mode, in 32- and 16-bit modes operand size isn't ambiguous.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/i386/ptwrite-intel.d1
-rw-r--r--gas/testsuite/gas/i386/ptwrite.d1
-rw-r--r--gas/testsuite/gas/i386/ptwrite.s1
3 files changed, 3 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/ptwrite-intel.d b/gas/testsuite/gas/i386/ptwrite-intel.d
index d39609a..f0f2aad 100644
--- a/gas/testsuite/gas/i386/ptwrite-intel.d
+++ b/gas/testsuite/gas/i386/ptwrite-intel.d
@@ -15,4 +15,5 @@ Disassembly of section \.text:
+[a-f0-9]+: f3 0f ae 21 ptwrite DWORD PTR \[ecx\]
+[a-f0-9]+: f3 0f ae e1 ptwrite ecx
+[a-f0-9]+: f3 0f ae 21 ptwrite DWORD PTR \[ecx\]
+ +[a-f0-9]+: f3 0f ae 21 ptwrite DWORD PTR \[ecx\]
#pass
diff --git a/gas/testsuite/gas/i386/ptwrite.d b/gas/testsuite/gas/i386/ptwrite.d
index 399c740..31552bc 100644
--- a/gas/testsuite/gas/i386/ptwrite.d
+++ b/gas/testsuite/gas/i386/ptwrite.d
@@ -15,4 +15,5 @@ Disassembly of section \.text:
+[a-f0-9]+: f3 0f ae 21 ptwritel \(%ecx\)
+[a-f0-9]+: f3 0f ae e1 ptwrite %ecx
+[a-f0-9]+: f3 0f ae 21 ptwritel \(%ecx\)
+ +[a-f0-9]+: f3 0f ae 21 ptwritel \(%ecx\)
#pass
diff --git a/gas/testsuite/gas/i386/ptwrite.s b/gas/testsuite/gas/i386/ptwrite.s
index 3aa4be7..61efd7e 100644
--- a/gas/testsuite/gas/i386/ptwrite.s
+++ b/gas/testsuite/gas/i386/ptwrite.s
@@ -9,4 +9,5 @@ _start:
.intel_syntax noprefix
ptwrite ecx
+ ptwrite [ecx]
ptwrite DWORD PTR [ecx]