diff options
author | Cupertino Miranda <cmiranda@synopsys.com> | 2016-09-21 12:07:46 +0100 |
---|---|---|
committer | Cupertino Miranda <cmiranda@synopsys.com> | 2016-10-17 15:27:51 +0200 |
commit | decf5bd1570be3de10aeab99869a9548d17b1354 (patch) | |
tree | bfa93eba732168b5eabd9e309334d576328ead4b /gas/testsuite | |
parent | 6d91379408b87b6d0c1cd4bc2880b530cc4ec721 (diff) | |
download | gdb-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/testsuite')
-rw-r--r-- | gas/testsuite/gas/arc/dis-inv.d | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/arc/dis-inv.s | 4 |
2 files changed, 16 insertions, 0 deletions
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] |