From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25800 invoked by alias); 28 Mar 2014 03:42:00 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 25700 invoked by uid 89); 28 Mar 2014 03:41:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: ozlabs.org Received: from ozlabs.org (HELO ozlabs.org) (203.10.76.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 28 Mar 2014 03:41:58 +0000 Received: by ozlabs.org (Postfix, from userid 1010) id 39C3E1400A0; Fri, 28 Mar 2014 14:41:56 +1100 (EST) From: Anton Blanchard To: gdb-patches@sourceware.org, brobecker@adacore.com, emachado@linux.vnet.ibm.com, luis_gustavo@mentor.com, ulrich.weigand@de.ibm.com Subject: [PATCH 3/4] Add multiple branches to ppc64 single step through atomic sequence testcase Date: Fri, 28 Mar 2014 03:42:00 -0000 Message-Id: <1395978111-30706-3-git-send-email-anton@samba.org> In-Reply-To: <1395978111-30706-1-git-send-email-anton@samba.org> References: <1395978111-30706-1-git-send-email-anton@samba.org> X-SW-Source: 2014-03/txt/msg00649.txt.bz2 Test 3 conditional branches in an atomic sequence, 2 to the same destination. gdb/testsuite/ 2014-03-28 Anton Blanchard * gdb.arch/ppc64-atomic-inst.s: Add second and third branch inside atomic sequence. --- gdb/testsuite/gdb.arch/ppc64-atomic-inst.s | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.s b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.s index 15ccfd9..0521170 100644 --- a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.s +++ b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.s @@ -39,18 +39,30 @@ main: 1: lwarx 5,0,4 cmpwi 5,0 bne 2f + cmpwi 5,1 + beq 3f + cmpwi 5,2 + beq 3f /* branch to same destination */ addi 5,5,1 stwcx. 5,0,4 bne 1b - std 0,0(4) -2: ldarx 5,0,4 +2: nop + +3: std 0,0(4) +1: ldarx 5,0,4 cmpdi 5,0 - bne 3f + bne 2f + cmpdi 5,1 + beq 3f + cmpwi 5,2 + beq 3f /* branch to same destination */ addi 5,5,1 stdcx. 5,0,4 bne 1b +2: nop + 3: li 3,0 blr -- 1.8.3.2