diff options
author | Przemyslaw Wirkus <przemyslaw.wirkus@arm.com> | 2020-10-29 16:30:46 +0000 |
---|---|---|
committer | Przemyslaw Wirkus <przemyslaw.wirkus@arm.com> | 2020-10-29 16:33:00 +0000 |
commit | 59d5613e42589c6515a0bfe9baae522f164d20fa (patch) | |
tree | 150025b23981e09b19f099c8d8c38ea776d7aad4 /gas/testsuite | |
parent | 76868f3606fb9de04f49c441c1e3cdd3e943a34d (diff) | |
download | gdb-59d5613e42589c6515a0bfe9baae522f164d20fa.zip gdb-59d5613e42589c6515a0bfe9baae522f164d20fa.tar.gz gdb-59d5613e42589c6515a0bfe9baae522f164d20fa.tar.bz2 |
aarch64: Fix DSB instruction 'missing immediate expression' errors
This patch fixes errors with DSB instruction after introduction of DSB nXS
variant. That change would cause GAS to reject valid DSB immediate string
operands.
gas/ChangeLog:
2020-10-28 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
* config/tc-aarch64.c (parse_operands): Check for C0-C15 value of DSB
immediate string operand.
* testsuite/gas/aarch64/system-4.d: Update test.
* testsuite/gas/aarch64/system-4.s: Update test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/aarch64/system.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/system.s | 15 |
2 files changed, 29 insertions, 0 deletions
diff --git a/gas/testsuite/gas/aarch64/system.d b/gas/testsuite/gas/aarch64/system.d index c973584..ea6459f 100644 --- a/gas/testsuite/gas/aarch64/system.d +++ b/gas/testsuite/gas/aarch64/system.d @@ -193,6 +193,20 @@ Disassembly of section \.text: .*: d5033fdf isb .*: d503309f ssbb .*: d503349f pssbb +.*: d503319f dsb oshld +.*: d503329f dsb oshst +.*: d503339f dsb osh +.*: d503359f dsb nshld +.*: d503369f dsb nshst +.*: d503379f dsb nsh +.*: d503389f dsb #0x08 +.*: d503399f dsb ishld +.*: d5033a9f dsb ishst +.*: d5033b9f dsb ish +.*: d5033c9f dsb #0x0c +.*: d5033d9f dsb ld +.*: d5033e9f dsb st +.*: d5033f9f dsb sy .*: d8000000 prfm pldl1keep, 0 <LABEL1> .*: R_AARCH64_(P32_|)LD_PREL_LO19 LABEL1 .*: f8af6be0 prfm pldl1keep, \[sp, x15\] diff --git a/gas/testsuite/gas/aarch64/system.s b/gas/testsuite/gas/aarch64/system.s index 6f494f8..2cff6a2 100644 --- a/gas/testsuite/gas/aarch64/system.s +++ b/gas/testsuite/gas/aarch64/system.s @@ -48,6 +48,21 @@ ssbb pssbb + dsb oshld + dsb oshst + dsb osh + dsb nshld + dsb nshst + dsb nsh + dsb #0x08 + dsb ishld + dsb ishst + dsb ish + dsb #0x0c + dsb ld + dsb st + dsb sy + // // PREFETCHS // |