diff options
author | Przemyslaw Wirkus <przemyslaw.wirkus@arm.com> | 2020-10-30 10:27:24 +0000 |
---|---|---|
committer | Przemyslaw Wirkus <przemyslaw.wirkus@arm.com> | 2020-10-30 10:31:38 +0000 |
commit | a984d94aab7279416021ad320af22093f3e26d48 (patch) | |
tree | 1fcdeb77a3fd8b6a9381b5c48dc8792c7eaf79dc /gas | |
parent | b78b3a297b981e2c8492823e2c54436e2451c2fa (diff) | |
download | gdb-a984d94aab7279416021ad320af22093f3e26d48.zip gdb-a984d94aab7279416021ad320af22093f3e26d48.tar.gz gdb-a984d94aab7279416021ad320af22093f3e26d48.tar.bz2 |
[PATCH][GAS] aarch64: Add WFIT instruction for Armv8.7-a
This patch adds new to Armv8.7 WFIT instruction which take one operand:
WFIT <Xt>
Where:
<Xt> is 64-bit name of the general-purpose source register, encoded in the
"Rd" field.
For more details regarding WFIT (Wait For Interrupt with Timeout) instruction for
Armv8.7-a please refer to Arm A64 Instruction set documentation for Armv8-A
architecture profile, see document pages 570 of [0].
[0]: https://developer.arm.com/docs/ddi0596/i
gas/ChangeLog:
2020-10-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
* NEWS: Update docs.
* testsuite/gas/aarch64/system-5.d: Update test with WFIT insn.
* testsuite/gas/aarch64/system-5.s: Update test with WFIT insn.
opcodes/ChangeLog:
2020-10-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
* aarch64-tbl.h (struct aarch64_opcode): New instruction WFIT.
* aarch64-asm-2.c: Regenerated.
* aarch64-dis-2.c: Regenerated.
* aarch64-opc-2.c: Regenerated.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/NEWS | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/system-5.d | 33 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/system-5.s | 34 |
3 files changed, 67 insertions, 2 deletions
@@ -21,7 +21,7 @@ * Add support for Armv8-R and Armv8.7-A AArch64. -* Add support for DSB memory nXS barrier and WFET instruction for Armv8.7 +* Add support for DSB memory nXS barrier, WFET and WFIT instruction for Armv8.7 AArch64. * Add support for +csre feature for -march. Add CSR PDEC instruction for CSRE diff --git a/gas/testsuite/gas/aarch64/system-5.d b/gas/testsuite/gas/aarch64/system-5.d index 22fd611..935e843 100644 --- a/gas/testsuite/gas/aarch64/system-5.d +++ b/gas/testsuite/gas/aarch64/system-5.d @@ -1,4 +1,4 @@ -#name: WFET (Wait For Event with Timeout) instruction +#name: WFET and WFIT instructions #objdump: -dr .*: file format .* @@ -37,3 +37,34 @@ Disassembly of section \.text: .*: d503101c wfet x28 .*: d503101d wfet x29 .*: d503101e wfet x30 +.*: d5031020 wfit x0 +.*: d5031021 wfit x1 +.*: d5031022 wfit x2 +.*: d5031023 wfit x3 +.*: d5031024 wfit x4 +.*: d5031025 wfit x5 +.*: d5031026 wfit x6 +.*: d5031027 wfit x7 +.*: d5031028 wfit x8 +.*: d5031029 wfit x9 +.*: d503102a wfit x10 +.*: d503102b wfit x11 +.*: d503102c wfit x12 +.*: d503102d wfit x13 +.*: d503102e wfit x14 +.*: d503102f wfit x15 +.*: d5031030 wfit x16 +.*: d5031031 wfit x17 +.*: d5031032 wfit x18 +.*: d5031033 wfit x19 +.*: d5031034 wfit x20 +.*: d5031035 wfit x21 +.*: d5031036 wfit x22 +.*: d5031037 wfit x23 +.*: d5031038 wfit x24 +.*: d5031039 wfit x25 +.*: d503103a wfit x26 +.*: d503103b wfit x27 +.*: d503103c wfit x28 +.*: d503103d wfit x29 +.*: d503103e wfit x30 diff --git a/gas/testsuite/gas/aarch64/system-5.s b/gas/testsuite/gas/aarch64/system-5.s index 6a518ce..ec2c58c 100644 --- a/gas/testsuite/gas/aarch64/system-5.s +++ b/gas/testsuite/gas/aarch64/system-5.s @@ -32,3 +32,37 @@ wfet x28 wfet x29 wfet x30 + +/* Wait For Interrupt with Timeout. */ + + wfit x0 + wfit x1 + wfit x2 + wfit x3 + wfit x4 + wfit x5 + wfit x6 + wfit x7 + wfit x8 + wfit x9 + wfit x10 + wfit x11 + wfit x12 + wfit x13 + wfit x14 + wfit x15 + wfit x16 + wfit x17 + wfit x18 + wfit x19 + wfit x20 + wfit x21 + wfit x22 + wfit x23 + wfit x24 + wfit x25 + wfit x26 + wfit x27 + wfit x28 + wfit x29 + wfit x30 |