From patchwork Sun Dec 7 23:04:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleg Endo X-Patchwork-Id: 418529 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 564271400D2 for ; Mon, 8 Dec 2014 10:04:59 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:to:date:content-type:mime-version; q= dns; s=default; b=M5Bt8buJWmzrKgIM+6W6FIjXSgnbphE5DXJHNt3/7et9sM QXcXSTf7VJ0S34QWGsJivx4lRjuH4S6VB9fOJqH5rOAIrOlkkqdfELbhhiFbwyPI Wu1jziux0J3y2hh/1GfZfxJRVSaoflpIoVHSPEIgWOrPao3qK9nuic+AJkW2M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:to:date:content-type:mime-version; s= default; bh=VwO7YRHWfxzWjmnU6P+pbbiG8U8=; b=lf4xDNZzPV+gSyiBU8gK FxfjVD52CAqxkrWZAn3FYLo5Xd6VhB2n/YNKzoFyAvrjbAEAXlci4/32n3HcrWTa ulAeAv8r19su8bencttLLg6HO4YMUvYFr1fdFrw75TbEz/floVCbsjy0i2b4r0Px UiXCDL/33ebLfIPEMycc0Ng= Received: (qmail 9954 invoked by alias); 7 Dec 2014 23:04:50 -0000 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 Received: (qmail 9943 invoked by uid 89); 7 Dec 2014 23:04:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mailout01.t-online.de Received: from mailout01.t-online.de (HELO mailout01.t-online.de) (194.25.134.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 07 Dec 2014 23:04:48 +0000 Received: from fwd08.aul.t-online.de (fwd08.aul.t-online.de [172.20.26.151]) by mailout01.t-online.de (Postfix) with SMTP id EAB699BABE for ; Mon, 8 Dec 2014 00:04:43 +0100 (CET) Received: from [192.168.0.104] (rxE590ZfwhAGC6wm5mHLy-pQR6SyuZ3G6hlNEqCQApTHpFFFXMwZrK0rukk05uFZa6@[84.180.116.254]) by fwd08.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1XxksW-1WS1Wy0; Mon, 8 Dec 2014 00:04:36 +0100 Message-ID: <1417993473.19509.45.camel@yam-132-YW-E178-FTW> Subject: [SH][committed] Fix extendqihi2 expander on SH64 From: Oleg Endo To: gcc-patches Date: Mon, 08 Dec 2014 00:04:33 +0100 Mime-Version: 1.0 X-IsSubscribed: yes Hi, This fixes an SH64 problem which was introduced in r185534 and went unnoticed until recently. There, the extendqihi2 insn was converted to an expander and the TARGET_SH1 condition was wrongly omitted. Tested with 'make all-gcc' on sh-elf and sh64-elf. Committed on trunk as r218469, on 4.9 as r218470 and on 4.8 as r218471. Cheers, Oleg gcc/ChangeLog: PR target/50751 * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1. Index: gcc/config/sh/sh.md =================================================================== --- gcc/config/sh/sh.md (revision 218464) +++ gcc/config/sh/sh.md (working copy) @@ -6364,10 +6364,9 @@ }) (define_expand "extendqihi2" - [(set (match_operand:HI 0 "arith_reg_dest" "") - (sign_extend:HI (match_operand:QI 1 "arith_reg_operand" "")))] - "" - "") + [(set (match_operand:HI 0 "arith_reg_dest") + (sign_extend:HI (match_operand:QI 1 "arith_reg_operand")))] + "TARGET_SH1") (define_insn "*extendqihi2_compact_reg" [(set (match_operand:HI 0 "arith_reg_dest" "=r")