From patchwork Tue May 28 20:30:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 799513 Delivered-To: patch@linaro.org Received: by 2002:adf:e110:0:b0:35b:5a80:51b4 with SMTP id t16csp421742wrz; Tue, 28 May 2024 13:33:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXH4Yl+f9nsDf33nJElXSnvzVqqPGvkO0wF505X8/o80BwAm7bvOMxZKJYLN9PQU9r0EFf7g/aDhom1OKNtcjKC X-Google-Smtp-Source: AGHT+IFm5Pd3vK1yNYoaYrXWrxNDr8pvtkVDe6IRlZQDu8+xA8wQK6M++M/l6cGHvRgVgy2uYMqj X-Received: by 2002:a05:6808:16a3:b0:3c9:c439:bd2d with SMTP id 5614622812f47-3d1a7647269mr15546297b6e.43.1716928397048; Tue, 28 May 2024 13:33:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716928397; cv=none; d=google.com; s=arc-20160816; b=vBFKlQHcwM02ekQIPh0cgjvpDEJJJyUL0BVDtzkNqN7KghA+2MI5lvjbtnTdBl3aJT ip9UB/5nW1oiMxftD6wJFFEfPHYOoBqEULrEWY3h+5VZPceBcZQkier86J4GCuwKQvVy CFuqsIJBEHi85P0r0U1qc5Rq8dE1rzglF4ulmexyw9DEOCSocXRiRsLC005IClDc0jYm 8Lvm444xLH6UoLXtf3cvbSGVO2SZ18HCL5NdS/yN+4Jz0nzKZMwjFsCBO5/1ZpsaqnMa CRD3DiBRVFeV6m+rS5R39SIsDn4qiDMK9eF2p2/pgAw2Ox8QFQ3Ogj0UYTMtuKRQ8Fcv L5dQ== 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=ODn/W9Q3dOBbNGA6DETDFah62NRsjBjYaUKDzhwUZZ0=; fh=ZhBia3nL9o1nuf7SbgdYn/0pDmAeja6gisyWXi2cqYE=; b=r7D/jcRX9c10PI7xeVcSqf5/DUDnA/Yhob6GRf8TGIa9FwAq0wf6nDLIxWsu9BCp8c ZknKzI0inNZMg9dQZmotWHOAGD/jB34SlEKDfgtVzXWmkJjc+kKhI8rM71OzepV6uNeH BBYoCOaQUKh/s3rZBTPk2y0HPPzMgKpMKTIIHcy6g/oN+GsxwRdK/0k77XSGZ+E0iND3 gJ354b7h7AdXgEdZS20+2gHyTxm3kMgHuhOXOhgGq7X+w4QtsZ3/K1Lvn5gx+EmnV3gQ MFUwvL6k+mAUxIywA5zRKAlGOpockyzx8TYaN8oYxahzySMhxyU/sXK1KJUMmmbYjMyD bm5Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=rQLWYGmU; 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 d75a77b69052e-43fb17bd2a1si109776931cf.146.2024.05.28.13.33.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 May 2024 13:33:17 -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=fail header.i=@linaro.org header.s=google header.b=rQLWYGmU; 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 1sC3Te-00033w-2A; Tue, 28 May 2024 16:31:22 -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 1sC3Ta-0002zu-1N for qemu-devel@nongnu.org; Tue, 28 May 2024 16:31:18 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sC3TM-0003gE-Jg for qemu-devel@nongnu.org; Tue, 28 May 2024 16:31:17 -0400 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6f8eba8dcfcso1028619b3a.3 for ; Tue, 28 May 2024 13:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716928262; x=1717533062; 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=ODn/W9Q3dOBbNGA6DETDFah62NRsjBjYaUKDzhwUZZ0=; b=rQLWYGmUTFxDT6u2mGUieQA0MYuArmiSy6MPpPmNPaOHm98e8AMKOFMMNBGXQ91iCN 8wrpOaaHYNS+90sjV+NojDfwSIRv6o+Zy53kbNVQFGn1LNgxjbG9H79lYk1d5s4IxVOk Ds/ZZRqO4pscwg/zmSvFscRycccbiGGbo651Dzyw3RcNWXgnvFGgEwcZMdJGCv/k6lC8 txL7yVMhRermhOFHzxuh3s30/EbFQPE4egjHl5yeVrLflOXpIl00KCN3zpbC54of2L1+ JUy2OEPpqf2oJ65Ure4LofRtNRZLSs6jYwBkb5DGD+g+pzwHnK6LlK3h3BV1XpRsNPqi Ms6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716928262; x=1717533062; 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=ODn/W9Q3dOBbNGA6DETDFah62NRsjBjYaUKDzhwUZZ0=; b=agT2TDmrWKmqcn4KP3YmvoxXSmP6ILzpxx28GLk5QzIeftI+e+LeI7SrmY+wh+JdVp rOhvZWeimXEOvSirx9A4ir7D+jyOhKGN0XPXJ9Kx5mj5S0uq+BQK0Os1fz1Pk1gEa1rz d4crSZRF3qc4gg6xsy1hb1gvOsUrV/MpPID3/FHFEj7moKI2MOMTozWuiGJp5k7JfCy8 MAeyk/eLc7o6OoDzUPfjhmwXdg4M+Fem/IAYxqB53v7wueyNPDQjUcMIyRysz/WWNpsf 8XiOJ7R0f+eJOTDk06/xYo3b2wk5dXK3otUvnzcTNIEyNFYmg+3KEjqzrYe0oCqYQqyV ovxQ== X-Gm-Message-State: AOJu0YwSf1gGvFGMQrUGMiNs+YaTZemqw3OZgbifCnwRJhvm9FarcCz3 lTr78uhSHWlUl7Aj96mgZiOTkt1zuWSShZuSn77O45UPcQWl6jyxwJczx9HX2EGZsXIFIQe4YFS + X-Received: by 2002:a05:6a00:8089:b0:6f3:f970:9f2a with SMTP id d2e1a72fcca58-6f8f2f754f4mr16843395b3a.10.1716928261843; Tue, 28 May 2024 13:31:01 -0700 (PDT) Received: from stoup.. (174-21-72-5.tukw.qwest.net. [174.21.72.5]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f8fbd3dbe9sm7042036b3a.10.2024.05.28.13.31.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 13:31:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell Subject: [PATCH v3 18/33] target/arm: Use TCG_COND_TSTNE in gen_cmtst_{i32, i64} Date: Tue, 28 May 2024 13:30:29 -0700 Message-Id: <20240528203044.612851-19-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240528203044.612851-1-richard.henderson@linaro.org> References: <20240528203044.612851-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42a.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=unavailable 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: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/tcg/gengvec.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target/arm/tcg/gengvec.c b/target/arm/tcg/gengvec.c index 6dc96269d5..e64ca02e0c 100644 --- a/target/arm/tcg/gengvec.c +++ b/target/arm/tcg/gengvec.c @@ -934,14 +934,12 @@ void gen_gvec_mls(unsigned vece, uint32_t rd_ofs, uint32_t rn_ofs, /* CMTST : test is "if (X & Y != 0)". */ static void gen_cmtst_i32(TCGv_i32 d, TCGv_i32 a, TCGv_i32 b) { - tcg_gen_and_i32(d, a, b); - tcg_gen_negsetcond_i32(TCG_COND_NE, d, d, tcg_constant_i32(0)); + tcg_gen_negsetcond_i32(TCG_COND_TSTNE, d, a, b); } void gen_cmtst_i64(TCGv_i64 d, TCGv_i64 a, TCGv_i64 b) { - tcg_gen_and_i64(d, a, b); - tcg_gen_negsetcond_i64(TCG_COND_NE, d, d, tcg_constant_i64(0)); + tcg_gen_negsetcond_i64(TCG_COND_TSTNE, d, a, b); } static void gen_cmtst_vec(unsigned vece, TCGv_vec d, TCGv_vec a, TCGv_vec b)