From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 0YNsMDNjYmrXVSoAWB0awg (envelope-from ) for ; Thu, 23 Jul 2026 14:53:39 -0400 Received: by simark.ca (Postfix, from userid 112) id C35761E033; Thu, 23 Jul 2026 14:53:39 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6166F1E033 for ; Thu, 23 Jul 2026 14:53:39 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 793724BA79A1 for ; Thu, 23 Jul 2026 18:53:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 793724BA79A1 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by sourceware.org (Postfix) with ESMTP id 59A084BA23D5 for ; Thu, 23 Jul 2026 18:53:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 59A084BA23D5 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=orcam.me.uk ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 59A084BA23D5 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2001:4190:8020::34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784832796; cv=none; b=AFDA/HFONoqOVe9NVOvqmgT5MujJK51H13bKZ07GmbhaQ3EzN/JBuQtmpwxge1a25LJ42nrVP0L7zjssV1pAmXz3WlEN90GSAq0yDsrarfzIXislx+IbqCrk5iMaTR5nR95i6RxQ7ujLH6jtS39C39YUptYnmdRWUWJ4VlRZd2A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784832796; c=relaxed/simple; bh=SZs0/PW2706NnU+oL32s5avk0jJGjn8jfWLkmwNQgeI=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=cC3+zNB0YHSmdLhch7NoSC3Jcsn/u+SyqNxyuz/YHYeleD8MfEhZCqhUDFBt3hExFwUFTU4YEDfRy1jjUpuhGGRT9hu4AHK/W+F/S4QrFTmbdePkjAc6F19d+VsLij57PJqeQkIJTg2HlSoO6Ts3rKNLjp8oJ8bWC5xw+1E5GoE= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 59A084BA23D5 Received: by angie.orcam.me.uk (Postfix, from userid 500) id D64839200C0; Thu, 23 Jul 2026 20:53:15 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id D24DD9200BF; Thu, 23 Jul 2026 19:53:15 +0100 (BST) Date: Thu, 23 Jul 2026 19:53:15 +0100 (BST) From: "Maciej W. Rozycki" To: gdb-patches@sourceware.org cc: Jovan Dmitrovic , Djordje Todorovic , Milica Matic , "Maciej W. Rozycki" Subject: [PATCH 7/7] MIPS: Reorder a reference to "BGTZ, BGTZL" in `mips32_next_pc' In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: "Maciej W. Rozycki" Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org From: Maciej W. Rozycki Move a reference to "BGTZ, BGTZL" in `mips32_next_pc' to the leading case label as with the other instructions called out in the function. Approved-by: Maciej W. Rozycki --- gdb/mips-tdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) gdb-mips-next-pc-bgtz-comment.diff Index: binutils-gdb/gdb/mips-tdep.c =================================================================== --- binutils-gdb.orig/gdb/mips-tdep.c +++ binutils-gdb/gdb/mips-tdep.c @@ -1822,9 +1822,9 @@ mips32_next_pc (struct regcache *regcach else pc += 8; break; - case 7: + case 7: /* BGTZ, BGTZL */ default: - greater_branch: /* BGTZ, BGTZL */ + greater_branch: if (regcache_raw_get_signed (regcache, itype_rs (inst)) > 0) pc += mips32_relative_offset (inst) + 4; else