From patchwork Wed May 15 09:40:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 796940 Delivered-To: patch@linaro.org Received: by 2002:a5d:452e:0:b0:34e:ceec:bfcd with SMTP id j14csp2891984wra; Wed, 15 May 2024 02:47:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUA8YGLEyZOCta+T11Y73l5dLwc6LTy1xYmlGJM/YotjuhcaPN0j59VdqhYtvsjM0/uYkbqL2RO3JPPGWUdpI+L X-Google-Smtp-Source: AGHT+IEMQMWk/JZCv1t3KQz+qhlQ7oO+RSl3pcEXUOxqaKlEVA1lKkYti5FO2vXsbn4JQ5MKlQIV X-Received: by 2002:a05:6102:3707:b0:47c:24fa:b627 with SMTP id ada2fe7eead31-48077de52e5mr16288587137.13.1715766467493; Wed, 15 May 2024 02:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715766467; cv=none; d=google.com; s=arc-20160816; b=W4d7W9aUApLtq2Tql+3qrfHRfIFRz5hF2robh9cINRHf15ImafddXtgdZSbZNy1mzi MesxJ5TfCMmCAeDs27rJAxuVzkRDPB6Q5LzsgV96pUJfMmjCnQb3Pq0R2ScEVNj8U8AL q9yX9ZMfifrFxE4YmGG6JgnQ8dSNJp3jKPGwe8CLUaPrS1ePvqeSTphtAgRhgBLbBrbz qpcLk2okHOd9pJ1K5UutlqjCJm2Px7lclTiCjBZxoSgvxhwQAd8ZgYZtSjOMusMIUyt7 z90xVIw5ykf1DQwHwmpb8dqGXdFgU9Jh5hXbA6cZPc57En7uCSQTiLgZuEQkNEO3nsMn phQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8D/PMBczQIsrFLsR1lIqXJyOFdBm71SwgovD3vevRX4=; fh=wDljmxUHXfz9MGj2//jPHYRc53BMWF157v8rVKELrf4=; b=yMVNnglYJ7PD6u6zugNyyPabhY1kxOm2mLg6TKIPAOHuZbOyL92kd1JV9O+QUe38Gi BMoEjZ4H3f3t+7M9IgXAsAWfsJsrhWrAm20UlkeQLaZ1KP5g5mwHcvHsahINRorBmMCV OC08wAcvCC93FheOVdYuD3sR6YwNBRTm4QZJj79sixgZDDfQ8SS5RooGTUSL2IVXyJZi IOtES/n9WZB9QqGPoEXhDaVXxRPy9QYUypk0/HNqLhUHcy/QtR1dHAdmlmnuoolVSY9n s44JXZi8yLJWp8FWzyME7CvAnop60Li2dyT+XYIQPvqCigbOjP6Tc70ZkSpBxjTUISNt 4Mjw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O6yVTTZh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-43df738a016si132269451cf.345.2024.05.15.02.47.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 May 2024 02:47:47 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O6yVTTZh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7B8K-0006Uo-GT; Wed, 15 May 2024 05:41:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7B84-0005p5-9c for qemu-devel@nongnu.org; Wed, 15 May 2024 05:41:01 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s7B81-0001dK-7Q for qemu-devel@nongnu.org; Wed, 15 May 2024 05:40:55 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-34db9a38755so6306798f8f.1 for ; Wed, 15 May 2024 02:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715766052; x=1716370852; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8D/PMBczQIsrFLsR1lIqXJyOFdBm71SwgovD3vevRX4=; b=O6yVTTZhIKHeJClrYDBDe1MU29NX+rNdgBI9iq1mCNhFzLpOfWh/Rk0n/ehDZWA3R3 7slAXb2GAz96GbGI5efxl24gyPJDJDLFxEHeoW4CciGra9DOr13HTXDKfFYeRZO5i72q KYOwVTxz/soAQ4ttakpqwaBzhaAwmy4/Hi2WVg514uDqVJClVRGZidRlxR95ht/MZHgy YhIkHg81Y87WihM+OKXYX0g4LHOa2/lL9tbCSqnL0HPR+w60BB7J5cl/ZrrvfnGIHKjm Omv91owO5qfE5cIjfFhfV2Cb+nrJfsodKMqBHeJgR258iutg+zGXR8owKCPzBgAMb5PG /N7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715766052; x=1716370852; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8D/PMBczQIsrFLsR1lIqXJyOFdBm71SwgovD3vevRX4=; b=hNrQ1gdoeX+yObfPtaDRhT407yUDDDysuoL4BilCgo6LDDKGVx8z5h8ve56WCpq7qj 4H1ftVW+NJ4yNu1111Ij+PYajJv9dSvfuXXjcdbRuTOQh+NHzF2310AQiZVOAKm2u/Eg IciDcrHmxex8Y1MibGIIxjOR2q5Jvg8q8X1mRpJC/99uCUKB6z4FvR+tYggxLsmeC0zi V5UQwzqEcegRSn4NIpGCPEn6FqHeNNWksq/xm+I+7TdrVdotmHiHgq1CW/MzSLTZLYs4 md+AbrffoXr3K8/X7E6c+GoSOzVb5e/ksh+5Zfvb5XJAwlv09e/U+OMhC7XD8cNtfreW aQPQ== X-Gm-Message-State: AOJu0YwgDp5LX2xtQtq3vu9MtlwBcqwUFRVPNYlE3H55vfJlNGRF8ifi 05IqRasCCFDqSORqC9Y1HFBWuuEEvbzHw6evDvx7DjCu4Tjjx20oDBvc+aWCWeJ/ho0pjAOKnx5 PxNI= X-Received: by 2002:a5d:6190:0:b0:34a:35c7:22a3 with SMTP id ffacd0b85a97d-3504a737286mr14514773f8f.20.1715766051964; Wed, 15 May 2024 02:40:51 -0700 (PDT) Received: from stoup.. ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502bbbbefdsm15897058f8f.94.2024.05.15.02.40.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 02:40:51 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller Subject: [PULL 10/43] target/hppa: Skip nullified insns in unconditional dbranch path Date: Wed, 15 May 2024 11:40:10 +0200 Message-Id: <20240515094043.82850-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240515094043.82850-1-richard.henderson@linaro.org> References: <20240515094043.82850-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Reviewed-by: Helge Deller Signed-off-by: Richard Henderson --- target/hppa/translate.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 9189e0350b..6c5efb0023 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -1806,11 +1806,17 @@ static bool do_dbranch(DisasContext *ctx, int64_t disp, if (ctx->null_cond.c == TCG_COND_NEVER && ctx->null_lab == NULL) { install_link(ctx, link, false); - ctx->iaoq_n = dest; - ctx->iaoq_n_var = NULL; if (is_n) { + if (use_nullify_skip(ctx)) { + nullify_set(ctx, 0); + gen_goto_tb(ctx, 0, dest, dest + 4); + ctx->base.is_jmp = DISAS_NORETURN; + return true; + } ctx->null_cond.c = TCG_COND_ALWAYS; } + ctx->iaoq_n = dest; + ctx->iaoq_n_var = NULL; } else { nullify_over(ctx);