diff options
author | Nick Clifton <nickc@redhat.com> | 2017-04-21 12:18:06 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-04-21 12:18:06 +0100 |
commit | 792f174f8af4291c222d0a6de919118e488258bc (patch) | |
tree | e84f71db01f98399838c80440ffbf6bb183155bc /gas | |
parent | 73b58fda3b5976ad1a60feb43695eaf61cdf62b9 (diff) | |
download | gdb-792f174f8af4291c222d0a6de919118e488258bc.zip gdb-792f174f8af4291c222d0a6de919118e488258bc.tar.gz gdb-792f174f8af4291c222d0a6de919118e488258bc.tar.bz2 |
Fix detection of illegal AArch64 opcodes that resemble LD1R, LD2R, LD3R and LD4R.
PR binutils/21380
opcodes * aarch64-tbl.h (aarch64_opcode_table): Fix masks for LD1R, LD2R,
LD3R and LD4R.
gas * testsuite/gas/aarch64/illegal-3.s: New file.
* testsuite/gas/aarch64/illegal-3.d: New file.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/illegal-3.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/illegal-3.s | 9 |
3 files changed, 29 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index c37ae22..a31c799 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2017-04-21 Nick Clifton <nickc@redhat.com> + + PR binutils/21380 + * testsuite/gas/aarch64/illegal-3.s: New file. + * testsuite/gas/aarch64/illegal-3.d: New file. + 2017-04-11 Alan Modra <amodra@gmail.com> * config/tc-ppc.c (md_show_usage): Delete mention of -mhtm. diff --git a/gas/testsuite/gas/aarch64/illegal-3.d b/gas/testsuite/gas/aarch64/illegal-3.d new file mode 100644 index 0000000..b073e20 --- /dev/null +++ b/gas/testsuite/gas/aarch64/illegal-3.d @@ -0,0 +1,14 @@ +#name: Illegal Instructions - 3 +#as: +#source: illegal-3.s +#objdump: -d + +.*: file format .* + +Disassembly of section \.text: + +0+ <.*>: + 0: 4dc2d4ec .inst 0x4dc2d4ec ; undefined + 4: 4de2d4fc .inst 0x4de2d4fc ; undefined + 8: 4dc2f4ec .inst 0x4dc2f4ec ; undefined + c: 4de2f4fc .inst 0x4de2f4fc ; undefined diff --git a/gas/testsuite/gas/aarch64/illegal-3.s b/gas/testsuite/gas/aarch64/illegal-3.s new file mode 100644 index 0000000..a8abe29 --- /dev/null +++ b/gas/testsuite/gas/aarch64/illegal-3.s @@ -0,0 +1,9 @@ +// Test the disassembler's detection of illegal binary sequences. + +// PR 21380: + + .inst 0x4dc2d4ec + .inst 0x4de2d4fc + .inst 0x4dc2f4ec + .inst 0x4de2f4fc + |