public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* ARM: Emit conditions in push_multi
@ 2011-09-01 11:53 Bernd Schmidt
  2011-09-02 10:35 ` Ramana Radhakrishnan
  0 siblings, 1 reply; 7+ messages in thread
From: Bernd Schmidt @ 2011-09-01 11:53 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

Shrink-wrapping tests on ARM had one additional failure, which I could
track down to a stmfd instruction being emitted where an stmhifd was
intended. The following patch fixes the testcase; full tests running
now. Ok?


Bernd

[-- Attachment #2: stmcond.diff --]
[-- Type: text/plain, Size: 771 bytes --]

	* config/arm/arm.md (push_multi): Emit predicates.

Index: gcc/config/arm/arm.md
===================================================================
--- gcc/config/arm/arm.md	(revision 178135)
+++ gcc/config/arm/arm.md	(working copy)
@@ -10581,14 +10581,14 @@ (define_insn "*push_multi"
        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
 	    strcpy (pattern, \"push\\t{%1\");
 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-09-12  9:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-01 11:53 ARM: Emit conditions in push_multi Bernd Schmidt
2011-09-02 10:35 ` Ramana Radhakrishnan
2011-09-02 11:44   ` Bernd Schmidt
2011-09-07  9:12     ` Ramana Radhakrishnan
2011-09-07 19:36       ` Bernd Schmidt
2011-09-08  8:20         ` Ramana Radhakrishnan
2011-09-12 11:41         ` Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).