Commit bd2777de by Bernd Schmidt Committed by Bernd Schmidt

arm.md (push_multi): Emit predicates.

	* config/arm/arm.md (push_multi): Emit predicates.
	(push_fp_multi): Likewise.
	* config/arm/arm.c (vfp_output_fstmd): Likewise.

From-SVN: r178700
parent e97b61c2
2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
* 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 <dodji@redhat.com> 2011-09-08 Dodji Seketeli <dodji@redhat.com>
PR c++/33255 - Support -Wunused-local-typedefs warning PR c++/33255 - Support -Wunused-local-typedefs warning
...@@ -13084,7 +13084,7 @@ vfp_output_fstmd (rtx * operands) ...@@ -13084,7 +13084,7 @@ vfp_output_fstmd (rtx * operands)
int base; int base;
int i; int i;
strcpy (pattern, "fstmfdd\t%m0!, {%P1"); strcpy (pattern, "fstmfdd%?\t%m0!, {%P1");
p = strlen (pattern); p = strlen (pattern);
gcc_assert (GET_CODE (operands[1]) == REG); gcc_assert (GET_CODE (operands[1]) == REG);
......
...@@ -10581,14 +10581,16 @@ ...@@ -10581,14 +10581,16 @@
In Thumb mode always use push, and the assembler will pick In Thumb mode always use push, and the assembler will pick
something appropriate. */ something appropriate. */
if (num_saves == 1 && TARGET_ARM) 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 else
{ {
int i; int i;
char pattern[100]; char pattern[100];
if (TARGET_ARM) 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 else
strcpy (pattern, \"push\\t{%1\"); strcpy (pattern, \"push\\t{%1\");
...@@ -10631,7 +10633,7 @@ ...@@ -10631,7 +10633,7 @@
{ {
char pattern[100]; 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); output_asm_insn (pattern, operands);
return \"\"; return \"\";
}" }"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment