Patchwork [SH] Use braced strings in MD

login
register
mail settings
Submitter Oleg Endo
Date April 7, 2012, 1:49 p.m.
Message ID <1333806555.19154.86.camel@yam-132-YW-E178-FTW>
Download mbox | patch
Permalink /patch/151302/
State New
Headers show

Comments

Oleg Endo - April 7, 2012, 1:49 p.m.
Hi,

In my original patch 
http://gcc.gnu.org/ml/gcc-patches/2012-03/msg01315.html
I forgot two cases, which are addressed by the attached patch.
Tested with 'make all-gcc'.
OK?

Cheers,
Oleg

ChangeLog:

	* config/sh/sh.md: Use braced string notation where applicable.
Kaz Kojima - April 7, 2012, 11:01 p.m.
Oleg Endo <oleg.endo@t-online.de> wrote:
> In my original patch 
> http://gcc.gnu.org/ml/gcc-patches/2012-03/msg01315.html
> I forgot two cases, which are addressed by the attached patch.
> Tested with 'make all-gcc'.
> OK?

OK.

Regards,
	kaz

Patch

Index: gcc/config/sh/sh.md
===================================================================
--- gcc/config/sh/sh.md	(revision 186212)
+++ gcc/config/sh/sh.md	(working copy)
@@ -909,8 +909,10 @@ 
 		       (match_operand:DI 1 "arith_operand" "r"))
 	       (const_int 0)))]
   "TARGET_SH1"
-  "* return output_branchy_insn (EQ, \"tst\\t%S1,%S0\;bf\\t%l9\;tst\\t%R1,%R0\",
-				 insn, operands);"
+{
+  return output_branchy_insn (EQ, "tst\t%S1,%S0;bf\t%l9;tst\t%R1,%R0",
+			      insn, operands);
+}
   [(set_attr "length" "6")
    (set_attr "type" "arith3b")])
 
@@ -5638,7 +5640,9 @@ 
   "TARGET_SH1
    && (arith_reg_operand (operands[0], DImode)
        || arith_reg_operand (operands[1], DImode))"
-  "* return output_movedouble (insn, operands, DImode);"
+{
+  return output_movedouble (insn, operands, DImode);
+}
   [(set_attr "length" "4")
    (set_attr "type" "pcload,move,load,store,move,pcload,move,move")])