From patchwork Mon Oct 18 13:46:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Shawcroft X-Patchwork-Id: 68191 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 88532B710B for ; Tue, 19 Oct 2010 00:52:33 +1100 (EST) Received: (qmail 2947 invoked by alias); 18 Oct 2010 13:52:30 -0000 Received: (qmail 2939 invoked by uid 22791); 18 Oct 2010 13:52:29 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL, BAYES_00, MSGID_MULTIPLE_AT, TW_DM, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cam-admin0.cambridge.arm.com (HELO cam-admin0.cambridge.arm.com) (217.140.96.50) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Oct 2010 13:52:23 +0000 Received: from cam-owa2.Emea.Arm.com (cam-owa2.emea.arm.com [10.1.105.18]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id o9IDmDF9024866 for ; Mon, 18 Oct 2010 14:48:14 +0100 (BST) Received: from e102573 ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 18 Oct 2010 14:52:20 +0100 From: "Marcus Shawcroft" To: References: In-Reply-To: Subject: [PATCH, ARM] Fix test case to permit dmb|mcr as alternatives to __sync_synchronize() Date: Mon, 18 Oct 2010 14:46:13 +0100 Message-ID: <000801cb6eca$d4813dc0$7d83b940$@shawcroft@arm.com> MIME-Version: 1.0 x-cr-hashedpuzzle: LDA= AAMI AoBU AuKL A8NN CFT1 CQYP CgCg DnDs EKR6 EU+i HmuN H6b0 I9ra KNxZ Ksx4; 1; ZwBjAGMALQBwAGEAdABjAGgAZQBzAEAAZwBjAGMALgBnAG4AdQAuAG8AcgBnAA==; Sosha1_v1; 7; {90DDE134-1C24-4497-B3AC-841623BEB120}; bQBhAHIAYwB1AHMALgBzAGgAYQB3AGMAcgBvAGYAdABAAGEAcgBtAC4AYwBvAG0A; Mon, 18 Oct 2010 13:46:08 GMT; WwBQAEEAVABDAEgALAAgAEEAUgBNAF0AIABGAGkAeAAgAHQAZQBzAHQAIABjAGEAcwBlACAAdABvACAAcABlAHIAbQBpAHQAIABkAG0AYgB8AG0AYwByACAAYQBzACAAYQBsAHQAZQByAG4AYQB0AGkAdgBlAHMAIAB0AG8AIABfAF8AcwB5AG4AYwBfAHMAeQBuAGMAaAByAG8AbgBpAHoAZQAoACkA x-cr-puzzleid: {90DDE134-1C24-4497-B3AC-841623BEB120} X-IsSubscribed: yes 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 The ARM specific test case gcc.target/arm/synchronize.c detects that a call to __sync_synchronize() is emitted. This patch permits DMB and MCR as alternatives. /Marcus 2010-10-18 Marcus Shawcroft * gcc.target/arm/synchronize.c: Permit dmb or mcr in assembler scan. diff --git a/gcc/testsuite/gcc.target/arm/synchronize.c b/gcc/testsuite/gcc.target/arm/synchronize.c index 81ed848..8626d8e 100644 --- a/gcc/testsuite/gcc.target/arm/synchronize.c +++ b/gcc/testsuite/gcc.target/arm/synchronize.c @@ -1,4 +1,4 @@ -/* { dg-final { scan-assembler "__sync_synchronize" { target arm*-*-linux-*eabi } } } */ +/* { dg-final { scan-assembler "__sync_synchronize|dmb|mcr" { target arm*-*-linux-*eabi } } } */ void *foo (void) {