From patchwork Thu Oct 26 00:14:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 738274 Delivered-To: patch@linaro.org Received: by 2002:adf:f842:0:b0:32d:baff:b0ca with SMTP id d2csp559135wrq; Wed, 25 Oct 2023 17:38:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFCWoI1Ji+As3HnZ1Z495aarduLwarACTJ34A0B88fCguAxbI/ec+IWFb2bVzlJZHVi+GCU X-Received: by 2002:adf:f151:0:b0:32d:82f7:e76 with SMTP id y17-20020adff151000000b0032d82f70e76mr13556000wro.34.1698280703127; Wed, 25 Oct 2023 17:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698280703; cv=none; d=google.com; s=arc-20160816; b=YPyTgu31qJ0k/jQaDmIEv+F1C2MoVaub30VhJ/wrPZckJHABSdx/+i4XoNmKECl78V jGQoirytxozcE5i2UCWs/nbeOTrYJUcS7x1hPSSIWpmwYqqDpie2GH3L1gBhF2Zn7/ND u5tvuuq+rDzgTPieQMwD3gpcg6DWn7r2+zTkfLOU7wxtOQ0u9CYt+Nj4/7rYtG5WIeS5 kXPYQhFYDTckxu0hcUEPGS+2i8sacjESx/MI0atAb81vmnUygfmUKwAxoIuNwKpXBPY6 ypq76nTWtmNul1cLcHCtVEbq8m2M4Md5/tCcDnjSWaMQGtNpLpK8w6HrOC3jyNB+lqqB 3jmw== 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:to:from :dkim-signature; bh=EHAeumhj/k6eiqLtdrKjjL6mwObgsX5DY/BFSjKBF5I=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=J7kz7c5+gCqvpKDzLRKGZ4NuMOnxBmXoIrIRsCPIo3P/hNC3vxPA/Z04lm9y1SmjPD q9l2ZUhwtnOzRtwOe8tno4GcCkEXGLLJX3i3ZCqkAnWtE7EZMvoMfYz6iGIrYiispONq r2hO/oUQPOWVu+3cw1mCJvJ3QP98eH37gIEwa5sCCJXm6qLXX8hIjPylYfY1OAM0vWeO SfEwFIG92Yf8ZGo7rY7o+8m0hupnE60Y6GXXWe41G7n8DvL99AUFMZWruUZEy8mAkgln SPtmRKZUi1eTjTdewzn3ghwA59ccTcQOkHwr+jEokqfk3wJAwWS7rYeYCuQFs6loezlg xo9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mgt5qT0D; 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 co21-20020a0560000a1500b0032da688fd9csi8703908wrb.852.2023.10.25.17.38.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Oct 2023 17:38:23 -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=mgt5qT0D; 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 1qvo6c-0001yL-8Z; Wed, 25 Oct 2023 20:20:10 -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 1qvo6A-0000wZ-O8 for qemu-devel@nongnu.org; Wed, 25 Oct 2023 20:19:44 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvo5y-0006ci-KC for qemu-devel@nongnu.org; Wed, 25 Oct 2023 20:19:42 -0400 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1c9e95aa02dso2342595ad.0 for ; Wed, 25 Oct 2023 17:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698279569; x=1698884369; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=EHAeumhj/k6eiqLtdrKjjL6mwObgsX5DY/BFSjKBF5I=; b=mgt5qT0DBNwI4mrDNeTLnRe01XVQC7ohviSstpeIz5KWPmyNSlvI9t19YASv2pKm2i k3e7p1qM3XolTsVgZicNUhxV8ZJt8SbK6UUbN/1vkAXcW8rK2JBU6Lj42xqQcAl9T0YB bLZK2OuB6e5khUZ9oTZM9h6mANkoqVwXBJbYtbRWRX/0OBOA02TK5/dJanziAxfGKdvX v3nCDDD6k/eCZw3d+0Fn7q5WUtj+1I8jcE3YCG9EtMJGa21ztmzomY6IHBAcqU32sN6q EXpf5Yf9eN/bGJNFse1hCZTWjR0tVsA7yXGD8RFbybbbC065F2+OTLLkq6/2CcjYbr4g 7HDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698279569; x=1698884369; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EHAeumhj/k6eiqLtdrKjjL6mwObgsX5DY/BFSjKBF5I=; b=lHsJjQeyMtjxT7loZbAQaUNFHZbzKKGPyefHlpbE5wSgaYeIOZRrrzpNLixs5elOWl lM4KrULFfS30ypGWtdg9giDUjlxCcvETtHTmTxFTUPz1X0aFtV7QPM8XRsqh7QT2Q7TD o6zueZdwX3MqkST5R/9+82yAWjTfN3CJfPA5ogZnqKyTTlA2KtHm+I79S5k87cjqwOvt +OEYpbIL6HbMiRUYcz0bhK1vBfZR6SivLqOmX71dQ8wuFTCnMvhFIIW8IBvp8b3el9Xq RP9PkhqDQIZBkrcb6ofJ3gilHEGbstfaKvHP5q2BAywcqf5VZ1p/xFmh6fxF2GJR6fHT pmbg== X-Gm-Message-State: AOJu0YzKUDpGPbPmx3amOCfuqWohmFI/m/MtLjgcGiik/hlz4ct+N1mw lhFsBH0wd8lI2WjwIkbJhWGBVt+4HKqGe3y9GnU= X-Received: by 2002:a17:902:e883:b0:1c5:c546:fece with SMTP id w3-20020a170902e88300b001c5c546fecemr1530817plg.34.1698279569435; Wed, 25 Oct 2023 17:19:29 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id jh1-20020a170903328100b001c5fc291ef9sm9754655plb.209.2023.10.25.17.19.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 17:19:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 28/29] target/alpha: Use TCG_COND_TST{EQ,NE} for CMOVLB{C,S} Date: Wed, 25 Oct 2023 17:14:34 -0700 Message-Id: <20231026001542.1141412-56-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231026001542.1141412-1-richard.henderson@linaro.org> References: <20231026001542.1141412-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62c.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: