From patchwork Sat Apr 7 13:49:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleg Endo X-Patchwork-Id: 151302 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 84C28B70CE for ; Sat, 7 Apr 2012 23:49:58 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1334411399; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Subject:From:To:Content-Type:Date:Message-ID:Mime-Version: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=3GEhhpjSaXpmmtE2b941 OtSKxIo=; b=BMEpQp9WtFV1PEQ7Q1wV2Yl/TNxcEOxxU10zInGi8jLJ4hUQCTKD lOjs8r/QyhaG6WBO1G936iujDIoqqZ7dCR2XPkJRHWIYrHFTS2WAbdOZOdOGyFRK ppsrT6vzm0KRSiMtDmbv8Rz4NNAZ+Kby0ais7Lg3/pDNDefxZbzdWj8= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Subject:From:To:Content-Type:Date:Message-ID:Mime-Version:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=XCmZ8TpEh1gGnBoAy5hEQ9z8FB9D2v3qxMbNlLSCeP9UTt9fsyS2BcjZ3ca3Ig 5EYx12MTvKIJ6flO0wOY8mV4CZ0vTH/ZFr8Fl+XNfLMBBpCHESKj6Ag3mdhBabk6 2QzmkuLn/X64KZ/0XhSZ6Li8ZEGscBUBPYNQ2y5MxN93A=; Received: (qmail 12414 invoked by alias); 7 Apr 2012 13:49:52 -0000 Received: (qmail 12406 invoked by uid 22791); 7 Apr 2012 13:49:50 -0000 X-SWARE-Spam-Status: No, hits=0.6 required=5.0 tests=AWL, BAYES_00, MEDICAL_SUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_NO, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from mailout05.t-online.de (HELO mailout05.t-online.de) (194.25.134.82) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 07 Apr 2012 13:49:36 +0000 Received: from fwd03.aul.t-online.de (fwd03.aul.t-online.de ) by mailout05.t-online.de with smtp id 1SGW1G-0007Y5-Li; Sat, 07 Apr 2012 15:49:34 +0200 Received: from [192.168.0.104] (GW28o8ZLrhcdp6rH07wvUUAMPHzzq11u7ROQV3ctTZz24gHMu8fAtwp8x+XQWQUQzZ@[87.157.46.153]) by fwd03.t-online.de with esmtp id 1SGW16-0KdDW40; Sat, 7 Apr 2012 15:49:24 +0200 Subject: [SH] Use braced strings in MD From: Oleg Endo To: gcc-patches Date: Sat, 07 Apr 2012 15:49:15 +0200 Message-ID: <1333806555.19154.86.camel@yam-132-YW-E178-FTW> Mime-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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")])