From patchwork Wed Oct 25 07:27:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 737857 Delivered-To: patch@linaro.org Received: by 2002:adf:f842:0:b0:32d:baff:b0ca with SMTP id d2csp150711wrq; Wed, 25 Oct 2023 00:33:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5OTawnPMzkEwqZ395cDOgZUUd5xhXIiWP87P655KPBSKNKAcMOb0CNIgOU7WsypEUw/zK X-Received: by 2002:a05:620a:46ab:b0:773:db7b:26e6 with SMTP id bq43-20020a05620a46ab00b00773db7b26e6mr12156775qkb.52.1698219225470; Wed, 25 Oct 2023 00:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698219225; cv=none; d=google.com; s=arc-20160816; b=alkOc39ChcOtTPhS7OJGTYbHD+kwTVJFF/hjG7XIUL+LC8g3L9CNHrXPPrjfPJfLug tl70zcNbPm1c/7PU2DVhEIx21hnJOiElLaUogbn8yPk+oy05BQ4EbImJSi+83ioHIeJr wj1ynIBau0ghvQwn9f7MASUXSfNotkyFgF5wH3fInr6NNcAOTKmxKrFsArBXOIKuHvR5 ZHyWu+j8WlNI0BvFVqIKwgmNI72vy0isaQuKNT92Y7DVMwTKx1ALUtRwVU54Zka7m5iq uaBhctKFp95nZZXHdthl4jkfqYenIec4jb21eb5icEebjxUQmSAO7YAeOj1G6M3vkfzF /Drg== 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=EHAeumhj/k6eiqLtdrKjjL6mwObgsX5DY/BFSjKBF5I=; fh=ycigHkwOPieh2u5PmcA89sNk/qPD1ZkdDlL8Mchfvw8=; b=LZ2H7R0lTHOurVrakQO0YGg9BEiOq1gb8xK2OfhIgriAmHESrMQOC6SdlqO356VWVB 6BxwdQ0pTl/JVQyAegd3OBvCiNC/zwPC0Ydg7fpgl9H7Keusmy4AQ0fj5bSWAyq8GapM 5z5L3m/9hxRbjlzth3QCc8ow/TudD8XTve3DiX+zVrQpBP1xhVerpYb+3eewV357Zb0N IG/ec0pzcEjRfRWqparzBWnLcdJGSCRsimHunrsHsX0n/COxRke1LDbzZX0Rm5pvEVG0 yxcZE0xujid82sASm1nW3SUy3lqKnRopV3NlRw0nSMgtqC1/k9WFM9/aFz64U6JvyPtK mFCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hqL4JFUc; 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 bq32-20020a05620a46a000b007756a7d993dsi8657166qkb.252.2023.10.25.00.33.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Oct 2023 00:33:45 -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=hqL4JFUc; 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 1qvYIn-0000Mh-AG; Wed, 25 Oct 2023 03:27:41 -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 1qvYIk-0000Lb-Fn for qemu-devel@nongnu.org; Wed, 25 Oct 2023 03:27:38 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvYIi-0004kK-JP for qemu-devel@nongnu.org; Wed, 25 Oct 2023 03:27:38 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1c9b7c234a7so46051715ad.3 for ; Wed, 25 Oct 2023 00:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698218855; x=1698823655; 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=EHAeumhj/k6eiqLtdrKjjL6mwObgsX5DY/BFSjKBF5I=; b=hqL4JFUcAZ9mdDvZOmpFY8ZMvNi4kHw6laQZnttTO2EfDRr297Sc5C9lO++yNupzlK kdxCI2yDwUl5K6Ozo8tD412w5hzHUO3KA1nSit9PIlHSy6BtbjLo91FH3joajhSzNAql jiP65pzeFdp7C1lune5CWNEgD+YNb8khhcqHkgIOcVDAkoL7Ol91R+9vtkG1WJwwyQYf g8tvNoH88865zLhGKaM5UBi3fMQ7Ii36BvfCXSycDuseS+rUXx4WDy/NNOnG91Ce+d3N Lltn4MvheatJyVM68T1rR8MXMa46gt4ax6L8ugvfKSx8ihvFmkgd6jMSNhmmAqPLs+sQ 1TYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698218855; x=1698823655; 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=EHAeumhj/k6eiqLtdrKjjL6mwObgsX5DY/BFSjKBF5I=; b=qGgF8hjiOZ2dUvPgVvdHzL66KNMh/9rwk3fC8GWIBYLFa1N8Lyxym47+FxlAXS31Ab /ciY7Vw5u2AD1jT3FgOI/F2wA4i9Qwb538q0omk0kaQLhfkcOCUp8LWFwJygpVQLlL1b hpLETXUuhVaD62CRVM8vY/trD0ZKkHO5+U2sHUAqxsm6Z/IFhwKPmphNMusx56PNLC11 eNIIyymcS5CzLQB2wdMcvG9AhyrjZALFq9jST/fNeoeCn1TEiGoI/Ih3fgrZWf0kgCfz OM1h5rpcmGpvYJlzJpcu7xmovpgvT5P+7e2VK+HmF3z1uuXT6mUT7go9LFMUKyrQ2v44 RdBQ== X-Gm-Message-State: AOJu0Yxueof0DjSZjHFHQPk7Vk2b4tFaXHBplCJOKBjTLKCUsh3v/71R 1qqunsydHesszYvVY/ZLfahh9AEbkTJULLZ6VUI= X-Received: by 2002:a17:902:c404:b0:1c3:ed30:ce0a with SMTP id k4-20020a170902c40400b001c3ed30ce0amr19255819plk.19.1698218855431; Wed, 25 Oct 2023 00:27:35 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id ji5-20020a170903324500b001b06c106844sm8578661plb.151.2023.10.25.00.27.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:27:34 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: philmd@linaro.org Subject: [PATCH 28/29] target/alpha: Use TCG_COND_TST{EQ,NE} for CMOVLB{C,S} Date: Wed, 25 Oct 2023 00:27:06 -0700 Message-Id: <20231025072707.833943-29-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231025072707.833943-1-richard.henderson@linaro.org> References: <20231025072707.833943-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x636.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 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: