From patchwork Wed Jan 10 22:43:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 761469 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e02:0:b0:337:62d3:c6d5 with SMTP id h2csp2112294wrz; Wed, 10 Jan 2024 14:46:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcYf98/mLr5996vZ81EOCjLE8TsU68JW5VoHrspwrMoLe8xNwiC2Ge5h3DS2k+dNpfSERP X-Received: by 2002:a05:6122:c89:b0:4b7:6143:7a47 with SMTP id ba9-20020a0561220c8900b004b761437a47mr162687vkb.20.1704926766122; Wed, 10 Jan 2024 14:46:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704926766; cv=none; d=google.com; s=arc-20160816; b=XhIxvNgFJyCrbtK5Biz1P/r4g55LYfH3SOxtzKOlhloXqK6lxFcqa9fFjjKrDKwe70 s48UXoUABVLuffeWhTdDwGuAUMbe4n99Gm2ycpFKk8xUmbDlPJmJqIEMglky/ugca8Ui 3y5KjmBffNm37eK+Ko0BMUO5061MQ+tKJOafjIGvs3giC2ga4g82Clp38ySRLah+pk5n /ejsvrQM0Tnn7r0Dwl2jKv2L72UDbpcLXz4BvALV6XvbAlWqd55acghx+Rko4rbldhsz a8JF1/OijgVCx8VquU5NV1K1qH5zhdMI87e2VoyX2tjJiiZshBhws/0LPZs00ce/EukS rl+g== 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=fGroRAMABW6rD6Q1rW6plntl0iLNiILFnyK4nwakVJo=; fh=GbSB792CRg76qyQfASHmg380JBauy2gTuYi49sbOwBU=; b=GtdgDVOmK9zGAVgDx+Y/jddEB/t6kwB1TFVTTaMEX4nzEaDXFpGJSTDXiBVEXFECvR Ad43R3inbEhn/fY6mLiiZsqu8snFWbrnTMRq25PMNLSyTEkxvq2GdSPA2/HE0e/VVrC4 gWc3m7+hvGN82G/FvR0t11SJrtOYAFbrO3yHjMWtho3hqK/YiZwwaW2p2z3/xsbcthg6 FUtkYR4syHMv9hbLhDG5ziPavXOXdNLLY2HO3sY81dOQ3rFx21nIrjuMKP2YbxyVlm6w drFH1cuDOohDm1i8Nhr3ex8VNgpwISSalgsucqFxrzTUa0EdyH8pm2hCDyT93SKJcvJN jwdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NXKtMUaL; 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=fail (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 vy26-20020a05620a491a00b0078217e9d131si4756964qkn.48.2024.01.10.14.46.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Jan 2024 14:46:06 -0800 (PST) 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=fail header.i=@linaro.org header.s=google header.b=NXKtMUaL; 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=fail (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 1rNhKT-0004ye-0q; Wed, 10 Jan 2024 17:45:45 -0500 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 1rNhKC-0004rK-Jz for qemu-devel@nongnu.org; Wed, 10 Jan 2024 17:45:28 -0500 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNhKA-0002w8-EV for qemu-devel@nongnu.org; Wed, 10 Jan 2024 17:45:27 -0500 Received: by mail-qt1-x830.google.com with SMTP id d75a77b69052e-429af318342so8665391cf.0 for ; Wed, 10 Jan 2024 14:45:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704926723; x=1705531523; 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=fGroRAMABW6rD6Q1rW6plntl0iLNiILFnyK4nwakVJo=; b=NXKtMUaLe38dhg1PSEiB76sdX7DPZcNErV7r7SwTqgg/MteW7aobMbmfjKQOO2PWBX QSBbtEHuawjnrlkW/YbsBkygnKIxB9+8dSE9mp6tvFIAJAK5vOBHr3ArW9oAGDXn+JiJ Uw5BQkYQ7uhj4ImZ7PePilr3Gn+mz2hU3Wgk133PFfyIclgcGseotHGz/Z00u0x3Rd1p PF9DeVnI5+4PZdYYrL0PDnsv/et6MYgdD8YwjT7nuTn7A+dorAs4Fs6xbyoHGN6xYmJ5 p6IMbuHg/+1q+6DIytS4SLpoR9Zsqe5ao/zdzWsi6jqFyTc2f7FEJ0CxAm/X53gnQ6Gg WlTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704926723; x=1705531523; 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=fGroRAMABW6rD6Q1rW6plntl0iLNiILFnyK4nwakVJo=; b=ZLRwb+n07KgZjMyOv9xPucQZQgXa4iJL8fr5pwmlbIa++249Y09SOOVOGcSuMqXEej Rg9y29Mt6XUpxTLoRJI7ITdTSyLQIdXV9/QtEdK92d2YEE1RVbJw7ZOw5FEIqzTSrznr FX/z826LMvJV9+q3ihNVTb1ugv1AagHaWyWeo6k7B/hDM1Q/a//RBF+28IgOeFNqyoFu JSCoBW7NTHehT03JzqSABJadvqkstu8NwgSg6iDTKAvxL8WXDm45wDzdD5XPVarUF8XO Bn55ekX43h5pegz89pmASTIEBMv6Q/pByVtx2p4A27mnBXC8Vn6ndjznXxuDscfp37ZS bv3Q== X-Gm-Message-State: AOJu0YyWSOifzyQI+tgSECFejgsIf78q76Teitl3gkS35GnsEXIv/wq9 cEyCzZSFFmnOF+u11ZO9ZIMCJh8CfYYzu4Q6gYHcYdXU7VBwqC6I X-Received: by 2002:a05:622a:4b:b0:429:af00:8be with SMTP id y11-20020a05622a004b00b00429af0008bemr336892qtw.82.1704926723391; Wed, 10 Jan 2024 14:45:23 -0800 (PST) Received: from stoup.. ([172.58.27.160]) by smtp.gmail.com with ESMTPSA id ks23-20020ac86217000000b0042987f6874bsm2092281qtb.92.2024.01.10.14.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 14:45:23 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: philmd@linaro.org, pbonzini@redhat.com Subject: [PATCH v3 10/38] target/alpha: Use TCG_COND_TST{EQ, NE} for CMOVLB{C, S} Date: Thu, 11 Jan 2024 09:43:40 +1100 Message-Id: <20240110224408.10444-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240110224408.10444-1-richard.henderson@linaro.org> References: <20240110224408.10444-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::830; envelope-from=richard.henderson@linaro.org; helo=mail-qt1-x830.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, T_SCC_BODY_TEXT_LINE=-0.01 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: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/alpha/translate.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index 49e6a7b62d..c7daf46de7 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -1676,16 +1676,12 @@ static DisasJumpType translate_one(DisasContext *ctx, uint32_t insn) break; case 0x14: /* CMOVLBS */ - tmp = tcg_temp_new(); - tcg_gen_andi_i64(tmp, va, 1); - tcg_gen_movcond_i64(TCG_COND_NE, vc, tmp, load_zero(ctx), + tcg_gen_movcond_i64(TCG_COND_TSTNE, vc, va, tcg_constant_i64(1), vb, load_gpr(ctx, rc)); break; case 0x16: /* CMOVLBC */ - tmp = tcg_temp_new(); - tcg_gen_andi_i64(tmp, va, 1); - tcg_gen_movcond_i64(TCG_COND_EQ, vc, tmp, load_zero(ctx), + tcg_gen_movcond_i64(TCG_COND_TSTEQ, vc, va, tcg_constant_i64(1), vb, load_gpr(ctx, rc)); break; case 0x20: