+2021-10-28 Markus Klein <markus.klein@sma.de>
+
+ PR 28436
+ * config/tc-arm.c (do_vfp_nsyn_push_pop_check): New function.
+ (do_vfp_nsyn_pop): Use the new function.
+ (do_vfp_nsyn_push): Use the new function.
+ * testsuite/gas/arm/v8_1m-mve.s: Add new instructions.
+ * testsuite/gas/arm/v8_1m-mve.d: Updated expected disassembly.
+
2021-09-27 Nick Alcock <nick.alcock@oracle.com>
* configure: Regenerate.
do_vfp_cond_or_thumb ();
}
+static void
+do_vfp_nsyn_push_pop_check (void)
+{
+ constraint (!ARM_CPU_HAS_FEATURE (cpu_variant, fpu_vfp_ext_v1xd), _(BAD_FPU));
+
+ if (inst.operands[1].issingle)
+ {
+ constraint (inst.operands[1].imm < 1 || inst.operands[1].imm > 32,
+ _("register list must contain at least 1 and at most 32 registers"));
+ }
+ else
+ {
+ constraint (inst.operands[1].imm < 1 || inst.operands[1].imm > 16,
+ _("register list must contain at least 1 and at most 16 registers"));
+ }
+}
+
static void
do_vfp_nsyn_pop (void)
{
nsyn_insert_sp ();
- if (ARM_CPU_HAS_FEATURE (cpu_variant, mve_ext)) {
- return do_vfp_nsyn_opcode ("vldm");
- }
- constraint (!ARM_CPU_HAS_FEATURE (cpu_variant, fpu_vfp_ext_v1xd),
- _(BAD_FPU));
+ if (ARM_CPU_HAS_FEATURE (cpu_variant, mve_ext))
+ return do_vfp_nsyn_opcode ("vldm");
- constraint (inst.operands[1].imm < 1 || inst.operands[1].imm > 16,
- _("register list must contain at least 1 and at most 16 "
- "registers"));
+ do_vfp_nsyn_push_pop_check ();
if (inst.operands[1].issingle)
do_vfp_nsyn_opcode ("fldmias");
do_vfp_nsyn_push (void)
{
nsyn_insert_sp ();
- if (ARM_CPU_HAS_FEATURE (cpu_variant, mve_ext)) {
- return do_vfp_nsyn_opcode ("vstmdb");
- }
- constraint (!ARM_CPU_HAS_FEATURE (cpu_variant, fpu_vfp_ext_v1xd),
- _(BAD_FPU));
+ if (ARM_CPU_HAS_FEATURE (cpu_variant, mve_ext))
+ return do_vfp_nsyn_opcode ("vstmdb");
- constraint (inst.operands[1].imm < 1 || inst.operands[1].imm > 16,
- _("register list must contain at least 1 and at most 16 "
- "registers"));
+ do_vfp_nsyn_push_pop_check ();
if (inst.operands[1].issingle)
do_vfp_nsyn_opcode ("fstmdbs");
do_vfp_nsyn_opcode ("fstmdbd");
}
-
static void
do_neon_ldr_str (void)
{
*[0-9a-f]+: ed91 fb00 vldr d15, \[r1\]
*[0-9a-f]+: edc1 fa00 vstr s31, \[r1\]
*[0-9a-f]+: edd1 fa00 vldr s31, \[r1\]
+ *[0-9a-f]+: ed2d 0a20 vpush {s0-s31}
+ *[0-9a-f]+: ed2d 0a10 vpush {s0-s15}
+ *[0-9a-f]+: ecbd 0a10 vpop {s0-s15}
+ *[0-9a-f]+: ecbd 0a20 vpop {s0-s31}