From patchwork Thu Mar 8 20:51:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 145619 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 E3187B6F9D for ; Fri, 9 Mar 2012 07:52:11 +1100 (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=1331844733; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=A8WaMi4 k28lobz6QhvGzKzIqiYI=; b=HGNGnSkBAzn94fnfTkvh9zyYHvHUvI3+8zY7bkH hf5fjhhPSKNcrCcjXOJkcKQjSCuWyOOV9m3vRT0YCeL7fbKv1I88npO4puv2dVj/ nxX0y4OnzJxbEPTaIu2397d2mRlM+qEhliklyuP8u/ReNWJrPlxDCAndec2HYYlC /wUY= 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:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=aHVs8omd0bSWw++pbuJ4IpckepZxsGsET3R1rXPRTQyyKiQP/0sfu4Ll0GXz5z 2Xt5QWmBcQIML1pw10xuzSrQ+Ojjn4Fj4pENhFY2n++Ssy0+gSiSLjQpIOTuBx2t bj+ueNct0XmILG4Vaoc4xBGC/dEW1ImaI/XM94WI6Drr4=; Received: (qmail 24611 invoked by alias); 8 Mar 2012 20:52:08 -0000 Received: (qmail 24603 invoked by uid 22791); 8 Mar 2012 20:52:07 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, TW_ZJ X-Spam-Check-By: sourceware.org Received: from mail-gy0-f175.google.com (HELO mail-gy0-f175.google.com) (209.85.160.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Mar 2012 20:51:54 +0000 Received: by ghbz2 with SMTP id z2so565311ghb.20 for ; Thu, 08 Mar 2012 12:51:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.101.128.23 with SMTP id f23mr3909153ann.9.1331239913500; Thu, 08 Mar 2012 12:51:53 -0800 (PST) Received: by 10.146.241.19 with HTTP; Thu, 8 Mar 2012 12:51:53 -0800 (PST) Date: Thu, 8 Mar 2012 21:51:53 +0100 Message-ID: Subject: [PATCH, i386]: Simplify indirect_branch_operand predicate From: Uros Bizjak To: gcc-patches@gcc.gnu.org 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! No functional changes. 2012-03-08 Uros Bizjak * config/i386/predicates.md (indirect_branch_operand): Simplify. Tested on x86_64-pc-linux-gnu, committed to mainline SVN. Uros. Index: predicates.md =================================================================== --- predicates.md (revision 185107) +++ predicates.md (working copy) @@ -566,9 +566,9 @@ ;; Test for a valid operand for indirect branch. (define_predicate "indirect_branch_operand" - (if_then_else (match_test "TARGET_X32") - (match_operand 0 "register_operand") - (match_operand 0 "nonimmediate_operand"))) + (ior (match_operand 0 "register_operand") + (and (not (match_test "TARGET_X32")) + (match_operand 0 "memory_operand")))) ;; Test for a valid operand for a call instruction. (define_predicate "call_insn_operand"