From patchwork Wed Aug 18 22:46:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 62094 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 B4513B70CC for ; Thu, 19 Aug 2010 08:46:57 +1000 (EST) Received: (qmail 20257 invoked by alias); 18 Aug 2010 22:46:56 -0000 Received: (qmail 20248 invoked by uid 22791); 18 Aug 2010 22:46:55 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, TW_ZJ, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-gx0-f175.google.com (HELO mail-gx0-f175.google.com) (209.85.161.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Aug 2010 22:46:50 +0000 Received: by gxk2 with SMTP id 2so489150gxk.20 for ; Wed, 18 Aug 2010 15:46:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.59.20 with SMTP id m20mr1130842ybk.88.1282171608833; Wed, 18 Aug 2010 15:46:48 -0700 (PDT) Received: by 10.150.219.8 with HTTP; Wed, 18 Aug 2010 15:46:48 -0700 (PDT) Date: Thu, 19 Aug 2010 00:46:48 +0200 Message-ID: Subject: [PATCH, i386]: Fix PR target/45327, ICE: SIGSEGV in rtx_equal_p 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! ix86_binary_operator_ok needs output operand in addition to two input operands. 2010-08-18 Uros Bizjak PR target/45327 * config/i386/i386.md (_3): Do not use ix86_binary_operator_ok. Tested on x86_64-pc-linux-gnu and committed to 4.5 and SVN mainline. Uros. Index: i386.md =================================================================== --- i386.md (revision 163353) +++ i386.md (working copy) @@ -8456,7 +8456,7 @@ (const_int 0))) (clobber (match_scratch:SWI 0 "="))] "ix86_match_ccmode (insn, CCNOmode) - && ix86_binary_operator_ok (, mode, operands)" + && !(MEM_P (operands[1]) && MEM_P (operands[2]))" "{}\t{%2, %0|%0, %2}" [(set_attr "type" "alu") (set_attr "mode" "")])