arm: Fix the wrong error message string for mve vldr/vstr (PR26763).
authorSrinath Parvathaneni <srinath.parvathaneni@arm.com>
Thu, 22 Oct 2020 12:24:34 +0000 (13:24 +0100)
committerSrinath Parvathaneni <srinath.parvathaneni@arm.com>
Thu, 22 Oct 2020 12:30:35 +0000 (13:30 +0100)
commit79248c83b9d08813ef3a533c21b194147c90582e
tree344e7c1f329405239c19ef45ade8b28aa1b8b3c1
parent9ef6c56ffc7e79cd5c276f8548b66ce70e524302
arm: Fix the wrong error message string for mve vldr/vstr (PR26763).

For mve vldr/vstr instructions assembler is throwing wrong error message.
Instead of 'Error: syntax error' assembler fails with 'Error: lo register required'.
This patch fixes the issue.

eg:
$ cat x.s
.syntax unified
.thumb

vldrb.s16 q0, r0

Before this patch:
$ arm-none-eabi-as x.s -march=armv8.1-m.main+mve -mfloat-abi=hard
x.s: Assembler messages:
x.s:4: Error: lo register required -- `vldrb.s16 q0,r0'

After this patch:
$ arm-none-eabi-as x.s -march=armv8.1-m.main+mve -mfloat-abi=hard
x.s: Assembler messages:
x.s:4: Error: syntax error -- `vldrb.s16 q0,r0'

gas/ChangeLog:

2020-10-21  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

PR target/26763
* config/tc-arm.c (parse_address_main): Add new MVE addressing mode
check.
* testsuite/gas/arm/mve-vldr-vstr-bad.d: New test.
* testsuite/gas/arm/mve-vldr-vstr-bad.l: Likewise.
* testsuite/gas/arm/mve-vldr-vstr-bad.s: Likewise.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/gas/arm/mve-vldr-vstr-bad.d [new file with mode: 0644]
gas/testsuite/gas/arm/mve-vldr-vstr-bad.l [new file with mode: 0644]
gas/testsuite/gas/arm/mve-vldr-vstr-bad.s [new file with mode: 0644]