aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-06-10 11:16:41 -0700
committerH.J. Lu <hjl.tools@gmail.com>2014-06-10 11:16:41 -0700
commitd9949a367352c66b7d90ca32bdbd5cac38c14b53 (patch)
tree8bbc891473c457672adac2583baa5520e1e8fb8f /gas
parentb71c404358dbc78d3e84c4299c6139c5291ac441 (diff)
downloadgdb-d9949a367352c66b7d90ca32bdbd5cac38c14b53.zip
gdb-d9949a367352c66b7d90ca32bdbd5cac38c14b53.tar.gz
gdb-d9949a367352c66b7d90ca32bdbd5cac38c14b53.tar.bz2
Only print prefixes before fwait
gas/testsuite/ * gas/i386/prefix.s: Add another fwait test. * gas/i386/prefix.d: Updated. opcodes/ * i386-dis.c (fwait_prefix): New. (ckprefix): Set fwait_prefix. (print_insn): Properly print prefixes before fwait.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/i386/prefix.d2
-rw-r--r--gas/testsuite/gas/i386/prefix.s3
3 files changed, 10 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 768c26b..43a37e3 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-06-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/i386/prefix.s: Add another fwait test.
+ * gas/i386/prefix.d: Updated.
+
2014-06-09 Nick Clifton <nickc@redhat.com>
* gas/msp430/msp430x.d: Update to match revised assembler output.
diff --git a/gas/testsuite/gas/i386/prefix.d b/gas/testsuite/gas/i386/prefix.d
index d9f0ae2..a334ab8 100644
--- a/gas/testsuite/gas/i386/prefix.d
+++ b/gas/testsuite/gas/i386/prefix.d
@@ -12,6 +12,8 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: 9b 67 df e0 addr16 fstsw %ax
[ ]*[a-f0-9]+: 36 67 66 f3 a7 repz cmpsw %es:\(%di\),%ss:\(%si\)
[ ]*[a-f0-9]+: 26 9b es fwait
+[ ]*[a-f0-9]+: 9b fwait
+[ ]*[a-f0-9]+: 65 c7 05 00 00 00 00 00 00 00 00 movl \$0x0,%gs:0x0
[ ]*[a-f0-9]+: 66 f2 0f 38 17 data16 \(bad\)
[ ]*[a-f0-9]+: f2 66 0f 54 repnz \(bad\)
[ ]*[a-f0-9]+: f2 0f 54 repnz \(bad\)
diff --git a/gas/testsuite/gas/i386/prefix.s b/gas/testsuite/gas/i386/prefix.s
index 07020ea..9f90afa 100644
--- a/gas/testsuite/gas/i386/prefix.s
+++ b/gas/testsuite/gas/i386/prefix.s
@@ -4,6 +4,9 @@
es fwait
+ fwait
+ movl $0,%gs:fpu_owner_task
+
.byte 0x66
.byte 0xf2
.byte 0x0f