From nobody Sun Nov 2 02:50:09 2025 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1747746386; cv=none; d=zohomail.com; s=zohoarc; b=TN9pFKHpEsOHfP9jecp68Twq9cZ0V9XmWg9JOrQy1gAKlFlft/c/CKSuS7U68bQPRUWOttYl1XqjzNUtQpfep6jYSqmpsclSszU0reNwKDFk7NU3kEwqOLZ1Rijb+/X3Jo+OMwTTq/Qx+7180yw0S3QGtYrq7PIsEIsA1pTHF6g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1747746386; h=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=7eabZrzKs+cL55IaJg89VzpBHaEX4pjQLmBcxb/tbcE=; b=boYELcuUgfKRN+jthYlaMIAjcZtzkl8cDjKm5+sVK0w4PNuEFc1MzSNsvzkg2oMuJscYRoviWWl69ZQtZNL30pLlQ5vTZZKBlcOPDUAojJSTH8eCAAgHVSOvmmF5rzusa7lRgSof+kcyDbXu//t5hX2thc9LO8Fj+Okveh4i8ZQ= 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 1747746386877924.6142913058852; Tue, 20 May 2025 06:06:26 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uHMUj-0003WJ-GF; Tue, 20 May 2025 08:54:57 -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 1uHMUc-0002wv-8M; Tue, 20 May 2025 08:54:50 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uHMUX-00012I-ID; Tue, 20 May 2025 08:54:49 -0400 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-30572effb26so5234209a91.0; Tue, 20 May 2025 05:54:39 -0700 (PDT) Received: from ktock.. ([240d:1a:3b6:8b00:1bde:8310:e993:5dcc]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-30f36364f9asm1625916a91.4.2025.05.20.05.54.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 May 2025 05:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747745677; x=1748350477; 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=7eabZrzKs+cL55IaJg89VzpBHaEX4pjQLmBcxb/tbcE=; b=PFJBH4kPO8TLd/9LqAMq9z01rA9Jn/YwOjBIujf+ZuYsqiPzIPZrpdyLa0b6VzQ7U1 9qQ6pxl79yCqyGNjYFMaiJV4wJB2pD8hBWqDTzp642MzsQq90PNybIKflAUnUM2IMzCw O3NMkRJyNHlHLSgv6Mc4geOMMoDU/4q4gzmqfsHoD5tc94lIAg+E5XSICH8MdanbORb+ W6LAjpgcVJaY06KyOQDidw50H79jpcgS8M23MGK1xdH2M3giVYpVN02Bs4GH5x88yADb XYWNvb8VyNz8GsQxQgcf/6hylwETysa4F79ng/OHRZ46ZehDhiKHlfrc3Zkx6FamDS0H xEFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747745677; x=1748350477; 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=7eabZrzKs+cL55IaJg89VzpBHaEX4pjQLmBcxb/tbcE=; b=atFm3phTa2ptgtZAVJhinIkZnV5OT8fDZvGbyMZQ+JBBdlZt9hP645gCQKuU8LmIp9 rbBAFE+BSw0KSsBhvEkYt1h8Np5n4G+hHf9RDY7Rm5zUhexqMWXG/rLSCnYXeRipcAmz ly0QyMfBOhBsyPUSAVN77czkEkVCcIriJQA3DJ7kK1P9HVaerKXlZQMDJ5M2gLPKUDL0 y42cAWPwClovbDFdC0DVEFEFXKjWKUGQmckJ1UGe0Lh5L/bk/TGLT8xLukW7KQ4k7icY 6lNj/5EHPZ81219vEV82GNkXFaDtUg+aaepZH8mZnTiba8o7dB95P9JPEVsK0lvvhGeG dWqg== X-Forwarded-Encrypted: i=1; AJvYcCVDcctndDE1NUCRpfIehupCh0zTj21on2UJqUzKLt6ZMDN2jLpDSTmfnww9/s9Y1rykZT6jzWmneDWPDA==@nongnu.org, AJvYcCW+Rg64lDcS+zynl8mU99kqcknp0820fBPeVyykXi/s6RKDuDm8dBOi9Yao32gkAvz6aQHRnTb/uA==@nongnu.org X-Gm-Message-State: AOJu0YxsrSwtsBD1iUti0G35nzgrRSfKtwLMT394N9TLDdg/bMRPtZAS LfU0ZZrBXtBRc3T8jZFmSbYj/Yu1hyrlgHEO4DsCVlQ7RwP7yp3e2McGvXKNbyCD X-Gm-Gg: ASbGncvmnak87sXOT7NW0sVwFacF+T5qeGmEMGToO69UrGz2jXHhzoggmPTWiTG6xZZ G3WyW5YrCAJn101Os/xhcjN9MF8y8ftzY11fwZMw/RDyShmut5itVsK0iPhBjIs7UZCnXq25GYF gmvg5KWv4Ws1wAzIIDst8fafJ74YSMRQJgmzZFZyqKSO/jwKSMBWMnJp53SgFN66ntz/4zxPNAq wPgIYCDSCmuxa+iXzDgf4rXfnCb/bAVq6EJ5v4Xn++X3y8NHJGpPwIjg/Ufg2bdpvUsZy89e3s+ KpzB8/v3Gn4uI6FZo5+1QDpSp3/Yy6xwVNDVvgjBy3TWWjA4uvQ= X-Google-Smtp-Source: AGHT+IEZCo8TLYMPhGsfPoyVD7cxyqqI5vVtGGele8JzfzU/R/+q5jO0KcIFs8Gd49flFHnnc/IHyQ== X-Received: by 2002:a17:90b:6c8:b0:30e:8f60:b4c with SMTP id 98e67ed59e1d1-30e8f600d77mr26832066a91.16.1747745677188; Tue, 20 May 2025 05:54:37 -0700 (PDT) From: Kohei Tokunaga To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , WANG Xuerui , Aurelien Jarno , Huacai Chen , Jiaxun Yang , Aleksandar Rikalo , Palmer Dabbelt , Alistair Francis , Stefan Weil , Stefan Hajnoczi , Pierrick Bouvier , Kohei Tokunaga , qemu-arm@nongnu.org, qemu-riscv@nongnu.org Subject: [PATCH 25/33] tcg/wasm32: Set mulu2/muls2 as unimplemented Date: Tue, 20 May 2025 21:51:27 +0900 Message-ID: <0e228847d902b25d643bcbee028d67e3cb0f0464.1747744132.git.ktokunaga.mail@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=2607:f8b0:4864:20::102d; envelope-from=ktokunaga.mail@gmail.com; helo=mail-pj1-x102d.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, FREEMAIL_FROM=0.001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1747746389543116600 Content-Type: text/plain; charset="utf-8" These operations have no direct equivalents in Wasm, so they are left unimplemented and delegated to helper functions. Signed-off-by: Kohei Tokunaga --- tcg/wasm32/tcg-target.c.inc | 38 ++----------------------------------- 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/tcg/wasm32/tcg-target.c.inc b/tcg/wasm32/tcg-target.c.inc index 9fad96d0fd..df34097267 100644 --- a/tcg/wasm32/tcg-target.c.inc +++ b/tcg/wasm32/tcg-target.c.inc @@ -2076,19 +2076,6 @@ static void tcg_out_op_rrrbb(TCGContext *s, TCGOpcod= e op, TCGReg r0, tcg_out32(s, insn); } =20 -static void tcg_out_op_rrrr(TCGContext *s, TCGOpcode op, - TCGReg r0, TCGReg r1, TCGReg r2, TCGReg r3) -{ - tcg_insn_unit_tci insn =3D 0; - - insn =3D deposit32(insn, 0, 8, op); - insn =3D deposit32(insn, 8, 4, r0); - insn =3D deposit32(insn, 12, 4, r1); - insn =3D deposit32(insn, 16, 4, r2); - insn =3D deposit32(insn, 20, 4, r3); - tcg_out32(s, insn); -} - static void tcg_out_op_rrrrrc(TCGContext *s, TCGOpcode op, TCGReg r0, TCGReg r1, TCGReg r2, TCGReg r3, TCGReg r4, TCGCond c5) @@ -2610,37 +2597,16 @@ static const TCGOutOpBinary outop_mul =3D { .out_rrr =3D tgen_mul, }; =20 -static TCGConstraintSetIndex cset_mul2(TCGType type, unsigned flags) -{ - return type =3D=3D TCG_TYPE_REG ? C_O2_I2(r, r, r, r) : C_NotImplement= ed; -} - -static void tgen_muls2(TCGContext *s, TCGType type, - TCGReg a0, TCGReg a1, TCGReg a2, TCGReg a3) -{ - tcg_out_op_rrrr(s, INDEX_op_muls2, a0, a1, a2, a3); -} - static const TCGOutOpMul2 outop_muls2 =3D { - .base.static_constraint =3D C_Dynamic, - .base.dynamic_constraint =3D cset_mul2, - .out_rrrr =3D tgen_muls2, + .base.static_constraint =3D C_NotImplemented, }; =20 static const TCGOutOpBinary outop_mulsh =3D { .base.static_constraint =3D C_NotImplemented, }; =20 -static void tgen_mulu2(TCGContext *s, TCGType type, - TCGReg a0, TCGReg a1, TCGReg a2, TCGReg a3) -{ - tcg_out_op_rrrr(s, INDEX_op_mulu2, a0, a1, a2, a3); -} - static const TCGOutOpMul2 outop_mulu2 =3D { - .base.static_constraint =3D C_Dynamic, - .base.dynamic_constraint =3D cset_mul2, - .out_rrrr =3D tgen_mulu2, + .base.static_constraint =3D C_NotImplemented, }; =20 static const TCGOutOpBinary outop_muluh =3D { --=20 2.43.0