From patchwork Wed Nov 8 20:52:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 742247 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:110f:b0:32d:baff:b0ca with SMTP id z15csp513034wrw; Wed, 8 Nov 2023 12:53:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/lg4vLyAa6cC0isAGCRCIwmW99E2SXhUo9CvdpAMVoPgtAsJ7wU0Ss43a+dpR+2Qrj3Vg X-Received: by 2002:ae9:f204:0:b0:77a:2f33:fc77 with SMTP id m4-20020ae9f204000000b0077a2f33fc77mr2899865qkg.73.1699476822061; Wed, 08 Nov 2023 12:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699476822; cv=none; d=google.com; s=arc-20160816; b=RXdFyGnFlGpXp2p3Vut+9LDMxlVljQ/3TWa4jDLvQSu122HCGGPBz7ZePU0wiSnMWk PAoHYyfmuLbJbkRyMxIMwsYvWX5IttW7IvwAhkiOkPdfB4B1YjXMDvQS9Y68DMesBTOM TnbcZiHs2mu7w0L7ZFxXdN+Oliztntr/Ksn2ezXNIDBo34Uyf2N3/twgkuhamKmGURaV wvcu8s6ShKC5h7KI47SVrx3oF2cfmjQ6gBFQhNd73yIU68XAliCRYEA8snK7HvuaBGeO 1sQiC9iPIjrJTmErpz5WDNAisD+K7woXDb5ETJYZPDOEOr06zmNkB7H9DW9GZ7/XeD5i 0zNQ== 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=L0rJMUi/gausB2354OHnP9/cZ1B+HNET88uH6ucO7Ao=; fh=ZXDWg7hKG7Hj19AbRuutTLw+Zvn/B9RsGUUw/YagpFI=; b=hBLkHNVxXfE5i0qdsNa1aHcdU3n2s529h9V+P9jq6nHB6oGiZfTQ1v5EQ5jMmLXkA5 KQh0qsDhLptJ0HBA9eQJFJVfRQAOHm5cTiH3kNSi+wvfS5lV7ockVwh9Tj7fCysiXEmf 9SaySjLaY7Bzqde8FqfRhKQf/ExKVZssaJCSrYZOsy6ENDuE3sZPAvLyOVM55TgnTwsk 50DjeZudw4ECoWp69FcHQKu8or//GbQ0eloz1+6X1mJFPkOIlxBm+GcpFuLIOa5W/S/L C0YlryVQ2DUykOXLaYqY47chR15wIdooMp1+2/oZOlP6NXNubpYqFRYAe4ez7B+LW7q6 Gmtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=EBAC3S3M; 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 r3-20020a05620a298300b00767b4fa5cd5si2047858qkp.93.2023.11.08.12.53.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Nov 2023 12:53:42 -0800 (PST) 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=EBAC3S3M; 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 1r0pXr-0002dS-DX; Wed, 08 Nov 2023 15:53:04 -0500 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 1r0pXo-0002cB-Lw for qemu-devel@nongnu.org; Wed, 08 Nov 2023 15:53:01 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0pXn-0004jL-14 for qemu-devel@nongnu.org; Wed, 08 Nov 2023 15:53:00 -0500 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4083f61322fso500435e9.1 for ; Wed, 08 Nov 2023 12:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699476777; x=1700081577; 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=L0rJMUi/gausB2354OHnP9/cZ1B+HNET88uH6ucO7Ao=; b=EBAC3S3MbnCiMn7olJrLvyGHpwuv9j0aOGv1W5G+tI5GOk9yZz2j23ZMzmrHsnIPpT 0dSgk6IMV3bgt4fiyapPxZCKqYYULo11m8h4HXBLiYkRXQ7n7d92NHu5I/B8++gzsKN8 VDramyyT2ys3mYs5kLIMq97Ihk22kCVSM4h9IjuXef73Jo9aAp4EU4R7dOyY/Mk8gVaN 4UB8tp/Arj6UFbPRgQ7zZnGbbNwJWegNLsvS6ZAVlgV9QGv83WH2YCnwmR1fyL0E+vx8 tFJ+DWsp4taOEQQ+Y+8G21QjsTLFN2LF0caVQuUgt8WSwLcegxFQt7aNB17zdO2KgyJE CYbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699476777; x=1700081577; 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=L0rJMUi/gausB2354OHnP9/cZ1B+HNET88uH6ucO7Ao=; b=pWf/sz70IDnLfwDF0wcCn99DmhuRI0lS2iRp+QcX05WwVTNY6lKZ9AFBx9Mo2LfPQh pOvWyWcJd3bmY6HK8wP09X0ZaK1ONpWfb8cnHPcRTl/F6VirgP1o0ER9ovEajbhIk1ju BWTh8nWiS2wt8+Qu54gb5xTeaNO87U4iHBypIyPUAXb4vaPl3uZ4GagTz5ceeRLa6UNC ybzy598dB7atE33E3Ynamcq8pRmeec/vroDsStpj22Z9KBdf3F8u/1X6ta16lHmjvXP2 rj2jpBeWbdqt+CtoTZik8JdRgNPbbL5MhKTJrxagwkyggFY4K2jOC8lmP9cBd5BkrHO4 oSdg== X-Gm-Message-State: AOJu0YxwE86pmtEfgWVM+dSWQgAVMELc5DHcx+MdHhuBcnCjSEwI7/u7 94TQJDe9nzC3ML6Lj1Gbjh5Q1mqyIScv/cCR2A0= X-Received: by 2002:a05:600c:3553:b0:406:c6de:2bea with SMTP id i19-20020a05600c355300b00406c6de2beamr2775616wmq.17.1699476777096; Wed, 08 Nov 2023 12:52:57 -0800 (PST) Received: from m1x-phil.lan ([176.187.199.60]) by smtp.gmail.com with ESMTPSA id l7-20020a05600c1d0700b00405bbfd5d16sm20539774wms.7.2023.11.08.12.52.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 08 Nov 2023 12:52:56 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH v2 32/35 2/2] target/alpha: Use TCG_COND_TST{EQ, NE} for BLB{C, S} Date: Wed, 8 Nov 2023 21:52:47 +0100 Message-ID: <20231108205247.83234-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231028194522.245170-33-richard.henderson@linaro.org> References: <20231028194522.245170-33-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=philmd@linaro.org; helo=mail-wm1-x335.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=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 From: Richard Henderson Signed-off-by: Richard Henderson Message-Id: <20231028194522.245170-33-richard.henderson@linaro.org> [PMD: Split from bigger patch, part 2/2] Signed-off-by: Philippe Mathieu-Daudé --- target/alpha/translate.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index 46efe1df7c..49e6a7b62d 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -482,10 +482,10 @@ static DisasJumpType gen_bcond_internal(DisasContext *ctx, TCGCond cond, } static DisasJumpType gen_bcond(DisasContext *ctx, TCGCond cond, int ra, - int32_t disp, int mask) + int32_t disp) { return gen_bcond_internal(ctx, cond, load_gpr(ctx, ra), - !!mask, disp); + is_tst_cond(cond), disp); } /* Fold -0.0 for comparison with COND. */ @@ -2820,35 +2820,35 @@ static DisasJumpType translate_one(DisasContext *ctx, uint32_t insn) break; case 0x38: /* BLBC */ - ret = gen_bcond(ctx, TCG_COND_EQ, ra, disp21, 1); + ret = gen_bcond(ctx, TCG_COND_TSTEQ, ra, disp21); break; case 0x39: /* BEQ */ - ret = gen_bcond(ctx, TCG_COND_EQ, ra, disp21, 0); + ret = gen_bcond(ctx, TCG_COND_EQ, ra, disp21); break; case 0x3A: /* BLT */ - ret = gen_bcond(ctx, TCG_COND_LT, ra, disp21, 0); + ret = gen_bcond(ctx, TCG_COND_LT, ra, disp21); break; case 0x3B: /* BLE */ - ret = gen_bcond(ctx, TCG_COND_LE, ra, disp21, 0); + ret = gen_bcond(ctx, TCG_COND_LE, ra, disp21); break; case 0x3C: /* BLBS */ - ret = gen_bcond(ctx, TCG_COND_NE, ra, disp21, 1); + ret = gen_bcond(ctx, TCG_COND_TSTNE, ra, disp21); break; case 0x3D: /* BNE */ - ret = gen_bcond(ctx, TCG_COND_NE, ra, disp21, 0); + ret = gen_bcond(ctx, TCG_COND_NE, ra, disp21); break; case 0x3E: /* BGE */ - ret = gen_bcond(ctx, TCG_COND_GE, ra, disp21, 0); + ret = gen_bcond(ctx, TCG_COND_GE, ra, disp21); break; case 0x3F: /* BGT */ - ret = gen_bcond(ctx, TCG_COND_GT, ra, disp21, 0); + ret = gen_bcond(ctx, TCG_COND_GT, ra, disp21); break; invalid_opc: ret = gen_invalid(ctx);