From patchwork Mon May 13 07:46:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 796537 Delivered-To: patch@linaro.org Received: by 2002:a5d:452e:0:b0:34e:ceec:bfcd with SMTP id j14csp1884637wra; Mon, 13 May 2024 00:54:11 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVstjcJ6sTUNXW38OAaeUFpeq4tGnZQ2Ft66ygZQykKYn4moe7NhBa3dCx+bQaWfmpfWxZmPSvo5gNIfY5q1Eya X-Google-Smtp-Source: AGHT+IH1S2d6rFePmK3JFlh8DWv/F3QrZKdFFtzAXjz+h+9y7LXXsb83uAbheDLVOLTQEWJe1+Vf X-Received: by 2002:a05:620a:2987:b0:792:c683:1f48 with SMTP id af79cd13be357-792c75af002mr1284726685a.36.1715586851097; Mon, 13 May 2024 00:54:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715586851; cv=none; d=google.com; s=arc-20160816; b=j33JtRcdEaX8pnU7RfsY5Kn9/xVaCk9E9zP7JyQTkZfHrR5K6dLNRRALFidJysK1jG m2Z3UEwVeE6N/6gfzrh6aDf4hLAK4K3fZqYf5Q3Hx0ZwYLSueKJUW7r5sCAvTykFSbzX 9enI478KvVsoR0b8kXgC9PbLYzPScVCjSSJpQ7tKsFz8f+jYvLHuO3GAJlrAt9mwZ7sz QPVHtnPFg4QGHO2n4Xw23Ec3UTi9Fa3969Q4STOQevSB258UQGtYoh6qOXHmttt0D3t7 VBHn/wwQklpaNQRSC9nDg6kcLp2CiIbU53ISGYSYTnbAw/P2TKg+neQHuXja3MVMGVgg ODUw== 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=Snzaxs9GYAdAfilaaEFzVoEJKRW+Fg+Xd5Y1VwkG6O4=; fh=f2WZoDMBYjCKWIIOoPI+rQtxlv4fmOm4u+dLdQLqpOk=; b=Hh513RSXMijqWJj1Y7qKHRMVJ/On1yioWB/QLSRH5qDZwxa4w3B51lhe09NRw0mNbA 4PsagtDs9cU2VxnzVFyiWxTDM/xQJOP5Za/Bnvy+66FL+GktxLQHbf0ZToQBulmi+6Fp q714Dz2jhxDOcbFUbUBaclcFKywu0axYyoVLqmmtYsDYjN1YAqsIAq8MqDhaRThNfLLP pemBYmQqluezKnLRZU6tCq5/Ba6OqBx+Hj4f2uTV8lm6mEJrsXvXNgV+XtzhSVvo98VQ 7mulYuOfMF4NJG94PUU8181tKVS3Zhr8zSyNLlvseccpfpKpg2rgm0FEXBL1gn9Sw/45 11vw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nPShHEw6; 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 af79cd13be357-792bf30a7besi891140585a.294.2024.05.13.00.54.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 May 2024 00:54:11 -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=nPShHEw6; 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 1s6QQ2-0003eS-KE; Mon, 13 May 2024 03:48:26 -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 1s6QPL-0002rY-91 for qemu-devel@nongnu.org; Mon, 13 May 2024 03:47:39 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s6QPJ-0001O3-13 for qemu-devel@nongnu.org; Mon, 13 May 2024 03:47:39 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-41ff5e3dc3bso17921055e9.1 for ; Mon, 13 May 2024 00:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715586455; x=1716191255; 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=Snzaxs9GYAdAfilaaEFzVoEJKRW+Fg+Xd5Y1VwkG6O4=; b=nPShHEw6cgNL4C5djyZmMiKdOe1SQPyRfBuK75OT4Iz5h8eyr3x1LnJXnkRgLumnj8 1fVgDoNyfUs90G2wcgMxS7tqHX/Shd7fkzeTAl4FeqI8r3syHq++Og3bbjTaoKjGXqdu cHVdGfag+ItgsuNAEXBRsREEwV/7t+4PHpTRQs6DqNXqrW+ICbiEcyBkwB4tg3dJcvIP Vu9clJq8tyZfE/p6pprSxnF58x5VfGEKxdjSelEYQfeZDDRtMnfdlsMNloHzIG5JpF6Z Gaw+cnstXCBB6vkHGzQ0hkyMsd3zz5ozsiFNUd/YBb6+vE404ZhxXFoQx36fqmo4gcjx ObwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715586455; x=1716191255; 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=Snzaxs9GYAdAfilaaEFzVoEJKRW+Fg+Xd5Y1VwkG6O4=; b=InFAk7vW3n9bjsYtzHY+GY2ArkA+XqrQHh7XdOMetWJexTzXXHK3B0MkzU5yLW/t9b rPhqdanYFAFa7RbqVgQyfQVbB2PKkarnT8b2+x3wdarIFl119MKdtuI+RFFnr23mTwYJ TQVgcZLPG96/gR8NMibT2DJT2LAxlhi2IAUe3clyLCBMeCvwNGGmPftnKVtLS0S8vWzE goKcCgUyfswYNJNB03rc9RJb6xw7VyLww7uGEWUjDIqXOUlIkZfDdWGkipM4a486ZXSh hpiuFVZlAMdW47gADkks7OhVwgc35CpFz6s1QZ6vlWOyzxcFQK30gQJfB89IJllxNYhH xjdg== X-Gm-Message-State: AOJu0YxH3kNrxHnAlE6O6zszHMkeUPUbY7ZFsHa5ZDjn1lgvgFTrTuou 1XY/Y9ajNaZL3kcNrmx+0P55nb8OWH1dEE2PIhnHJkZAA2fVOSV3hV3n22cRFzINap4WHEnYt21 ZJas= X-Received: by 2002:a05:600c:4703:b0:41b:85bf:f3a8 with SMTP id 5b1f17b1804b1-41fead65a26mr61950935e9.35.1715586455592; Mon, 13 May 2024 00:47:35 -0700 (PDT) Received: from stoup.. (12.red-213-97-13.staticip.rima-tde.net. [213.97.13.12]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fccee9318sm148204765e9.30.2024.05.13.00.47.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 00:47:35 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH v2 23/45] target/hppa: Use TCG_COND_TST* in do_unit_addsub Date: Mon, 13 May 2024 09:46:55 +0200 Message-Id: <20240513074717.130949-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240513074717.130949-1-richard.henderson@linaro.org> References: <20240513074717.130949-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=richard.henderson@linaro.org; helo=mail-wm1-x32a.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 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Helge Deller --- target/hppa/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 50cc6decd8..47f4b23d1b 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -1419,8 +1419,8 @@ static void do_unit_addsub(DisasContext *ctx, unsigned rt, TCGv_i64 in1, tcg_gen_shri_i64(cb, cb, 1); } - tcg_gen_andi_i64(cb, cb, test_cb); - cond = cond_make_ti(cf & 1 ? TCG_COND_EQ : TCG_COND_NE, cb, 0); + cond = cond_make_ti(cf & 1 ? TCG_COND_TSTEQ : TCG_COND_TSTNE, + cb, test_cb); } if (is_tc) {