]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
morello: Fix encoding of ldtr/sttr
authorAlex Coplan <alex.coplan@arm.com>
Fri, 24 Sep 2021 10:50:40 +0000 (11:50 +0100)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 1 Sep 2022 22:59:24 +0000 (15:59 -0700)
commitfe51282b058b462f57e3982418ca8909a509157c
treeea92ba173888381fe00c678ce5a51c9f6fcfa070
parent81c4eb38b2f87ab648f536b0d565e8c90286f611
morello: Fix encoding of ldtr/sttr

This patch fixes the encoding of the immediate in the A64C ldtr/sttr
instructions. Prior to this patch, GAS would accept immediates for these
instructions that were not multiples of 16, and would not scale the
immediate by 16.

gas/ChangeLog:

2021-09-24  Alex Coplan  <alex.coplan@arm.com>

* testsuite/gas/aarch64/morello_ldst-c64.d: Update following
test + encoding change.
* testsuite/gas/aarch64/morello_ldst-invalid.d: New test.
* testsuite/gas/aarch64/morello_ldst-invalid.l: New test.
* testsuite/gas/aarch64/morello_ldst-invalid.s: New test.
* testsuite/gas/aarch64/morello_ldst.d: Update following
test + encoding change.
* testsuite/gas/aarch64/morello_ldst.s: Update to use valid
immediates for ldtr/sttr instructions.

opcodes/ChangeLog:

2021-09-24  Alex Coplan  <alex.coplan@arm.com>

* aarch64-tbl.h (aarch64_opcode_table): Update A64C_INSNs
ldtr/sttr to take A64C_ADDR_SIMM9 instead of ADDR_SIMM9
operands.
gas/ChangeLog
gas/testsuite/gas/aarch64/morello_ldst-c64.d
gas/testsuite/gas/aarch64/morello_ldst-invalid.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/morello_ldst-invalid.l [new file with mode: 0644]
gas/testsuite/gas/aarch64/morello_ldst-invalid.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/morello_ldst.d
gas/testsuite/gas/aarch64/morello_ldst.s
opcodes/ChangeLog
opcodes/aarch64-tbl.h