PATCH [8/10] arm: add 'autg' instruction for Armv8.1-M pacbti extension
authorAndrea Corallo <andrea.corallo@arm.com>
Tue, 8 Jun 2021 13:22:12 +0000 (15:22 +0200)
committerAndrea Corallo <andrea.corallo@arm.com>
Mon, 26 Jul 2021 12:18:24 +0000 (14:18 +0200)
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'.

gas/config/tc-arm.c
gas/testsuite/gas/arm/armv8_1-m-pacbti.d
gas/testsuite/gas/arm/armv8_1-m-pacbti.s
opcodes/arm-dis.c

index 30ef199124903ceae445e3be510f25e544ea42fc..cd65b25601ec1c0c2a07bdee6c9efb61c98cf966 100644 (file)
@@ -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),
index 411454a5fd1b228a7dbe1e7a3034b8729f1531cd..6ddf218c9f9496459022ffb83bfb0d5db57f6d8d 100644 (file)
@@ -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
 #...
index 22da2cefb4e33629a714c2d42b38308c7eb15cb3..eccd5797ed7ff9b5c3bd5bca7f4313dd1955aeff 100644 (file)
@@ -7,3 +7,4 @@
        aut     r12, lr, sp
        pac     r12, lr, sp
        bxaut   r3, r4, r5
+       autg    r3, r4, r5
index 1d183605030f689c1469774e4037f201c559e8ec..d54cfa8fe84f933bc1328e0aa99c9dbbe78566dd 100644 (file)
@@ -4656,6 +4656,8 @@ static const struct opcode32 thumb32_opcodes[] =
      Identification Extension.  */
   {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN),
    0xf3af802d, 0xffffffff, "aut\tr12, lr, sp"},
+  {ARM_FEATURE_CORE_HIGH_HIGH (ARM_EXT3_PACBTI),
+   0xfb500f00, 0xfff00ff0, "autg%c\t%12-15r, %16-19r, %0-3r"},
   {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN),
    0xf3af800f, 0xffffffff, "bti"},
   {ARM_FEATURE_CORE_HIGH_HIGH (ARM_EXT3_PACBTI),