+2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
+ mnemonic instead of fldmfdd.
+ * config/arm/arm.c (vfp_output_fstmd): Rename to...
+ (vfp_output_vstmd): ... This. Convert output to UAL syntax.
+ Output vpush when address register is SP.
+ * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
+ (vfp_output_vstmd): ... This.
+ * config/arm/vfp.md (push_multi_vfp): Update call to
+ vfp_output_vstmd.
+
2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
extern int arm_emit_vector_const (FILE *, rtx);
extern void arm_emit_fp16_const (rtx c);
extern const char * arm_output_load_gr (rtx *);
-extern const char *vfp_output_fstmd (rtx *);
+extern const char *vfp_output_vstmd (rtx *);
extern void arm_output_multireg_pop (rtx *, bool, rtx, bool, bool);
extern void arm_set_return_address (rtx, rtx);
extern int arm_eliminable_register (rtx);
/* Output the assembly for a store multiple. */
const char *
-vfp_output_fstmd (rtx * operands)
+vfp_output_vstmd (rtx * operands)
{
char pattern[100];
int p;
int base;
int i;
+ rtx addr_reg = REG_P (XEXP (operands[0], 0))
+ ? XEXP (operands[0], 0)
+ : XEXP (XEXP (operands[0], 0), 0);
+ bool push_p = REGNO (addr_reg) == SP_REGNUM;
+
+ if (push_p)
+ strcpy (pattern, "vpush%?.64\t{%P1");
+ else
+ strcpy (pattern, "vstmdb%?.64\t%m0!, {%P1");
- strcpy (pattern, "fstmfdd%?\t%m0!, {%P1");
p = strlen (pattern);
gcc_assert (REG_P (operands[1]));
int num_regs = XVECLEN (operands[0], 0);
char pattern[100];
rtx op_list[2];
- strcpy (pattern, \"fldmfdd\\t\");
+ strcpy (pattern, \"vldm\\t\");
strcat (pattern, reg_names[REGNO (SET_DEST (XVECEXP (operands[0], 0, 0)))]);
strcat (pattern, \"!, {\");
op_list[0] = XEXP (XVECEXP (operands[0], 0, 1), 0);
(unspec:BLK [(match_operand:DF 1 "vfp_register_operand" "")]
UNSPEC_PUSH_MULT))])]
"TARGET_32BIT && TARGET_HARD_FLOAT && TARGET_VFP"
- "* return vfp_output_fstmd (operands);"
+ "* return vfp_output_vstmd (operands);"
[(set_attr "type" "f_stored")]
)