From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44346 invoked by alias); 5 Apr 2017 13:52:10 -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 44184 invoked by uid 89); 5 Apr 2017 13:52:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=among X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Apr 2017 13:52:07 +0000 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v35DmsNL107848 for ; Wed, 5 Apr 2017 09:52:07 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0b-001b2d01.pphosted.com with ESMTP id 29n14wtj94-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 05 Apr 2017 09:52:07 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 5 Apr 2017 14:52:05 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 5 Apr 2017 14:52:03 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v35Dq3Uu5701948; Wed, 5 Apr 2017 13:52:03 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BAF6D52069; Wed, 5 Apr 2017 13:50:06 +0100 (BST) Received: from oc5510024614.ibm.com (unknown [9.145.169.81]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 98B1C5204F; Wed, 5 Apr 2017 13:50:06 +0100 (BST) Received: by oc5510024614.ibm.com (Postfix, from userid 500) id 0CD881AB05; Wed, 5 Apr 2017 15:52:00 +0200 (CEST) Date: Wed, 05 Apr 2017 13:52:00 -0000 From: Dominik Vogt To: gcc-patches@gcc.gnu.org Cc: Andreas Krebbel , Ulrich Weigand Subject: Re: [PATCH] S/390: Optimize atomic_compare_exchange and atomic_compare builtins. Reply-To: vogt@linux.vnet.ibm.com Mail-Followup-To: vogt@linux.vnet.ibm.com, gcc-patches@gcc.gnu.org, Andreas Krebbel , Ulrich Weigand References: <20170327202735.GA21766@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170327202735.GA21766@linux.vnet.ibm.com> User-Agent: Mutt/1.5.20 (2009-12-10) X-TM-AS-GCONF: 00 x-cbid: 17040513-0040-0000-0000-0000035F672E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17040513-0041-0000-0000-000024D431B8 Message-Id: <20170405135200.GA3230@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-04-05_11:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1704050122 X-SW-Source: 2017-04/txt/msg00220.txt.bz2 On Mon, Mar 27, 2017 at 09:27:35PM +0100, Dominik Vogt wrote: > The attached patch optimizes the atomic_exchange and > atomic_compare patterns on s390 and s390x (mostly limited to > SImode and DImode). Among general optimizaation, the changes fix > most of the problems reported in PR 80080: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80080 > > Bootstrapped and regression tested on a zEC12 with s390 and s390x > biarch. New version attached. v3: * Remove sne* patterns. * Move alignment check from s390_expand_cs to s390.md. * Use s_operand instead of memory_nosymref_operand. * Remove memory_nosymref_operand. * Allow any CC-mode in cstorecc4 for TARGET_Z196. * Fix EQ with TARGET_Z196 in cstorecc4. * Duplicate CS patterns for CCZmode. Bootstrapped and regression tested on a zEC12 with s390 and s390x biarch. Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany