From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106443 invoked by alias); 21 Feb 2017 14:48:55 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 106256 invoked by uid 89); 21 Feb 2017 14:48:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.6 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: gcc1-power7.osuosl.org Received: from gcc1-power7.osuosl.org (HELO gcc1-power7.osuosl.org) (140.211.15.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 Feb 2017 14:48:51 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id D86E81C0751; Tue, 21 Feb 2017 14:48:50 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: Segher Boessenkool , hp@axis.com Subject: [PATCH 2/6] cris: Fix for RTL checking Date: Tue, 21 Feb 2017 14:48:00 -0000 Message-Id: In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg01293.txt.bz2 2017-02-21 Segher Boessenkool * config/cris/cris.md: Use correct operand in a define_peephole2. --- gcc/config/cris/cris.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/cris/cris.md b/gcc/config/cris/cris.md index 6ba3772..472aec7 100644 --- a/gcc/config/cris/cris.md +++ b/gcc/config/cris/cris.md @@ -5034,7 +5034,7 @@ (define_peephole2 ; andqu (casesi+46) [(set (match_dup 0) (match_dup 3)) (set (match_dup 0) (and:SI (match_dup 0) (match_dup 4)))] { - machine_mode zmode = INTVAL (operands[2]) <= 255 ? QImode : HImode; + machine_mode zmode = INTVAL (operands[1]) <= 255 ? QImode : HImode; rtx op1 = (REG_S_P (operands[2]) ? gen_rtx_REG (zmode, REGNO (operands[2])) -- 1.9.3