From patchwork Mon Oct 23 16:09:40 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: 737253 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp1610981wrl; Mon, 23 Oct 2023 09:11:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFp/Hr9eNCwNn37fASZSHZw2icZ5s6MeHcDMsGT3Oj4EguMVC9mqRkeJ7Qva+HdwS8SG58o X-Received: by 2002:a05:6808:1a88:b0:3ad:fe8d:dfae with SMTP id bm8-20020a0568081a8800b003adfe8ddfaemr6866490oib.57.1698077486559; Mon, 23 Oct 2023 09:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698077486; cv=none; d=google.com; s=arc-20160816; b=OV1JydC0Gz5CcyT8Oz74YemcUnyy/UNZBXbcyJmcdi+Eez8BG+XUeyjhzr3KJ0vo7o /0ceZQHye7LzUiYvsD2M7OtZYwvuvlno8wBBFNMc4MEESyq1t+2NiJXcVBfhT+L2mtNF PkGpVv60E+S3ZpePlTSOXsMbNFQCyuzbwMwyij8mBph3u3bdrTO0VJbuWkym+Vi+TA07 IQZa8FHXZBPwOg+kkcq7hb1gs2HG0sPtHY9LQlIYD0TQMoohtIBfdq8DXbqCeA3/NZD+ NQqdPgKcBaPFjmx4wi1wtf66La/TqdNnZSN1SLo+yrHNIfT86oweBm39gMAAbtm+qcTf Kc6Q== 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=4jeYU2eBThHCBIgCveuE9hS0ohpcPJOThHJUYhTifyQ=; fh=Cvht7PUShZEX/siyFI77eHC9GqIpxNDPxoPNDtPysxQ=; b=rmADc77J/776ZFEAPe+jyw6Ip0ciRuAiYDHYQBLe1vCyx93P8Set03WFvIqpVTsXq4 0NIus9/uGzcvAqpdUkFqV2zVSXS9ClKg+WZYJW1dmJGuzg3rYbOzxLGAADjqvsxS0jN1 9Cc/wHFzNKBCP1wmcg5tYbw9EH2LLWa5V/oAXQ9WKZGkY0exhlTjGTU3obNuodqPQwcU Vv+msOVf1fkJr88qFehIA5eEXka3pfrOnPQaCn+dKPedIyA3FgWFJQcb7lSOM5Bxh3lX 8+HDAzZbLFpVfcBjtQVHbF0Innkj6R8SBCyRxVX44Ur8f/5M7syvFoUiBueurQ5oDPLA kRxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uQCCgTyP; 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 dn5-20020a056214094500b0065825c392ffsi5695193qvb.398.2023.10.23.09.11.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Oct 2023 09:11:26 -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=uQCCgTyP; 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 1quxVW-0001eT-OX; Mon, 23 Oct 2023 12:10: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 1quxVV-0001YE-HB for qemu-devel@nongnu.org; Mon, 23 Oct 2023 12:10:21 -0400 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1quxVT-0001jv-RA for qemu-devel@nongnu.org; Mon, 23 Oct 2023 12:10:21 -0400 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2c5056059e0so52852331fa.3 for ; Mon, 23 Oct 2023 09:10:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698077417; x=1698682217; 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=4jeYU2eBThHCBIgCveuE9hS0ohpcPJOThHJUYhTifyQ=; b=uQCCgTyPu082B/ZR6WJiUayNIuOSkqAGp1TpfMcI4yzoyXldu+yPt0zWj9+6qymAPV cyUfP2iJDe/+CDHfC4OrKHaQPHy/PWkE+5eKo53+gjuCirWpjh9UyabnrLyWzC4a8Icc EOJKapnfbgiSxgyZfkInpBbQrl9YpuQqE35C+TT5OYyiTgSZkH/wkpwy8w3GkcngAmqH 6d+9chaaXnwO1bJdjneTGVe+45bunSvW/BQwTgVF/tKSL+kdMfQcvyxS+znFFoacN664 +Ez27pIkZLCADi3FZYhUgRIIwEAYB9C3z+9Xqix0GZoRrVTBUuGfuWy/ivxpvWzsZD5H FysQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698077417; x=1698682217; 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=4jeYU2eBThHCBIgCveuE9hS0ohpcPJOThHJUYhTifyQ=; b=PKLDhxHp4Dfm5bNBtUJ/UTOwWDiRlgMJPBy1K1+KKPg/Hc+kXqa0Taf+4oBmtoiBKB QpH5udKR+zVRIFjq21b5ktexLOS95D6uwwGOoqSud0BPuH70WC9mTOilZzpEdMfXHe+G Euf7V58/t0l8m4/7wXiTGOOSsfWUjwV0EF7Z5schb+YMDfCZ7hK5lwUoVIT8r9+73a2h zOP/gBirxAlGnrZ3yKooD2RDY7sScPbiOtKxryrGU5bR5rot9TsrpJ9gRLSW7CIXinrN icE+3PlAcvwd5SDYDVcLAPL4XbBXTkL2491YKCGTEY7/ZtCGU7I8Skr9jNro4P2d2kZK zENQ== X-Gm-Message-State: AOJu0YyMeGMNdL0/HfVGG0byEbVFPwtkYkcxuEMs8E/gEJM3pHqAB35e bHeU05YhGoURp4IO2iLvwIlaoB6jdEv4Kb0K6SQ= X-Received: by 2002:a2e:9396:0:b0:2bc:d634:2210 with SMTP id g22-20020a2e9396000000b002bcd6342210mr6100008ljh.16.1698077417688; Mon, 23 Oct 2023 09:10:17 -0700 (PDT) Received: from m1x-phil.lan (thr44-h01-176-170-216-159.dsl.sta.abo.bbox.fr. [176.170.216.159]) by smtp.gmail.com with ESMTPSA id x10-20020a05600c21ca00b003feea62440bsm9586039wmj.43.2023.10.23.09.10.16 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 23 Oct 2023 09:10:17 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Mark Cave-Ayland , Artyom Tarasenko Subject: [PATCH 5/9] target/sparc: Use tcg_gen_extract_tl Date: Mon, 23 Oct 2023 18:09:40 +0200 Message-ID: <20231023160944.10692-6-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231023160944.10692-1-philmd@linaro.org> References: <20231023160944.10692-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::22a; envelope-from=philmd@linaro.org; helo=mail-lj1-x22a.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=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 Inspired-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/sparc/translate.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target/sparc/translate.c b/target/sparc/translate.c index f92ff80ac8..16d9151b90 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -740,14 +740,12 @@ static void gen_op_eval_bvc(TCGv dst, TCGv_i32 src) static void gen_mov_reg_FCC0(TCGv reg, TCGv src, unsigned int fcc_offset) { - tcg_gen_shri_tl(reg, src, FSR_FCC0_SHIFT + fcc_offset); - tcg_gen_andi_tl(reg, reg, 0x1); + tcg_gen_extract_tl(reg, src, FSR_FCC0_SHIFT + fcc_offset, 1); } static void gen_mov_reg_FCC1(TCGv reg, TCGv src, unsigned int fcc_offset) { - tcg_gen_shri_tl(reg, src, FSR_FCC1_SHIFT + fcc_offset); - tcg_gen_andi_tl(reg, reg, 0x1); + tcg_gen_extract_tl(reg, src, FSR_FCC1_SHIFT + fcc_offset, 1); } // !0: FCC0 | FCC1