From patchwork Wed May 15 09:40:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 796946 Delivered-To: patch@linaro.org Received: by 2002:a5d:452e:0:b0:34e:ceec:bfcd with SMTP id j14csp2892332wra; Wed, 15 May 2024 02:48:54 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXRmTiuwPHHowHTb5iNGolW6kyQtJMocn6WGkhRcpkP4jybDato3xTHMCgszSqI/i9hPx5SRQXTZ9WnNxiaDe83 X-Google-Smtp-Source: AGHT+IHHCtng5HgE8y63b/QmHPK/7Q7tBeueRM/mWl/H6J1Ef7gV0RheXDqNFt4FeQtV6FgZy4MR X-Received: by 2002:ad4:580f:0:b0:6a3:5b93:20b1 with SMTP id 6a1803df08f44-6a35b93218fmr2210036d6.53.1715766534358; Wed, 15 May 2024 02:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715766534; cv=none; d=google.com; s=arc-20160816; b=ZyTbNRMED3g5FiLaMYdqN/p0VtT/12QWl5N3diOMT10/AET1iHatQCqf22S7WgcrS3 lIBoHzlfkGAsDVjt4+48TQGoMbI4VIVmVg/rV9iuxwLq+u+1lXCATNJxDLl3szbQQaJ5 vnzduXi1BmfHoog7CqJf8tklV+0Gae5bkJyzzGrByt3KMn4o1muwFTN/2rGsCXnYfPFo haYxl7r+t/3PjFb5Q0S2yicpWDp4+1rClWe6vGMiPlzsQzLzcDkSEGm/eP3f7qh4FswZ F+WB4O0mxpvaQdTJ2yZ5HycCuajpy/sUUt9ykxwTnaTC0Zk+vt4Rs+ODfj7kVcSNzFT6 YYrg== 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=4ut1tTRNwrZrLRbqcF7h53mi8stN5BjGNXrsWn90/1M=; fh=3//KcqJEsa04kIBt5Nb/DJuP+2GuH1NwDRxnSl44zdw=; b=z4gH9MsNtYrJDUfo/MYWn2gR12Idt0OGyxTTM8C+0oJiTa1dNKmO8gzzoaF+J18G8A ONQT42uFBoYwdFrRybaZIPVHsUoq5zOo39df8VcW4Ju+Z1ZztWOoAEoXjFgXc3vfs0vc z7DASRTG6ut2Gqrs1ZjJtrtkqIdaxgYC2cZYrFBKPc+VvXhQGfEY4vu3LbtaUJHjQam0 QDEWOFyeJRiMN8mWeBwK/+6SvISfKxgr+jf96zY8sxsidTX0xwN9L2EDE5a2U0TkBLdE GSs8yBu6rlBWLOvfVe/TKxX4pCSthMeiDKZLdrjhnMpHaxwqYQ6eYsb5L2A/R1LJWqMn LTXg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zC0nhpyL; 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 6a1803df08f44-6a15f29bb52si142556756d6.225.2024.05.15.02.48.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 May 2024 02:48:54 -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=zC0nhpyL; 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 1s7B8O-0006vs-8F; Wed, 15 May 2024 05:41:16 -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 1s7B8E-00065n-Al for qemu-devel@nongnu.org; Wed, 15 May 2024 05:41:06 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s7B8C-0001g6-H0 for qemu-devel@nongnu.org; Wed, 15 May 2024 05:41:06 -0400 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-34f0e55787aso5222188f8f.2 for ; Wed, 15 May 2024 02:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715766062; x=1716370862; 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=4ut1tTRNwrZrLRbqcF7h53mi8stN5BjGNXrsWn90/1M=; b=zC0nhpyLcY6QCYvWnw/nxNQCQNigMlLYv3qtPXxPm34arjGJlvP1RtpXGFez3p2XCt hO25INMiNDUsEOMtVIz1aLNld5xMtqSwL6ffJUSI3r7/aRXF5bgm41x/Es2n2apz+qmP ZNtJD7ByRCbcbi/MDSO+19Wo8O5BbjeaklzuSQ3+KRP8+SFAF2F9C0mDxGRbLYjzubhl V+D8eIE4H2TIjc2PMv1ZpqllTlq4dq0+FvKYORQgHYTIuBpFaUn7BiRTaLn9FjTTy2SI +/X+rc29QHy+UsJEW3d60MIahr/pgjAhCz0exm73PfOyRKZhbxRPkKsuQ2hj61yqz5fj kPOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715766062; x=1716370862; 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=4ut1tTRNwrZrLRbqcF7h53mi8stN5BjGNXrsWn90/1M=; b=YahSXFGza5aO/sxBNsaT/QzQguH1JHyjMh9Ort082Ce1UnBLtRZkhY8pQ23/2FpNWT yydQmip/KvUV44e5EmKmDE2YqDjAVTJDLMaW5A5gA1l1+EdnvMtVeKYIoOwjhHpZcK6w Snbqj7uHwy+vifxdJWBPqKK2qTa5H+Yj+euknOzL2x/EPaFvpaZTkvrbB1+DVfXQPt6/ khdtpPR10nvo0Y2KUTXmkNdOMMTf7OEonh82vyWEKMMrPIZhUM9+71frV/9f8x8zMTlf FLgOR0FTQuBLp+3h2C+uV2eOc9hmSCDm69lC53kzJ7y6DOn8cBLqfTJ6kGEpi8wb28JT vPPA== X-Gm-Message-State: AOJu0YxNB97QkB7b3PQiTgWzJYmAk+WlEFIhmZoxlYgCx+DGcWv00r9f WXCsWSPFSX5H7UPyuNDpqb5NrjiuG2jT1n2SYuu5kNA4ODNonm4baKPJA/VomBObrkLqFuUib8i vwJw= X-Received: by 2002:a05:6000:551:b0:34d:e598:b716 with SMTP id ffacd0b85a97d-3504aa62feamr11867378f8f.67.1715766062724; Wed, 15 May 2024 02:41:02 -0700 (PDT) Received: from stoup.. ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502bbbbefdsm15897058f8f.94.2024.05.15.02.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 02:41:02 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 24/43] target/hppa: Use TCG_COND_TST* in trans_bb_imm Date: Wed, 15 May 2024 11:40:24 +0200 Message-Id: <20240515094043.82850-25-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::433; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x433.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 Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/hppa/translate.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 4e49bd2b67..af6be5100c 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3516,18 +3516,12 @@ static bool trans_bb_sar(DisasContext *ctx, arg_bb_sar *a) static bool trans_bb_imm(DisasContext *ctx, arg_bb_imm *a) { - TCGv_i64 tmp, tcg_r; DisasCond cond; - int p; + int p = a->p | (a->d ? 0 : 32); nullify_over(ctx); - - tmp = tcg_temp_new_i64(); - tcg_r = load_gpr(ctx, a->r); - p = a->p | (a->d ? 0 : 32); - tcg_gen_shli_i64(tmp, tcg_r, p); - - cond = cond_make_ti(a->c ? TCG_COND_GE : TCG_COND_LT, tmp, 0); + cond = cond_make_vi(a->c ? TCG_COND_TSTEQ : TCG_COND_TSTNE, + load_gpr(ctx, a->r), 1ull << (63 - p)); return do_cbranch(ctx, a->disp, a->n, &cond); }