aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorCupertino Miranda <cmiranda@synopsys.com>2016-09-21 12:07:46 +0100
committerCupertino Miranda <cmiranda@synopsys.com>2016-10-17 15:27:51 +0200
commitdecf5bd1570be3de10aeab99869a9548d17b1354 (patch)
treebfa93eba732168b5eabd9e309334d576328ead4b /gas
parent6d91379408b87b6d0c1cd4bc2880b530cc4ec721 (diff)
downloadgdb-decf5bd1570be3de10aeab99869a9548d17b1354.zip
gdb-decf5bd1570be3de10aeab99869a9548d17b1354.tar.gz
gdb-decf5bd1570be3de10aeab99869a9548d17b1354.tar.bz2
Removed pseudo invalid instructions opcodes.
The disassember was generating invXXX instructions for cases when in reality we had llockd or scondd instrutions. opcodes/ChangeLog: Cupertino Miranda <cmiranda@synopsys.com> arc-tbl.h: Removed any "inv.+" instructions from the table. gas/ChangeLog: Cupertino Miranda <cmiranda@synopsys.com> testsuite/arc/dis-inv.s: Test to validate patch. testsuite/arc/dis-inv.d: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/testsuite/gas/arc/dis-inv.d12
-rw-r--r--gas/testsuite/gas/arc/dis-inv.s4
3 files changed, 21 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index c220884..5b538a9 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2016-10-17 Cupertino Miranda <cmiranda@synopsys.com>
+
+ * testsuite/arc/dis-inv.s: Test to validate patch.
+ * testsuite/arc/dis-inv.d: Likewise.
+
2016-10-14 Claudiu Zissulescu <claziss@synopsys.com>
* testsuite/gas/arc/shortlimm_a7.d: New file.
diff --git a/gas/testsuite/gas/arc/dis-inv.d b/gas/testsuite/gas/arc/dis-inv.d
new file mode 100644
index 0000000..de66d34
--- /dev/null
+++ b/gas/testsuite/gas/arc/dis-inv.d
@@ -0,0 +1,12 @@
+#objdump: -j .text -dr
+#name: Check for correct disassembly of scondd llockd.
+#as: -mcpu=archs
+
+dump.o: file format elf32-littlearc
+
+
+Disassembly of section .text:
+
+00000000 <.text>:
+[\t ]+0\:[\t ]+262f 0052[\t ]+llockd[\t ]+r6\,\[r1\]
+[\t ]+4\:[\t ]+262f 0053[\t ]+scondd[\t ]+r6\,\[r1\]
diff --git a/gas/testsuite/gas/arc/dis-inv.s b/gas/testsuite/gas/arc/dis-inv.s
new file mode 100644
index 0000000..9ad8988
--- /dev/null
+++ b/gas/testsuite/gas/arc/dis-inv.s
@@ -0,0 +1,4 @@
+ .cpu HS
+ .text
+ llockd r6,[r1]
+ scondd r6,[r1]