This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[SH] Use braced strings in MD
- From: Oleg Endo <oleg dot endo at t-online dot de>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 07 Apr 2012 15:49:15 +0200
- Subject: [SH] Use braced strings in MD
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.
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")])