From patchwork Tue Jan 24 02:05:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 646020 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp2512601pvb; Mon, 23 Jan 2023 18:07:41 -0800 (PST) X-Google-Smtp-Source: AK7set9cK4WuzwmsVT97bgAW3nXhIXc+v+H6QJSOnpMNoCRuYml4r7+mbVfcYYD1zjI/IolVRo+l X-Received: by 2002:a05:6214:5155:b0:537:653d:690 with SMTP id kh21-20020a056214515500b00537653d0690mr2097670qvb.50.1674526061386; Mon, 23 Jan 2023 18:07:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674526061; cv=none; d=google.com; s=arc-20160816; b=ysHtGx4neg8yXyf6Eyxw62s9spF2p83r+/NKifwonMjCEWcbkOGdcLH334Qvg/GIzo tCMYSHGsBQOjt884P0ihBGcd3wXryqL+Kcxsimdmn/qXeNFhvlKry+JBpG3dK6ASdikn NndAXRmnz7Js7cH27jrTiIpT77Yx+6A5XsQbeWXbs7yRUnevVYbptaTff/nP5mDgMskm gLTADZOvFoerEisN61JeOjVIBWjnV7zfl1LHh7qAB1FcsqOw6HermN8LFs60mZRzqYC9 rvKaiSifmvlcP0p3ZBaA2qYYBIz7Fh1Qbdva7S6Ke+rYWnDMW/V6Kd4KuIj6H/qCCMF6 VF6Q== 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=bpu0eOvVcL/BkHuF9+fHY5Np3svCaEUGDf2BIuaeQ+o=; b=iaJx9aDaPD4D9BaK2AK3eWyRdlEH9Ii9pe+gq4v5l0kPU9KNJ62dZkE/GwIjcwe7a1 Caw2URbCC6Z45AiD1txZKkQ1k0LKjjHdViDH9oPdVC3szR8zhOMDuZS705O+vDbBWcPr huJOLbbKsdS8mMPyUYvmEUjg+FsRCqU/M1+pEPl5ZAk50+POlF73vl0xHJwzzNZbQhpA qatZ8J2MBLx225Jeneu2PJ7UxAxqS87uWpHZ16N/4lNw+zkvkRM9QOu7om9zQCu5FmtH ZCSBrQHLHw7NNgMQy7t6C75XQEI6/2q5eOQIcv7VJ/h//UaTC0jufmnfteVb6hk0hy0c wIHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f4eCzEPv; 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 nh15-20020a056214390f00b004ad311da286si508178qvb.280.2023.01.23.18.07.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jan 2023 18:07:41 -0800 (PST) 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=f4eCzEPv; 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 1pK8gm-0008S7-RN; Mon, 23 Jan 2023 21:05:33 -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 1pK8gk-0008R4-Ri for qemu-devel@nongnu.org; Mon, 23 Jan 2023 21:05:30 -0500 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pK8gj-0003ve-4k for qemu-devel@nongnu.org; Mon, 23 Jan 2023 21:05:30 -0500 Received: by mail-pl1-x62c.google.com with SMTP id k18so13340661pll.5 for ; Mon, 23 Jan 2023 18:05:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=bpu0eOvVcL/BkHuF9+fHY5Np3svCaEUGDf2BIuaeQ+o=; b=f4eCzEPvx4N4xBppe5Lt09vEVXPc+Co/gL6dvfOOgdMT56i8QgPdm7MZGAbVeQfbV4 hhUoGp0kJaMiRolc+jhxBK04IIkq41ddd2LQ+uVepc9YpUYf4CLAxetcVtnBlmDesfXo pXB0r+nj2dzG7X8FtxAcVFAlryB93ppd/cVgiCrApVIkIm01gwy1M++d7DbqM2rCxHuT naIy/09YEbrOXl3fmZEds6nlYlG06t2bAywFDW7/kxrGl/xMNrFehCAVB6szKKsLQ4ZX gRlWaQlUsubjRU9GwZGyBQ3vehVkTrvGk9UjVIB02sCOejL1oEh0UWKOvPRiXUsJGW69 sN5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=bpu0eOvVcL/BkHuF9+fHY5Np3svCaEUGDf2BIuaeQ+o=; b=GDksoD2ZmJ5hSJU68teN1tU1zl/hjQh6Mb4vmyuWPVt6LDAkKlLrUB5W0ePf6OO3Iv S6Lrjm4nGZiya4P9BzZfVTcl/+Q5B1MgWq0N7otgTPajkhte0E5NGXmR15cr/raxp27m LAuapvcz/1r342EIkCU4v03hmvwhlo4xI1QKrMIEZ8B+4rfKKIaNyCi2Xa3CG003hjus 88Gk4Aa54fuzDFVAQKew2lH+HlchvH4hhgA1YL37BGh3wy6x0F/jHw22ZgJ0TTNNC8RV FRnbuV2sR9t4TPKRElPtvq9w3lF0+nfnWUWwxi9RXKhcfUXc18HuWBq0X+vm3HKFutnn +yrg== X-Gm-Message-State: AFqh2krByTGP8el2zo2i/4C9zcOlE45uRXk2gGL5TVO2jjHpw9dTy7Wl RhR0wL3hymJQkGQlgTYWLA37E9nzPEtyuUyh X-Received: by 2002:a17:90b:3eca:b0:229:f4cd:1e03 with SMTP id rm10-20020a17090b3eca00b00229f4cd1e03mr17109385pjb.22.1674525927690; Mon, 23 Jan 2023 18:05:27 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id fh3-20020a17090b034300b00228e56d375asm283936pjb.33.2023.01.23.18.05.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 18:05:27 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, WANG Xuerui , =?utf-8?q?Philip?= =?utf-8?q?pe_Mathieu-Daud=C3=A9?= Subject: [PULL v2 10/15] tcg/loongarch64: Update tcg-insn-defs.c.inc Date: Mon, 23 Jan 2023 16:05:02 -1000 Message-Id: <20230124020507.3732200-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230124020507.3732200-1-richard.henderson@linaro.org> References: <20230124020507.3732200-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62c.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 Regenerate with ADDU16I included: $ cd loongarch-opcodes/scripts/go $ go run ./genqemutcgdefs > $QEMU/tcg/loongarch64/tcg-insn-defs.c.inc Reviewed-by: WANG Xuerui Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/loongarch64/tcg-insn-defs.c.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tcg/loongarch64/tcg-insn-defs.c.inc b/tcg/loongarch64/tcg-insn-defs.c.inc index d162571856..b5bb0c5e73 100644 --- a/tcg/loongarch64/tcg-insn-defs.c.inc +++ b/tcg/loongarch64/tcg-insn-defs.c.inc @@ -4,7 +4,7 @@ * * This file is auto-generated by genqemutcgdefs from * https://github.com/loongson-community/loongarch-opcodes, - * from commit 961f0c60f5b63e574d785995600c71ad5413fdc4. + * from commit 25ca7effe9d88101c1cf96c4005423643386d81f. * DO NOT EDIT. */ @@ -74,6 +74,7 @@ typedef enum { OPC_ANDI = 0x03400000, OPC_ORI = 0x03800000, OPC_XORI = 0x03c00000, + OPC_ADDU16I_D = 0x10000000, OPC_LU12I_W = 0x14000000, OPC_CU32I_D = 0x16000000, OPC_PCADDU2I = 0x18000000, @@ -710,6 +711,13 @@ tcg_out_opc_xori(TCGContext *s, TCGReg d, TCGReg j, uint32_t uk12) tcg_out32(s, encode_djuk12_insn(OPC_XORI, d, j, uk12)); } +/* Emits the `addu16i.d d, j, sk16` instruction. */ +static void __attribute__((unused)) +tcg_out_opc_addu16i_d(TCGContext *s, TCGReg d, TCGReg j, int32_t sk16) +{ + tcg_out32(s, encode_djsk16_insn(OPC_ADDU16I_D, d, j, sk16)); +} + /* Emits the `lu12i.w d, sj20` instruction. */ static void __attribute__((unused)) tcg_out_opc_lu12i_w(TCGContext *s, TCGReg d, int32_t sj20)