From nobody Tue Dec 24 13:41:12 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=flygoat.com ARC-Seal: i=1; a=rsa-sha256; t=1734910887; cv=none; d=zohomail.com; s=zohoarc; b=i08XbgYhoWWk8k/U3ssLwMB1KMJ5kpgxeSN0Gls7mDUPj3mFKJuDzWaDpaIcbHPyKQ9d43HgFbuKkbZqNliygBLFO13BfIpvWgUZhMgF410UDcNibwwUedsGjBRsttUZSlccQD2Su/KU/T/k76MJvYdR+xPu1cfyugTkPTCmO+w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1734910887; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Fqcq7mm54RnYVYakDA1tBHL/YZxGrFp1d66a1ou16Kc=; b=CTI/sxGSy7AyE/8YaPiZSONyIUJv5hfFdVmE/hV4pI+MZs9ib73mvyLPagghoDxfoPeUSG8dc9G8IZjKQ7BO7ltrdodaGFSBGeb2LoF5+/J/MFn2E5/OlOuWXvrlZneNGSxEEITWVdbKftNvMDZMEnKBkFSpH1g9bDZM/HUbOJE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17349108878431005.2190328609718; Sun, 22 Dec 2024 15:41:27 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPVYy-0000L3-Ez; Sun, 22 Dec 2024 18:40:45 -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 1tPVYn-0000JO-C3 for qemu-devel@nongnu.org; Sun, 22 Dec 2024 18:40:33 -0500 Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPVYl-0006BH-8T for qemu-devel@nongnu.org; Sun, 22 Dec 2024 18:40:33 -0500 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.phl.internal (Postfix) with ESMTP id 5D074138015F; Sun, 22 Dec 2024 18:40:29 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Sun, 22 Dec 2024 18:40:29 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 22 Dec 2024 18:40:28 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1734910829; x=1734997229; bh=Fqcq7mm54RnYVYakDA1tBHL/YZxGrFp1d66a1ou16Kc=; b= bv48mN1GgRf9QFVwezUlVb0bOGCMRXAYC6tZSK5y2oWG6yBLpRe0bR8WJ3JlcKYQ KftzHfUauJxeMgGlYuVOceTEpPh61Nji8iVyUwmy42f/R9v6rbTceoO6saw5ei8u DqkTtovkyOaHbg0kkIVAU5blShmzNqoI2/XfEkvsLpYIo4FBK2dZM8uuGJNkIev+ +qUnl4MnmIw6L2Wd42a1JTxc8Jil2TDMnI5qrGuaXfol8Ojd00+kll9KzR5jss3W FCP/2a54Ci9M8J8/BUBa8eEJftQHxlF2yF8Md4PFCnjNTKQpKL3VKvSPyFotIdgd gN66ZpikPiSRQ+sEQrDU+A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1734910829; x= 1734997229; bh=Fqcq7mm54RnYVYakDA1tBHL/YZxGrFp1d66a1ou16Kc=; b=V vQg/5K64ISezYS1ezd83PtKHjxs8HxrwcjycvWirZpPygtHaq/zWqUdbywXB/SZR 0sE7LB5pdKBOf/kvHBzkD8YTRfToyo4GzYe+sDb8fyEiX0I4GeoZS94FQRBiMtlF nWVjOYoV1bly2J10mmtV4ZdJmO6AjsUuBCKhdICf+TJqrWHbVYBdaCaSF0iR30Fd UeUteWZSJMyr8VaOvbQSa2TmBvBNbl6mW5wQZ/4SX6zBbNgwx32oNbr9CuIqhTQs 8fCeYuQG0Xkij9hN08yqeevE3Ubx/qwa5LVPviJ60R/IA1FkXswmylTdYueOWbmP esSbNv6BSknAELkRdOztg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddtledguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdej necuhfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhi hgohgrthdrtghomheqnecuggftrfgrthhtvghrnhepvdekiefhfeevkeeuveetfeelffek gedugefhtdduudeghfeuveegffegudekjeelnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdr tghomhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoh epqhgvmhhuqdguvghvvghlsehnohhnghhnuhdrohhrghdprhgtphhtthhopehjihgrgihu nhdrhigrnhhgsehflhihghhorghtrdgtohhmpdhrtghpthhtohepghgrohhsohhngheslh hoohhnghhsohhnrdgtnh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail From: Jiaxun Yang Date: Sun, 22 Dec 2024 23:40:25 +0000 Subject: [PATCH 1/3] target/loongarch: Enable rotr.w/rotri.w for LoongArch32 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241222-la32-fixes1-v1-1-8c62b7e594db@flygoat.com> References: <20241222-la32-fixes1-v1-0-8c62b7e594db@flygoat.com> In-Reply-To: <20241222-la32-fixes1-v1-0-8c62b7e594db@flygoat.com> To: qemu-devel@nongnu.org Cc: Song Gao , Jiaxun Yang X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1885; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=2VUWVkFWQi0x23wCvKOUTz7tKvfz5U3tOhLI7LG7rEw=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhvSMxVlvKl2WXBGOrtn0riFm0tkNhWIuFrPNLjSVLZ6yX LjoxJqejlIWBjEuBlkxRZYQAaW+DY0XF1x/kPUHZg4rE8gQBi5OAZhIXTrD/xCTudLrTfef35ep yxjxdOPU5fvvlJy+/17ri1KPSh7Hs70M/z0MW9VbOgUXugrz2Zzul/jW9Orxu1XGWZ9uLGA39jR s4gYA X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=103.168.172.150; envelope-from=jiaxun.yang@flygoat.com; helo=fout-a7-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @flygoat.com) X-ZM-MESSAGEID: 1734910891919116600 As per "LoongArch Reference Manual Volume 1: Basic Architecture" v1.1.0, "2.2 Table 2. Application-level basic integer instructions in LA32", rotr.w and rotri.w is a part of LA32 basic integer instructions. Make it available to ALL. Signed-off-by: Jiaxun Yang --- target/loongarch/tcg/insn_trans/trans_shift.c.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/loongarch/tcg/insn_trans/trans_shift.c.inc b/target/loo= ngarch/tcg/insn_trans/trans_shift.c.inc index 377307785aab4837bc181f1691632e7970a9889d..136c4c845527f0e63902a8306dc= af136dd4dd3fc 100644 --- a/target/loongarch/tcg/insn_trans/trans_shift.c.inc +++ b/target/loongarch/tcg/insn_trans/trans_shift.c.inc @@ -78,7 +78,7 @@ TRANS(sra_w, ALL, gen_rrr, EXT_SIGN, EXT_NONE, EXT_SIGN, = gen_sra_w) TRANS(sll_d, 64, gen_rrr, EXT_NONE, EXT_NONE, EXT_NONE, gen_sll_d) TRANS(srl_d, 64, gen_rrr, EXT_NONE, EXT_NONE, EXT_NONE, gen_srl_d) TRANS(sra_d, 64, gen_rrr, EXT_NONE, EXT_NONE, EXT_NONE, gen_sra_d) -TRANS(rotr_w, 64, gen_rrr, EXT_ZERO, EXT_NONE, EXT_SIGN, gen_rotr_w) +TRANS(rotr_w, ALL, gen_rrr, EXT_ZERO, EXT_NONE, EXT_SIGN, gen_rotr_w) TRANS(rotr_d, 64, gen_rrr, EXT_NONE, EXT_NONE, EXT_NONE, gen_rotr_d) TRANS(slli_w, ALL, gen_rri_c, EXT_NONE, EXT_SIGN, tcg_gen_shli_tl) TRANS(slli_d, 64, gen_rri_c, EXT_NONE, EXT_NONE, tcg_gen_shli_tl) @@ -86,5 +86,5 @@ TRANS(srli_w, ALL, gen_rri_c, EXT_ZERO, EXT_SIGN, tcg_gen= _shri_tl) TRANS(srli_d, 64, gen_rri_c, EXT_NONE, EXT_NONE, tcg_gen_shri_tl) TRANS(srai_w, ALL, gen_rri_c, EXT_NONE, EXT_NONE, gen_sari_w) TRANS(srai_d, 64, gen_rri_c, EXT_NONE, EXT_NONE, tcg_gen_sari_tl) -TRANS(rotri_w, 64, gen_rri_v, EXT_NONE, EXT_NONE, gen_rotr_w) +TRANS(rotri_w, ALL, gen_rri_v, EXT_NONE, EXT_NONE, gen_rotr_w) TRANS(rotri_d, 64, gen_rri_c, EXT_NONE, EXT_NONE, tcg_gen_rotri_tl) --=20 2.43.0