From patchwork Fri Mar 28 03:41:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Blanchard X-Patchwork-Id: 327 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx21.g.dreamhost.com (caibbdcaaahb.dreamhost.com [208.113.200.71]) by wilcox.dreamhost.com (Postfix) with ESMTP id A1FFC36039C for ; Thu, 27 Mar 2014 20:42:14 -0700 (PDT) Received: by homiemail-mx21.g.dreamhost.com (Postfix, from userid 14314964) id 4F36BC9145A; Thu, 27 Mar 2014 20:42:14 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx21.g.dreamhost.com 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 homiemail-mx21.g.dreamhost.com (Postfix) with ESMTPS id 25F6CC9F5A0 for ; Thu, 27 Mar 2014 20:42:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=Mba5mlyXlSTDBt6OMuWdrhthJWtySew 6Yfuo1O/kVM04fT3JfM4eNnpSawqN52d8Wzfml1+ht2khroiI0wl6ZF+kn6Lsn4t J8b5iC4Q56ZemX8RAAzXdGPlMPCfvq01jKwt52RC1WMQEGUldTB2Cm/cYRuMTL97 FD13IDIkaV+o= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=3hMlmO4GvjP47KGapYZ6QPUtonM=; b=a2931 juXgC44ts8zw3k03YV5yxLJ5Pxwf3oZtSj5gUcqoZLuVvLNywQ3clFDB7MIFeGgj 3unSBzDd1JwfdTAj2sWKzt1LqS7p3OREJuZjp49+NkROv91GsrIKbzJy43LV0r6u BysW1Py+s1TS9MSHKyxkMt3SH9/dGGUkaVsG80= 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-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@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 14:41:50 +1100 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-DH-Original-To: gdb@patchwork.siddhesh.in 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