From patchwork Sun Sep 2 13:13:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleg Endo X-Patchwork-Id: 181180 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 30CAA2C008C for ; Sun, 2 Sep 2012 23:14:28 +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=1347196469; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Message-ID:Subject:From:To:Date:Content-Type:Mime-Version: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=yPaZbN+GyGr3W2KI4/hz oAJC4GM=; b=EgBDCZi7kGtIiNbF/wHI4HgG07l6+4Py7fey/QQoCe/sgkepTDWI 8U3dnhjMXBP4sPk9X+2USs8u9oODaXI2dsrRktdqoa9FzCJXaSm8GmnizFmzVerU xJiMfhVf2FdhxmJNmOdTFOIhTyj3cyLIMBC9fb5qSP0BXCchIAsE7R4= 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:Message-ID:Subject:From:To:Date:Content-Type:Mime-Version:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=oY7TNNKYm7REWqprasMi5+b41MceWbK6YLh5CXefLa9f6tZFmd3JkeyzzXjDV0 BvO3K3bhzt6CNzQE4L1u+GR8WLUixbIWwIzsfwyrStD7re5YfIhZAcUi3lztHbn/ T2yTYdqm17ZxwwbfRK/kGwHT+3McNZowpYtYaYPWHeJNQ=; Received: (qmail 7939 invoked by alias); 2 Sep 2012 13:14:23 -0000 Received: (qmail 7931 invoked by uid 22791); 2 Sep 2012 13:14:22 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_NO, RP_MATCHES_RCVD, UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from mailout08.t-online.de (HELO mailout08.t-online.de) (194.25.134.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 02 Sep 2012 13:14:08 +0000 Received: from fwd03.aul.t-online.de (fwd03.aul.t-online.de ) by mailout08.t-online.de with smtp id 1T8A06-0002yC-8Z; Sun, 02 Sep 2012 15:14:06 +0200 Received: from [192.168.0.100] (bHcnoiZrgh1RFz5kCnyCmHKvY1xjdClWWn+QyPXQv0w7qken5Gbw3t++QoVqmgLZah@[87.157.54.121]) by fwd03.t-online.de with esmtp id 1T89zz-0evGGe0; Sun, 2 Sep 2012 15:13:59 +0200 Message-ID: <1346591634.2200.39.camel@yam-132-YW-E178-FTW> Subject: [SH, committed] Fix iterators conversion oversight From: Oleg Endo To: gcc-patches Date: Sun, 02 Sep 2012 15:13:54 +0200 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 Hello, My last change that converted some of the SH patterns to use iterators introduced a problem on SH2A, where I missed to pass 'mode' instead of 'QImode' in one of the patterns. Committed as obvious. Cheers, Oleg ChangeLog: * config/sh/sh.md (*extendsi2_compact_mem_disp): Pass iterated mode to sh_legitimate_index_p instead of QImode. Index: gcc/config/sh/sh.md =================================================================== --- gcc/config/sh/sh.md (revision 190840) +++ gcc/config/sh/sh.md (working copy) @@ -5576,7 +5576,7 @@ (plus:SI (match_operand:SI 1 "arith_reg_operand" "%r,r,r") (match_operand:SI 2 "const_int_operand" ",N,")))))] - "TARGET_SH2A && sh_legitimate_index_p (QImode, operands[2], true, true)" + "TARGET_SH2A && sh_legitimate_index_p (mode, operands[2], true, true)" "@ mov. @(%O2,%1),%0 mov. @%1,%0