From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3259 invoked by alias); 9 Dec 2015 14:31:20 -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 3250 invoked by uid 89); 9 Dec 2015 14:31:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: smtprelay.synopsys.com Received: from smtprelay2.synopsys.com (HELO smtprelay.synopsys.com) (198.182.60.111) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 09 Dec 2015 14:31:19 +0000 Received: from dc8secmta2.synopsys.com (dc8secmta2.synopsys.com [10.13.218.202]) by smtprelay.synopsys.com (Postfix) with ESMTP id 2A30F10C0191; Wed, 9 Dec 2015 06:31:16 -0800 (PST) Received: from dc8secmta2.internal.synopsys.com (dc8secmta2.internal.synopsys.com [127.0.0.1]) by dc8secmta2.internal.synopsys.com (Service) with ESMTP id 09041A4114; Wed, 9 Dec 2015 06:31:16 -0800 (PST) Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by dc8secmta2.internal.synopsys.com (Service) with ESMTP id DE444A4112; Wed, 9 Dec 2015 06:31:15 -0800 (PST) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id CB5FCF4; Wed, 9 Dec 2015 06:31:15 -0800 (PST) Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) by mailhost.synopsys.com (Postfix) with ESMTP id 96FDEF1; Wed, 9 Dec 2015 06:31:15 -0800 (PST) Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.92) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 9 Dec 2015 06:31:15 -0800 Received: from DE02WEMBXA.internal.synopsys.com ([fe80::a014:7216:77d:d55c]) by DE02WEHTCA.internal.synopsys.com ([::1]) with mapi id 14.03.0195.001; Wed, 9 Dec 2015 15:31:11 +0100 From: Claudiu Zissulescu To: Joern Wolfgang Rennecke , "gcc-patches@gcc.gnu.org" CC: "Francois.Bedard@synopsys.com" , "jeremy.bennett@embecosm.com" Subject: RE: [PATCH] [ARC] Add support for atomic memory built-in. Date: Wed, 09 Dec 2015 14:31:00 -0000 Message-ID: <098ECE41A0A6114BB2A07F1EC238DE896616B33C@de02wembxa.internal.synopsys.com> References: <1447669119-17513-1-git-send-email-claziss@synopsys.com> <5660E7AC.5050007@amylaar.uk> <098ECE41A0A6114BB2A07F1EC238DE896616B15C@de02wembxa.internal.synopsys.com> <5667B7FA.5070801@amylaar.uk> In-Reply-To: <5667B7FA.5070801@amylaar.uk> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2015-12/txt/msg01004.txt.bz2 I will add this text before "*memory_barrier" pattern: ;; For ARCHS, we use a hardware data memory barrier that waits for ;; completion of current data memory operations before initiating ;; similar data memory operations. Once done, I will commit it. Thanks, Claudiu > > Tested with dg.exp (when passing -matomic to gcc compiler line, the atomi= c tests are also successfully executed). The comment before "*memory_barrier" could use some elaboration on what it = does for TARGET_HS. Otherwise, this is OK.