* config/arm/arm.md (push_multi): Emit predicates.
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Sep 2011 16:29:17 +0000 (16:29 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Sep 2011 16:29:17 +0000 (16:29 +0000)
(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
gcc/config/arm/arm.c
gcc/config/arm/arm.md

index 9c6b1ee..349c15c 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        PR c++/33255 - Support -Wunused-local-typedefs warning
index 6311612..aaee3f4 100644 (file)
@@ -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);
index 40341bd..43c7608 100644 (file)
        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\");
 
   {
     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 \"\";
   }"