From patchwork Sun Dec 24 09:00:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 82815 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A48AD3858C2F for ; Sun, 24 Dec 2023 09:02:28 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 41C473858D3C for ; Sun, 24 Dec 2023 09:00:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 41C473858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 41C473858D3C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703408439; cv=none; b=WWy5VqfC1ykyEYaCehh0ZF3tcYbBX9uwIbSKQk8d9ltq5fP/QNQ0yZo9IbovDPcUKuXfUmp/4glzActWcMo5IbwSDwfEWJrfpe+z2fFLCcy4FFS68QxJPmU3j/sEE66lyPL+xa4bUaDNS6l8tjuUXaFHh/jh0xK7GIYJAt8WWwo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703408439; c=relaxed/simple; bh=ksrsj4rr97k+qZV602/cvnGT0WfA/J1eytvf2x53234=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=ZIJiU2CChh78HHCBepf4MkRSDo+XYhuUZcCu9X3I2nmY7KcvgEpXm7oAKHnj1u2s524BGZKBEdGTj451IJ1K7kTYmLWN6VSA231JGn7beMyZJt/cd5KixM+0x8YbaW3QE3JMPR9dcmeL0veAv00OJE75lBoNw4eBiDiXlwecJn8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id D3BCA33DF47; Sun, 24 Dec 2023 09:00:33 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed] sim: sh: refine pwsb & pwad nops Date: Sun, 24 Dec 2023 04:00:32 -0500 Message-ID: <20231224090032.29372-1-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Since these insns don't do anything and are effectively ignored, return early to avoid doing any common processing at the end as that requires initializing variables like "res" with something. --- sim/sh/gencode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c index 8ef3f3e33761..c121d53bb40b 100644 --- a/sim/sh/gencode.c +++ b/sim/sh/gencode.c @@ -2012,8 +2012,10 @@ static op ppi_tab[] = "ADD_SUB_GE;", }, { "","", "pwsb Sx,Sy,Dz", "10100100....zzzz", + "return;", }, { "","", "pwad Sx,Sy,Dz", "10110100....zzzz", + "return;", }, { "","", "(if cc) pabs Sx,Dz", "100010ccxx01zzzz", "/* FIXME: duplicate code pabs. */",