From patchwork Tue Nov 26 14:57:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 1201097 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-514615-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="VVTDHXLG"; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="JH0O2D2v"; dkim-atps=neutral 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 47Mn851h4dz9sP3 for ; Wed, 27 Nov 2019 01:57:55 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:references:to:from:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=pc3Eb6V+SUIJ2DYYo LVDbQsSv0RITrle6GQDXg/guUhwfRbQZG/vGvISWMwdvrypK5lOp3z/BNEzOVWRZ Iz2PcUYZMz4OOhKUAH91fkC+gWijphd6AnG1M0lhuLQs67mqxQx4v4AdG9uKF2pm pJJGvixbJJSyLzPX/L2mQFdEtM= 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 :subject:references:to:from:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=D9cUFC8xlyvAoGmkvrvLCaP RE7s=; b=VVTDHXLGYD3VRI9okrSQDSsjDUI6WWY4aH1ow52UWxgvv6+kbYiOj/S fKPAUfFi6wcUZ1k4icxR8o3alDYN6wbWQ8NLyTEUn06Gy89l775bKAnzuRFL+w9O eZIZ3nHOC6qxt/nJrKWEjkhStn4dN6Pav3F27Ptlk528aTFDtcH0= Received: (qmail 44279 invoked by alias); 26 Nov 2019 14:57:47 -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 44270 invoked by uid 89); 26 Nov 2019 14:57:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, KAM_NUMSUBJECT, KAM_SHORT autolearn=ham version=3.3.1 spammy=Vladimir, recognition, vladimir, H*Ad:U*vmakarov X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (207.211.31.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 26 Nov 2019 14:57:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574780264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hcAGlxouyFRAYXDRGzID99mA0x9pjF3Mh4WRjHBRus4=; b=JH0O2D2vlYMCLmfMBK4pPB5VpAzkVjiPS90pH0wIaOtLWfxOs+iMOdQj94BLlFKRSjUDU9 A4MCQS1yXV8Fubu06s/cEChr2NIvGgsOk2wE7Fw/OwKeosC2Grbt46bQjjV6jUX/pLHVR7 S2DW6BGsytm7pwBZFkTD0UO5oCyVrCY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-387-2Neva248PmC2IopiQdyOOQ-1; Tue, 26 Nov 2019 09:57:42 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0736512CAC0B for ; Tue, 26 Nov 2019 14:57:41 +0000 (UTC) Received: from tobol.usersys.redhat.com (unused-10-15-17-174.yyz.redhat.com [10.15.17.174]) by smtp.corp.redhat.com (Postfix) with ESMTP id CCEF95C240 for ; Tue, 26 Nov 2019 14:57:40 +0000 (UTC) Subject: Ping: RFA: patch to fix PR90007 References: To: gcc-patches From: Vladimir Makarov X-Forwarded-Message-Id: Message-ID: <4218e4a9-7e83-de0c-4059-8fd78fd36c09@redhat.com> Date: Tue, 26 Nov 2019 09:57:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: X-Mimecast-Spam-Score: 0 X-IsSubscribed: yes This is the patch removing discrepancy between recog and LRA insn recognition: https://gcc.gnu.org/ml/gcc-patches/2019-11/msg01842.html Index: ChangeLog =================================================================== --- ChangeLog (revision 278451) +++ ChangeLog (working copy) @@ -1,3 +1,9 @@ +2019-11-19 Vladimir Makarov + + PR rtl-optimization/90007 + * recog.c (constrain_operands): Permit hard registers too for + memory when LRA is used. + 2019-11-19 Martin Liska * toplev.c (general_init): Move the call... Index: recog.c =================================================================== --- recog.c (revision 278413) +++ recog.c (working copy) @@ -2757,10 +2757,9 @@ constrain_operands (int strict, alternat /* Before reload, accept what reload can turn into a mem. */ || (strict < 0 && CONSTANT_P (op)) - /* Before reload, accept a pseudo, + /* Before reload, accept a pseudo or hard register, since LRA can turn it into a mem. */ - || (strict < 0 && targetm.lra_p () && REG_P (op) - && REGNO (op) >= FIRST_PSEUDO_REGISTER) + || (strict < 0 && targetm.lra_p () && REG_P (op)) /* During reload, accept a pseudo */ || (reload_in_progress && REG_P (op) && REGNO (op) >= FIRST_PSEUDO_REGISTER))) Index: testsuite/ChangeLog =================================================================== --- testsuite/ChangeLog (revision 278451) +++ testsuite/ChangeLog (working copy) @@ -1,3 +1,8 @@ +2019-11-19 Vladimir Makarov + + PR rtl-optimization/90007 + * gcc.target/i386/pr90007.c: New test. + 2019-11-15 Andrew Sutton PR c++/89913 Index: testsuite/gcc.target/i386/pr90007.c =================================================================== --- testsuite/gcc.target/i386/pr90007.c (nonexistent) +++ testsuite/gcc.target/i386/pr90007.c (working copy) @@ -0,0 +1,15 @@ +/* PR rtl-optimization/90007 */ +/* { dg-do compile { target x86_64-*-* } } */ +/* { dg-options "-march=bdver1 -mfpmath=387 -O1 -fschedule-insns -fselective-scheduling" } */ + +void +qj (int b9, int r9, int k4, int k0, int e7) +{ + (void) b9; + (void) r9; + (void) k4; + + while (!!k0 == e7 * 1.1) + { + } +}