aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2012-06-22 21:54:06 +0000
committerRoland McGrath <roland@gnu.org>2012-06-22 21:54:06 +0000
commitfe13e45b9a7ffd7f0f0f3c88fd76c6be6fabbc66 (patch)
treeac59244c13abdc5e5f941c19c7473e6713336659 /gas
parent352b3eda56110eb857612d07956b155ff0ee0961 (diff)
downloadgdb-fe13e45b9a7ffd7f0f0f3c88fd76c6be6fabbc66.zip
gdb-fe13e45b9a7ffd7f0f0f3c88fd76c6be6fabbc66.tar.gz
gdb-fe13e45b9a7ffd7f0f0f3c88fd76c6be6fabbc66.tar.bz2
gas/
* NEWS: Mention 'rep ret' too. gas/testsuite/ * gas/i386/rep-ret.d: New file. * gas/i386/rep-ret.s: New file. * gas/i386/i386.exp: Add the new test. opcodes/ * i386-opc.tbl: Add RepPrefixOk to ret. * i386-tbl.h: Regenerate.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog2
-rw-r--r--gas/NEWS2
-rw-r--r--gas/testsuite/ChangeLog4
-rw-r--r--gas/testsuite/gas/i386/i386.exp1
-rw-r--r--gas/testsuite/gas/i386/rep-ret.d9
-rw-r--r--gas/testsuite/gas/i386/rep-ret.s2
6 files changed, 19 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5698397..4149ba3 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,7 @@
2012-06-22 Roland McGrath <mcgrathr@google.com>
+ * NEWS: Mention 'rep ret' too.
+
* config/tc-i386.c (parse_insn): Don't complain about REP prefix
when the template has opcode_modifier.repprefixok set.
* NEWS: Mention the change.
diff --git a/gas/NEWS b/gas/NEWS
index 6f62b93..c277dad 100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -13,7 +13,7 @@
* Add support for the Adapteva EPIPHANY architecture.
-* For x86, allow 'rep bsf' or 'rep bsr' syntax.
+* For x86, allow 'rep bsf', 'rep bsr', and 'rep ret' syntax.
Changes in 2.22:
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 59916b6..d39938f 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2012-06-22 Roland McGrath <mcgrathr@google.com>
+ * gas/i386/rep-ret.d: New file.
+ * gas/i386/rep-ret.s: New file.
+ * gas/i386/i386.exp: Add the new test.
+
* gas/i386/rep-bsf.d: New file.
* gas/i386/rep-bsf.s: New file.
* gas/i386/i386.exp: Add the new test.
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index 2f05580..0049000 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -265,6 +265,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
# Miscellaneous tests.
run_dump_test "pr12589-1"
run_dump_test "rep-bsf"
+ run_dump_test "rep-ret"
set ASFLAGS "$old_ASFLAGS"
}
diff --git a/gas/testsuite/gas/i386/rep-ret.d b/gas/testsuite/gas/i386/rep-ret.d
new file mode 100644
index 0000000..f481dcb
--- /dev/null
+++ b/gas/testsuite/gas/i386/rep-ret.d
@@ -0,0 +1,9 @@
+#objdump: -d
+#name: rep prefix on ret
+
+.*: +file format .*
+
+Disassembly of section .text:
+
+0+000 <foo>:
+\s*[0-9a-f]+:\s+f3 c3\s+repz ret\s*
diff --git a/gas/testsuite/gas/i386/rep-ret.s b/gas/testsuite/gas/i386/rep-ret.s
new file mode 100644
index 0000000..f141e86
--- /dev/null
+++ b/gas/testsuite/gas/i386/rep-ret.s
@@ -0,0 +1,2 @@
+ .text
+foo: rep ret