From 61309563159122065b2aee03ded7abbaea7933e3 Mon Sep 17 00:00:00 2001 From: bernds Date: Thu, 8 Sep 2011 16:29:17 +0000 Subject: [PATCH] * config/arm/arm.md (push_multi): Emit predicates. (push_fp_multi): Likewise. * config/arm/arm.c (vfp_output_fstmd): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178700 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/arm/arm.c | 2 +- gcc/config/arm/arm.md | 8 +++++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9c6b1ee..349c15c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-09-08 Bernd Schmidt + + * config/arm/arm.md (push_multi): Emit predicates. + (push_fp_multi): Likewise. + * config/arm/arm.c (vfp_output_fstmd): Likewise. + 2011-09-08 Dodji Seketeli PR c++/33255 - Support -Wunused-local-typedefs warning diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 6311612..aaee3f4 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -13084,7 +13084,7 @@ vfp_output_fstmd (rtx * operands) int base; int i; - strcpy (pattern, "fstmfdd\t%m0!, {%P1"); + strcpy (pattern, "fstmfdd%?\t%m0!, {%P1"); p = strlen (pattern); gcc_assert (GET_CODE (operands[1]) == REG); diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index 40341bd..43c7608 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -10581,14 +10581,16 @@ In Thumb mode always use push, and the assembler will pick something appropriate. */ if (num_saves == 1 && TARGET_ARM) - output_asm_insn (\"str\\t%1, [%m0, #-4]!\", operands); + output_asm_insn (\"str%?\\t%1, [%m0, #-4]!\", operands); else { int i; char pattern[100]; if (TARGET_ARM) - strcpy (pattern, \"stmfd\\t%m0!, {%1\"); + strcpy (pattern, \"stm%(fd%)\\t%m0!, {%1\"); + else if (TARGET_THUMB2) + strcpy (pattern, \"push%?\\t{%1\"); else strcpy (pattern, \"push\\t{%1\"); @@ -10631,7 +10633,7 @@ { char pattern[100]; - sprintf (pattern, \"sfmfd\\t%%1, %d, [%%m0]!\", XVECLEN (operands[2], 0)); + sprintf (pattern, \"sfm%(fd%)\\t%%1, %d, [%%m0]!\", XVECLEN (operands[2], 0)); output_asm_insn (pattern, operands); return \"\"; }" -- 2.7.4