Message ID | 20230822110129.41022-5-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp193732wrp; Tue, 22 Aug 2023 04:05:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFAFS3DjPTQTCYJYg9xoifOJNOdmIWu9patE1XJgc9W4++z6uTPt1mqH/OtJ2eJEd4VvzPX X-Received: by 2002:a05:620a:2443:b0:765:ada8:e938 with SMTP id h3-20020a05620a244300b00765ada8e938mr11641395qkn.22.1692702330288; Tue, 22 Aug 2023 04:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692702330; cv=none; d=google.com; s=arc-20160816; b=Sg5KGfMNMgdGm2kdqwnIvVhgg4YQv+ybTsUJD0H/bm7vCXD6nFKrabHaWr2wCGrcEE /DXeOLphQ95zgPf2eoBnESifvFfvhE3cXwOlzWYiL38lxHwD2Wabqso4L/6Stw/t1BrT 22jUAByN/+rkKAI6fGYL3Ks0ABrn268HX4lp/8ufucVFd3w0Mun7ff6T7zNQz85MEv/V I5RX4z5Yq7CtEB5R+g7Bl4/XnGyKVmngucXdfGAMR75NG/IQDE9I4Coo79CQ5BEdcGip teTEfnARY166GhsO3+IOycGtAubQvsm1bcsB7oO0Cx9gy/wukgn62o/TLDEa0HaFbcOO L2+A== 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=emowz0axu/kGB6eTmVL35kBP/OFbuZg2HRDsrnbXrTA=; fh=nNMMnsLJfx+wwcL6Hpjyue2kO7c5wJkFUZ+p5f7qT8I=; b=Ajo3zdNVxSi8v6/zBG8TNUZW68mlGQJT0rk9S1FozY8c+7oPy+XXeWyGr/OFX0xgAh GoA49SMqoNNhjgCBIsqjVrCshAeMC5kLEozJa+4ZMe/YlaElaUh94AfiLCqYMpgZY6iB hs/JMu8vogWqTRAAjkKNhCcOw6FIW7Sd3QXIQuDfAvfaIYYe7nI0Z7Tn6kLKLN481bhz wdJA3TK3Rj2cvx4wpacqwMALrIgLss8HjJMHi+Gw+kJpW4Jh21arLbM8TXePU7R1cA1l 27GW6/0QM9jTfN+e1+k9IBHBqlZb8SNcvse1e6xh1dL2VceRjieJO/zK4uq/DQCcf9Qo cEIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HJp2t9c4; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r7-20020a05620a298700b00762dfc825e1si6006009qkp.342.2023.08.22.04.05.30 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Aug 2023 04:05:30 -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=HJp2t9c4; 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 <qemu-devel-bounces@nongnu.org>) id 1qYP9i-0006Rk-1u; Tue, 22 Aug 2023 07:02:38 -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 <philmd@linaro.org>) id 1qYP9I-0006IC-F9 for qemu-devel@nongnu.org; Tue, 22 Aug 2023 07:02:13 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1qYP9F-0003Lm-0U for qemu-devel@nongnu.org; Tue, 22 Aug 2023 07:02:12 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fee7b7689dso26073975e9.0 for <qemu-devel@nongnu.org>; Tue, 22 Aug 2023 04:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692702122; x=1693306922; 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=emowz0axu/kGB6eTmVL35kBP/OFbuZg2HRDsrnbXrTA=; b=HJp2t9c41grX9JI1wNgMU9cHLkvXsxLAxm54fboaHuOiSqdzi2jm2DWq/MTHvWe/Q0 Ft0BQIkNxlqpSyxNB1GUIeXD3vU8F+OCGTucV93L0CUFPP6PGjvE59H1ISjgpw7GI3NM 2ZXvCUW/O200mQBVJfOyi4sLgj/JE2/HcQ7q0uysG9kMkI1GOijtFGZ4PgBJ4N86XLmk iJf1Rrnhkd5hvHcf6jjcLCLOrgq5hVV3a267Vj4ZDuEqjVip+fCBoSuH+OibkCcmSTJi nyuKqDsV1twNMhJXZDeGObB4O+g8gLcmnG1HUTsmSuIoc+SfPlgdMYQftsTKAW978mCH PiSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692702122; x=1693306922; 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=emowz0axu/kGB6eTmVL35kBP/OFbuZg2HRDsrnbXrTA=; b=aD/SpqE6IeT/wRmZ976jgeUlphR2P0g8Lcap54AhSAo110Fhzbb3uijwqR421tD+cM V/mdduhFWg8agYO8Bm/RkGtyLDgf6XkLhTpEn6YwPFP7YNulKmyOPV6Cee29eYOya0HM 1DTGUkC9ggoGhyPC6I3Lp4yREGiwnUDA7lN+YgEn4p0F2IYBuTRo87MFIMlmwVsPDtB9 qTqPKcZnhspbTy81CG9tbMXo936nOJMyMKEgPoOHYIXDfO55cQK2z2EVoOX6D6b4KEYe dqYueyosNzCKXRaCSYaFo5iYlidY0kZJcUIoLmYuQyTngFEcgy0hA0KTP+45m9RJ8fHp 9f5A== X-Gm-Message-State: AOJu0YwEjck6rf9pKvjx4UL/pyLQkFUHtCIOO0LNaCOUfESmQW/7DZVA jWmJbGjVpDCK4AAFe7MGhbOyfMO7WRHjXrguCg0eyw== X-Received: by 2002:a5d:58d9:0:b0:31a:d344:38eb with SMTP id o25-20020a5d58d9000000b0031ad34438ebmr6621664wrf.45.1692702122703; Tue, 22 Aug 2023 04:02:02 -0700 (PDT) Received: from localhost.localdomain ([37.19.214.4]) by smtp.gmail.com with ESMTPSA id n16-20020adfe790000000b0030ae53550f5sm15380844wrm.51.2023.08.22.04.01.59 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 22 Aug 2023 04:02:01 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: Aurelien Jarno <aurelien@aurel32.net>, Xiaojuan Yang <yangxiaojuan@loongson.cn>, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= <philmd@linaro.org>, Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>, Yoshinori Sato <ysato@users.sourceforge.jp>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, qemu-arm@nongnu.org, Peter Maydell <peter.maydell@linaro.org>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Song Gao <gaosong@loongson.cn> Subject: [PATCH 4/6] target/sh4: Use hswap_i32() in SWAP.W opcode Date: Tue, 22 Aug 2023 13:01:27 +0200 Message-ID: <20230822110129.41022-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230822110129.41022-1-philmd@linaro.org> References: <20230822110129.41022-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
target: Use TCG generic gen_hswap_i32/i64()
|
expand
|
On 8/22/23 04:01, Philippe Mathieu-Daudé wrote: > Commit 46be8425ff ("tcg: Implement tcg_gen_{h,w}swap_{i32,i64}") > introduced the generic hswap_i32(). Use it. > > Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org> > --- > target/sh4/translate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
diff --git a/target/sh4/translate.c b/target/sh4/translate.c index 49c87d7a01..0f96a099b3 100644 --- a/target/sh4/translate.c +++ b/target/sh4/translate.c @@ -678,7 +678,7 @@ static void _decode_opc(DisasContext * ctx) } return; case 0x6009: /* swap.w Rm,Rn */ - tcg_gen_rotli_i32(REG(B11_8), REG(B7_4), 16); + tcg_gen_hswap_i32(REG(B11_8), REG(B7_4)); return; case 0x200d: /* xtrct Rm,Rn */ {
Commit 46be8425ff ("tcg: Implement tcg_gen_{h,w}swap_{i32,i64}") introduced the generic hswap_i32(). Use it. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- target/sh4/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)