diff mbox

[SH] Use braced strings in MD

Message ID 1333806555.19154.86.camel@yam-132-YW-E178-FTW
State New
Headers show

Commit Message

Oleg Endo April 7, 2012, 1:49 p.m. UTC
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.

Comments

Kaz Kojima April 7, 2012, 11:01 p.m. UTC | #1
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
diff mbox

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")])