diff options
author | Andrea Corallo <andrea.corallo@arm.com> | 2021-06-08 15:22:12 +0200 |
---|---|---|
committer | Andrea Corallo <andrea.corallo@arm.com> | 2021-07-26 14:18:24 +0200 |
commit | be05908c0c043bac81134da8beb3415996ae2416 (patch) | |
tree | 05dafaa921a177a2cb5c9ea30841c11d3c49477a /gas | |
parent | e07352fa4fb419b44979da21c635e4d79f7773c7 (diff) | |
download | gdb-be05908c0c043bac81134da8beb3415996ae2416.zip gdb-be05908c0c043bac81134da8beb3415996ae2416.tar.gz gdb-be05908c0c043bac81134da8beb3415996ae2416.tar.bz2 |
PATCH [8/10] arm: add 'autg' instruction for Armv8.1-M pacbti extension
gas/
2021-06-11 Andrea Corallo <andrea.corallo@arm.com>
* config/tc-arm.c (T16_32_TAB): Add '_autg'.
(insns): Define 'autg' insn.
* testsuite/gas/arm/armv8_1-m-pacbti.d: Add autg test.
* testsuite/gas/arm/armv8_1-m-pacbti.s: Likewise.
opcodes/
2021-06-11 Andrea Corallo <andrea.corallo@arm.com>
* arm-dis.c (thumb32_opcodes): Add 'autg'.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-arm.c | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/armv8_1-m-pacbti.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/armv8_1-m-pacbti.s | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 30ef199..cd65b25 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -11454,6 +11454,7 @@ encode_thumb32_addr_mode (int i, bool is_t, bool is_d) X(_asr, 1000, fa40f000), \ X(_asrs, 1000, fa50f000), \ X(_aut, 0000, f3af802d), \ + X(_autg, 0000, fb500f00), \ X(_b, e000, f000b000), \ X(_bcond, d000, f0008000), \ X(_bf, 0000, f040e001), \ @@ -26345,6 +26346,7 @@ static const struct asm_opcode insns[] = #undef THUMB_VARIANT #define THUMB_VARIANT & arm_ext_v8_1m_main toU("aut", _aut, 3, (R12, LR, SP), t_pacbti), + toU("autg", _autg, 3, (RR, RR, RR), t_pacbti_nonop), ToU("bti", f3af800f, 0, (), noargs), toU("bxaut", _bxaut, 3, (RR, RR, RR), t_pacbti_nonop), toU("pac", _pac, 3, (R12, LR, SP), t_pacbti), diff --git a/gas/testsuite/gas/arm/armv8_1-m-pacbti.d b/gas/testsuite/gas/arm/armv8_1-m-pacbti.d index 411454a..6ddf218 100644 --- a/gas/testsuite/gas/arm/armv8_1-m-pacbti.d +++ b/gas/testsuite/gas/arm/armv8_1-m-pacbti.d @@ -11,4 +11,5 @@ Disassembly of section .text: 0[0-9a-f]+ <[^>]+> f3af 802d aut r12, lr, sp 0[0-9a-f]+ <[^>]+> f3af 801d pac r12, lr, sp 0[0-9a-f]+ <[^>]+> fb54 3f15 bxaut r3, r4, r5 +0[0-9a-f]+ <[^>]+> fb54 3f05 autg r3, r4, r5 #... diff --git a/gas/testsuite/gas/arm/armv8_1-m-pacbti.s b/gas/testsuite/gas/arm/armv8_1-m-pacbti.s index 22da2ce..eccd579 100644 --- a/gas/testsuite/gas/arm/armv8_1-m-pacbti.s +++ b/gas/testsuite/gas/arm/armv8_1-m-pacbti.s @@ -7,3 +7,4 @@ aut r12, lr, sp pac r12, lr, sp bxaut r3, r4, r5 + autg r3, r4, r5 |