From patchwork Tue May 7 10:35:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hurugalawadi, Naveen" X-Patchwork-Id: 242170 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id B3F7F2C0117 for ; Tue, 7 May 2013 20:44:56 +1000 (EST) 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:date:message-id:content-type:mime-version; q=dns; s= default; b=xMBVd+inut+lbuSC0Oa3oJ5YIWHcUgKmrKfrquWZTAwqdLWybFmMP fwEkdIjasTp1x8+lvpy2OF+au06zpL9RfaRJlkHdtrKnQKQC6v0ue74nmiDPVxVa SEuXcBpAXdiEiKLRW+/xAaZLvp/hN9fbktX+zUXyNoRwju9dh88iZY= 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:date:message-id:content-type:mime-version; s= default; bh=0/gTTZtq2/xeaP4U0f4trkcxMdU=; b=Norp+epFeACBOyBJXOdf QQ14lopqSVA2tEEgbt2Ul7jkMkXZEQ5fqP1PDfa1eyUdeHODMggDLaHf+jAPUJeA 9PCb1r3i3k1s3pjLZzkftPZ7uFKYhFFwt8Zh2gWTyTKj5zX2CoBrRSRB2mUm0QAR TURHS8Q7HXxwKTXKrv/u0UA= Received: (qmail 26638 invoked by alias); 7 May 2013 10:36:11 -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 26612 invoked by uid 89); 7 May 2013 10:36:08 -0000 X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from ch1ehsobe003.messaging.microsoft.com (HELO ch1outboundpool.messaging.microsoft.com) (216.32.181.183) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 07 May 2013 10:35:41 +0000 Received: from mail139-ch1-R.bigfish.com (10.43.68.229) by CH1EHSOBE004.bigfish.com (10.43.70.54) with Microsoft SMTP Server id 14.1.225.23; Tue, 7 May 2013 10:35:38 +0000 Received: from mail139-ch1 (localhost [127.0.0.1]) by mail139-ch1-R.bigfish.com (Postfix) with ESMTP id F0FA018013F for ; Tue, 7 May 2013 10:35:37 +0000 (UTC) X-Forefront-Antispam-Report: CIP:157.56.240.133; KIP:(null); UIP:(null); IPV:NLI; H:BL2PRD0710HT003.namprd07.prod.outlook.com; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: PS0(zz936eIc85fh4015Izz1f42h1fc6h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ahzz8275bhz2dh2a8h668h839hd24hf0ah1288h12a5h12bdh137ah1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1bceh1d07h1d0ch1d2eh1d3fh9a9j34h1155h) X-Forefront-Antispam-Report-Untrusted: SFV:SKI; SFS:; DIR:OUT; SFP:; SCL:-1; SRVR:SN2PR07MB032; H:SN2PR07MB029.namprd07.prod.outlook.com; LANG:en; Received: from mail139-ch1 (localhost.localdomain [127.0.0.1]) by mail139-ch1 (MessageSwitch) id 1367922935141067_4031; Tue, 7 May 2013 10:35:35 +0000 (UTC) Received: from CH1EHSMHS018.bigfish.com (snatpool3.int.messaging.microsoft.com [10.43.68.228]) by mail139-ch1.bigfish.com (Postfix) with ESMTP id 16D0B400065 for ; Tue, 7 May 2013 10:35:35 +0000 (UTC) Received: from BL2PRD0710HT003.namprd07.prod.outlook.com (157.56.240.133) by CH1EHSMHS018.bigfish.com (10.43.70.18) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 7 May 2013 10:35:33 +0000 Received: from SN2PR07MB032.namprd07.prod.outlook.com (10.255.174.42) by BL2PRD0710HT003.namprd07.prod.outlook.com (10.255.102.38) with Microsoft SMTP Server (TLS) id 14.16.305.3; Tue, 7 May 2013 10:35:33 +0000 Received: from SN2PR07MB029.namprd07.prod.outlook.com (10.255.174.39) by SN2PR07MB032.namprd07.prod.outlook.com (10.255.174.42) with Microsoft SMTP Server (TLS) id 15.0.680.12; Tue, 7 May 2013 10:35:32 +0000 Received: from SN2PR07MB029.namprd07.prod.outlook.com ([169.254.11.145]) by SN2PR07MB029.namprd07.prod.outlook.com ([169.254.11.145]) with mapi id 15.00.0680.012; Tue, 7 May 2013 10:35:31 +0000 From: "Hurugalawadi, Naveen" To: "gcc-patches@gcc.gnu.org" Subject: [AArch64] Restrict the shift value in compare extended shift operation Date: Tue, 7 May 2013 10:35:23 +0000 Message-ID: <17c1ef6462fc49f58001d169ffe029ed@SN2PR07MB029.namprd07.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: caviumnetworks.com X-Virus-Found: No Hi, Please find attached the patch that restricts the shift value in comparison operation between 0-4. Please review the patch and let me know if its okay? 2013-05-07 Naveen H.S * config/aarch64/aarch64.md (cmp_swp__shft_): Restrict the shift value between 0-4. Thanks, Naveen --- gcc/config/aarch64/aarch64.md 2013-05-07 11:31:52.096213714 +0530 +++ gcc/config/aarch64/aarch64.md 2013-05-07 12:53:04.016369788 +0530 @@ -2349,7 +2349,7 @@ (compare:CC_SWP (ashift:GPI (ANY_EXTEND:GPI (match_operand:ALLX 0 "register_operand" "r")) - (match_operand:QI 1 "aarch64_shift_imm_" "n")) + (match_operand 1 "aarch64_imm3" "Ui3")) (match_operand:GPI 2 "register_operand" "r")))] "" "cmp\\t%2, %0, xt %1"