From patchwork Tue Oct 24 16:58:59 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: 737562 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp2140176wrl; Tue, 24 Oct 2023 10:01:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLwTsx4wPTKMmwIlKS/7f5/jiEA/dixnCcp60r/JhlI8y3MCyL+aI1ErR0vQvVkFjAh3EX X-Received: by 2002:a05:622a:1490:b0:41e:1f5d:7009 with SMTP id t16-20020a05622a149000b0041e1f5d7009mr7162535qtx.25.1698166900083; Tue, 24 Oct 2023 10:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698166900; cv=none; d=google.com; s=arc-20160816; b=Kw8LMy+JRk9pWs2lK5o/UmnF5hlywdliRj2MpJp6+fcNYgG3OP9ilCZxkAnx2TxpnO vyxDZD9rUvH8G8M+i4TkT/q0gboQlpM1Us01oPKhf1gxdzdwQdVEwd3RQcWoLMVgD6nC xtTMkQ7UE27nLowRD4OXx3fbYYJBJkVp4Ts4fZ+d+4727YeJHNx2GDOHoYrE9S2NfuZJ 0+KtDga4Xxa+HZhAQ45ZvsurzjtkAhq17ai4HMlJrKdSkgQqBoJ4txvv1d5qjGtdxRw4 gV8HFWPA1ndH/8IOX5sgZsfEAQkNp7mAPuy2k1+bEnzjxNUl02nh5jTTbcvMioGxoSlj k9TA== 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=tnvgobrgvZ8fCptCv+JHpeuubvqilC8RCHSCmo0hdqY=; fh=lMFlj1BLUq9uCbF2Jd22FwW7rRILQVuwhV4rwBHfLn8=; b=ZM6o8aFJ9ORxhDX5+JAUXSyEZNxiEtKe8H+UPzTArztP6aNVij5NDO0EWJitgSFjcI UqOtutYJTDMJpcZfhrQ/CXLELe7J6SYbEhqN2y6DZc6Int7+ASWpflcqSJxK/tkpwS8t ZIMcgzoVdMQTZI72GBUQ5H9Iv038TogOOOZw+Ne1Mav5YT1geUFNxbLjEIhAj3jlFsDX ZnfdFVLAuroN8W/uGrWfNeQxfFEv/X6bdmfE8s2Ja9jEW6MxFKmCmtzRt1VP6zskCrft reAu5aro/pOpHH2C4oEujkRVERdxUgkGRy3MvdX5KjpYrfiO7zzByHkh2fI99vuAdTmM q3Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qrnu70PU; 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 f4-20020a05622a1a0400b004199bf94c56si7795302qtb.411.2023.10.24.10.01.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Oct 2023 10:01:40 -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=qrnu70PU; 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 1qvKky-0000d4-Ky; Tue, 24 Oct 2023 12:59:53 -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 1qvKks-0000bx-8N for qemu-devel@nongnu.org; Tue, 24 Oct 2023 12:59:46 -0400 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvKkp-0002re-37 for qemu-devel@nongnu.org; Tue, 24 Oct 2023 12:59:44 -0400 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5384975e34cso7438940a12.0 for ; Tue, 24 Oct 2023 09:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698166780; x=1698771580; 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=tnvgobrgvZ8fCptCv+JHpeuubvqilC8RCHSCmo0hdqY=; b=qrnu70PUE2+0AsIvz0zHDNlGRayobEuI6stphYkhhCcmvQJspRQKMBvOjTpxgMhQuH vog31loLmA6oGyoWnXDE/nRxqeYBTs64LysqrVqnYTXGYO8sYfWRhN/Yr655SUwP/S4o hSmI/4nSi3XWJvII8T2IhXJTG8R8vfS+pW6Lpq5hbz9moH8pBiigVRSUNjStMm+2J34g 2wnuqWLt1DPEF93krXcdMcDoSwcx/fZ/t41U8eAPBxWDqPyco6kFWVIElnhV7LVbbZhh oXDXNnwPXlNpoLGz2d4SvRmya1vc9y/AlMmut9BHexejluIbmVcXJVyes7SYA0S6q3IA M9tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698166780; x=1698771580; 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=tnvgobrgvZ8fCptCv+JHpeuubvqilC8RCHSCmo0hdqY=; b=XDsvoT8u+9kmaWVnjsmZUWkpSYfcoAjCIM1O3T/afxbyhHBpXL9B2OuK4DG2MNXu4B ujZUrV1IQWfCCiC7Y+4ZffhNMLFS+XtBKM9MxH3BBBpuff4jzBMvSBya3tx0UFGe67Yk 8q/HG7Y7H35iyfZ3GNYwSjNu5CF8UicLRV8TBGjuVxrvDpnUE2I3mvcq8MkV995hw8dI 7HIlzdqtCFfO3daefeLtkLUbNg0bfAHvPfA831wDKavZS84gzmtznjMT/H085kGYXzyN Wmqu7ng5HVrdv8WGx0OD0z4yDuyY+gquKEK4KLvYaa1nvp7ZBV+kDUxCxQse1bYLSTf7 j4oQ== X-Gm-Message-State: AOJu0Yxg/NwpY7Ef3RN5wlGLQM503d1IqEeMc/WAxFRMP2wSSIb1Dsm/ 9Uk19kNoUr7U6HINjNY136nsbQigQ3qOxcMIMGA= X-Received: by 2002:a05:6402:3589:b0:53f:1ce2:a3ac with SMTP id y9-20020a056402358900b0053f1ce2a3acmr9985936edc.41.1698166780278; Tue, 24 Oct 2023 09:59:40 -0700 (PDT) Received: from m1x-phil.lan (sem44-h01-176-172-55-165.dsl.sta.abo.bbox.fr. [176.172.55.165]) by smtp.gmail.com with ESMTPSA id n28-20020a5099dc000000b0053e37d13f4fsm8317919edb.52.2023.10.24.09.59.39 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 24 Oct 2023 09:59:39 -0700 (PDT) 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?= , Mark Cave-Ayland , Artyom Tarasenko Subject: [PATCH v2 6/9] target/sparc: Use tcg_gen_extract_tl Date: Tue, 24 Oct 2023 18:58:59 +0200 Message-ID: <20231024165903.40861-7-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231024165903.40861-1-philmd@linaro.org> References: <20231024165903.40861-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=philmd@linaro.org; helo=mail-ed1-x533.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 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