From patchwork Thu Apr 25 00:00:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 791774 Delivered-To: patch@linaro.org Received: by 2002:a5d:4884:0:b0:346:15ad:a2a with SMTP id g4csp1118493wrq; Wed, 24 Apr 2024 17:08:52 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXZjocuK42rJlB1AUpOj2Cv+kuPy8Qg/8h6tj3U88JDPb9tjEi79tCAOkf8M+zXSeUI6MMArWGbBzTlTJ72/A4a X-Google-Smtp-Source: AGHT+IEdBXBsgg5jr2dpabbzJyUj+ihv+JTVCTY4/VYJ0XT7owRQARBqodI70Ft+Sp9LvtvgfOmJ X-Received: by 2002:a05:620a:1721:b0:790:96e8:dbc9 with SMTP id az33-20020a05620a172100b0079096e8dbc9mr1957065qkb.39.1714003732299; Wed, 24 Apr 2024 17:08:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714003732; cv=none; d=google.com; s=arc-20160816; b=DF8+klxVK1yGxDQObBysFixHMzn8rsoiQiBmLrcQz+FpO/SSCMdiZcd02pfkyTav6O FsSiZUPUSXS7BjL8h1GWMNBaCg6CNHe6ogV8bCOsPud2N1h5WeFpKa34YDeh+a6gE+NE oO6Cc/07NjdyEAf+dtrEwaKefqSfKRTJnqy4fZfsf/oiup7NE6/amAGsG4H+J+oe+y03 5PIQA+Iix3e+Ixf67OT/8ZuE9J8INaMOqs5W4Dr9byquKuXtA/6/I3dSjNCm4hiXmjF8 vH24zWvvEIPkleDw+g2GAFARnvCkkqS0VGfku1plUL2jKvDJWuWvkr/gcTziweSopi2u pP3w== 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=EEr/CTx0m18MWffmgDo1fGRGoUzQVxqe+gQYA3aCxoc=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=0SZV/7jHuBvyR9G/AZ3DUaqoqLOfddfib+nUh5RgllcUWRJcmOpQauG+YhxOdkY3bM KfrRyjWU3lbpli72Tyhp3/n/PqH86j4PcE+vdH2cSWaHGPjx0GaXdctELD8zWH1qiW7+ sU7Y7828nnYRh9G1mVj7PE3/l3MdmM6uY3ivW3V8yvGboZlk3uZtQULqnAQtqbxf3VHi NKkkZ6zVoHaWyqix+9oNBbO4/RgV7pKpzn9Y0XMH2q9oC0y40A9rya57AuF+wup+7P90 6vM7yTmHYeNWSqeZknzCJEc6pZ/w/crSdTX1Kpp9aALX8i9kpNaCDL4QLpPKiY8sXPFV cLfw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hCU4L4zz; 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 b19-20020a05620a089300b00790677b0921si10732239qka.428.2024.04.24.17.08.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Apr 2024 17:08:52 -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=hCU4L4zz; 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 1rzmY5-0008MS-IM; Wed, 24 Apr 2024 20:01:13 -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 1rzmXk-0008Eb-BU for qemu-devel@nongnu.org; Wed, 24 Apr 2024 20:00:53 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rzmXg-0006G5-5r for qemu-devel@nongnu.org; Wed, 24 Apr 2024 20:00:51 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1e50a04c317so2386515ad.1 for ; Wed, 24 Apr 2024 17:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714003247; x=1714608047; 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=EEr/CTx0m18MWffmgDo1fGRGoUzQVxqe+gQYA3aCxoc=; b=hCU4L4zzDPERd67/JeMoDYuuqpAyOGk5paakVXB5GyiN4Pf2LYAQLo+zVwgpYPmL2W /AZcNc1Gmej1XPW5AdH1nyxbXpqcisjMaG9Ha2hDPSeVnsp0wiuXHf6GRzZlFpqHj1ql tidTMb82t+TDAV0xke+vX+TbPvsJ28B390SK3oNAzThEa2F1G684otayXvvfvt8dL+6r BcLyVOZLsVOGGeqI+jGq1e4McWKfs9M5/tWjOjlBt9HmHAvzaO+x7DmvOmj2l/pCzy4o E/qYtmSFJv6MRHZ3wtJ3maIHL9Su9cBmyT8OhWFq9G7Rd2QQMtcZgI5UrPO6uJzWByZJ l8Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714003247; x=1714608047; 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=EEr/CTx0m18MWffmgDo1fGRGoUzQVxqe+gQYA3aCxoc=; b=b4BF3uLN4y0k0OqAn71LCSYu/cU0rMADZkMCNPWoHYwuwUEJUvDxJ7ih/L07qlWC1M TRfdxUTiWBOcHeeaUZvVaL9CAQvvR6hfCTx3NYD3xCievWZ4ergzfkikzzggJpds9rK8 IF/rB/RbjUobmOPQefs72VlKTQ/N82ZathZHDMw5YgYDMHBXlcEKvReaTGddRoK6biz5 jpVn6YLs8Lsz1oFro29kD2DelLnb+D1sdlSB2U4vLARpydzqTAJmx64KOhFwHoi7TuxG Qd/ZBjUa+0SpcbiOz1Jl772V1eOFCpbUgpF6y2v5F4IC7W5yJBLjmVZefA4f/sTEfGy1 7v+Q== X-Gm-Message-State: AOJu0Ywsj3Xie/Sm+Ml2dTgoa5uVRdQk4mnZldWowfaaTgGwTJcxTbpx xANERSGkm/WmVghTr1hH+VGNBKlykaWHvNM09Jpb+crMv4fJCLqocXdh6bVhdgIwPm0EJKsDWvX M X-Received: by 2002:a17:902:d481:b0:1e3:e25c:fa5c with SMTP id c1-20020a170902d48100b001e3e25cfa5cmr4885437plg.67.1714003246850; Wed, 24 Apr 2024 17:00:46 -0700 (PDT) Received: from stoup.. ([156.19.246.23]) by smtp.gmail.com with ESMTPSA id t6-20020a170902e84600b001e604438791sm12465715plg.156.2024.04.24.17.00.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 17:00:46 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 22/45] target/hppa: Use TCG_COND_TST* in do_unit_zero_cond Date: Wed, 24 Apr 2024 17:00:00 -0700 Message-Id: <20240425000023.1002026-23-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240425000023.1002026-1-richard.henderson@linaro.org> References: <20240425000023.1002026-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x633.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/hppa/translate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 1e772bef4d..de510fddb1 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -1004,9 +1004,8 @@ static DisasCond do_unit_zero_cond(unsigned cf, bool d, TCGv_i64 res) tmp = tcg_temp_new_i64(); tcg_gen_subi_i64(tmp, res, ones); tcg_gen_andc_i64(tmp, tmp, res); - tcg_gen_andi_i64(tmp, tmp, sgns); - return cond_make_ti(cf & 1 ? TCG_COND_EQ : TCG_COND_NE, tmp, 0); + return cond_make_ti(cf & 1 ? TCG_COND_TSTEQ : TCG_COND_TSTNE, tmp, sgns); } static TCGv_i64 get_carry(DisasContext *ctx, bool d,