[PATCH 3/3] arm: Fix disassembly of MVE vq[r]shr[u]n

Alex Coplan alex.coplan@arm.com
Wed Apr 3 10:53:49 GMT 2024


This patch fixes the disassembly of vq[r]shr[u]n insns so that the
shift immediate is properly decoded.  See the description of the
previous patch for an example of the incorrect disassembly.

As part of this patch we also fix the mve-vqrshrn.d test which was
testing for the incorrect disassembly of the immediates.  The
disassembly now matches the assembled instructions in that test.

Finally we add an mve-vqshrn test which tests the non-rounding variants
of those insns, whose encoding we fixed with the previous patch in this
series.
---
 gas/testsuite/gas/arm/mve-vqrshrn.d | 3616 +++++++++++++--------------
 gas/testsuite/gas/arm/mve-vqshrn.d  |   27 +
 gas/testsuite/gas/arm/mve-vqshrn.s  |   40 +
 opcodes/arm-dis.c                   |    4 +
 4 files changed, 1879 insertions(+), 1808 deletions(-)
 create mode 100644 gas/testsuite/gas/arm/mve-vqshrn.d
 create mode 100644 gas/testsuite/gas/arm/mve-vqshrn.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-arm-Fix-disassembly-of-MVE-vq-r-shr-u-n.patch
Type: text/x-patch
Size: 173482 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20240403/2c3bca10/attachment-0001.bin>


More information about the Binutils mailing list