From patchwork Mon Oct 10 10:51:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 680354 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 3ssxl80LRSz9ryk for ; Mon, 10 Oct 2016 21:51:45 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=gZPCDppa; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:cc:date:message-id:mime-version:content-type; q=dns; s=default; b=tivOJW0mGFHEFsrzBSUFE7HG2Cmgr8TN2wwJ/R5Py+vfUy4Df9 sIKPbodv9nH9xl0X/vOTtJHwaJBI5iXjObrL/4yGyZAkraQhU702wU/drhR1s6zb zcnxAzb8homIm1qNzIj+h3r5EH5LFUPWxy6p4M5xpBKIWFcngDOwWQ/7k= 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:from :to:subject:cc:date:message-id:mime-version:content-type; s= default; bh=ht+iPU4yKwQXqTB6pghdEuDxGS8=; b=gZPCDppaQMbgK5YeY7O3 22ZNPOpyZ21dMHHjV1GwmSiBqPb9ylnEvJYBM5Bq8l68gO0Fl9YZZSIwhnglB1XK CD+3RiopwuW5I4R5mM/MMKANHAIadzrzL7zCAbjcqArQhkVayAYVLKkXEuDtmGOg wbOxytOybMWJOhsSHbz/XCU= Received: (qmail 1966 invoked by alias); 10 Oct 2016 10:51:37 -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 1954 invoked by uid 89); 10 Oct 2016 10:51:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=DONE, Reject X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 10 Oct 2016 10:51:26 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 83FF6AAC7; Mon, 10 Oct 2016 10:51:24 +0000 (UTC) From: Andreas Schwab To: gcc-patches@gcc.gnu.org Subject: Fix invalid doloop setup on ia64 (PR target/77738) CC: Jim Wilson X-Yow: Life is a POPULARITY CONTEST! I'm REFRESHINGLY CANDID!! Date: Mon, 10 Oct 2016 12:51:24 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 On ia64 the doloop pattern can only work with DImode, so it should reject any other mode. Bootstrapped and regtested on ia64-suse-linux. Andreas. PR target/77738 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop pseudo is not DImode. --- gcc/config/ia64/ia64.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/ia64/ia64.md b/gcc/config/ia64/ia64.md index 7bc21fd8ca..afde75aa74 100644 --- a/gcc/config/ia64/ia64.md +++ b/gcc/config/ia64/ia64.md @@ -3959,6 +3959,9 @@ (use (match_operand 1 "" ""))] ; label "" { + if (GET_MODE (operands[0]) != DImode) + FAIL; + emit_jump_insn (gen_doloop_end_internal (gen_rtx_REG (DImode, AR_LC_REGNUM), operands[1])); DONE;