From patchwork Wed Jan 18 01:11:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 643665 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp1489619pvb; Tue, 17 Jan 2023 17:12:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXswtWyB9EKGqkNfXCN4YtHeIc3cDhpkfDiqH5s1prut3UR6uc0Mp5mT4vzJsV/EdMx4wu33 X-Received: by 2002:ac8:6a0e:0:b0:3ab:7928:526c with SMTP id t14-20020ac86a0e000000b003ab7928526cmr6498561qtr.17.1674004340941; Tue, 17 Jan 2023 17:12:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674004340; cv=none; d=google.com; s=arc-20160816; b=iVMwp6x0GBqQejwjUQLiSpTji0BOPMo3/ZZ35sOzORToCova1ae/MWaLfC4Y27HcQo jB0+Zfx96DIIL1GVa+oLue0NiDnRrD+9ByGtRdlOcjhZGcHLVfzNlY1KDm+Iwt8sLN5q QC5T95Hov8lN48YYPtJ4g8743WKBbWg2BTjihUCnWl45rcgj3vqHvPljn+lTWcjwp5KT gq3VWaLJdzMdM2HErko6LuB2bTCwNC1pZNnTkXXLsaVMlaXX7UouZxnWySVOoICM6ccT 3cE/A+mN7LvgQgeaXqIFT0xvLdjZ6N4UAFijNxFrXyoRj01MeyKlWLLRtKf+73/verhI H4zw== 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=eXmkIhIsuv2GneKn/fEVnv+GUooitbhPBGl3nWaEWcQ=; b=iuUHLgGNk4cRl0Gj5zI727V1fS3oBK5evtcSmyG0/h4JlGIIL3lFM5Ay9GKblgO0Pd a5HbuGoR4RTCbD7bXomfvXKuoVJfPf69r1MwbOOa5HbH6/ZJUzqZNB3xsQRd7BpBx/oP bxmXw1J0P2nas6nATqHJNhbdHCZssLkLfqDiPgXf9j01pfVE2ov3C+q92yypQvnaTyKe JBsIjO2WoPFMQcXcdmBvkMvzGL35pGwcopRMS3vCUqMffPWS1Mskr84dsLnwjE9g3UVS TztwrI4nAndh504TE/RfyAFWDn9XDkTwogjJoZI4ynnPf5eP/TpbKkOA6rb9pHB719sl rpnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j7bLVCaQ; 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 fg26-20020a05622a581a00b003a7e5da777esi21107939qtb.206.2023.01.17.17.12.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jan 2023 17:12:20 -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=j7bLVCaQ; 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 1pHwzK-000228-Qs; Tue, 17 Jan 2023 20:11:38 -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 1pHwzJ-00021S-Fj for qemu-devel@nongnu.org; Tue, 17 Jan 2023 20:11:37 -0500 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHwzH-0002Ep-NT for qemu-devel@nongnu.org; Tue, 17 Jan 2023 20:11:37 -0500 Received: by mail-pl1-x634.google.com with SMTP id k18so11306936pll.5 for ; Tue, 17 Jan 2023 17:11:35 -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=eXmkIhIsuv2GneKn/fEVnv+GUooitbhPBGl3nWaEWcQ=; b=j7bLVCaQ+kGVkaNNYh7B0+LHYsh49B2n8JQTgiMj7zN0zoob2FEwNH42wFf3Iwv4tW /1E48c6kmtnQi6y9NPxAvQyfsr32sLpwjoJS4HLHhjFfx/aYdRU4aubNzl26s+4gFEDs FqbGUmJKORiLwN+TNDIff3PWdSHNPd6Uh7rrhrToX+GccOzzVA9vHwJ0pO3bcsytROnt FDRYEhG5CrGUDoui6Qznh1W3tmn8Qp8K2DgLXc3LxZSrOO5RvwSnpXlIfGhMZFFVEaJe je4GF+7lwlBDiofYPTKeBuXVw/B1O6U7A3NsSHcJv22cSk0HJS3Zej95rPR22VqUb4kP nIeQ== 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=eXmkIhIsuv2GneKn/fEVnv+GUooitbhPBGl3nWaEWcQ=; b=2Fyp0MItIXeXDg330FpXKN4aduHZ2incMjvkwY7VXJkQVcMsRcQdjdWPiM44fON2Vb IKaKq+epATUYpaZWbdmPp0WJNUehxEvPKTFEn8GyW91sptKlTyF+UFRcT+ahIzkV8199 kTKaxva7NrRVtZXV84vaVUfPN2fA9xMT87ekxgb//+IlLEByYQaXd34nDjsKdcmADIX+ Kxy/XHeSRITY1sIR9Enypy41z/NdWwlA5cEN1toZPlq8AkJ1SboM1xw5hf8p9/L9GGts XHDf9avso/02UZKO25QSltUSWfYBJQfYDJy0kJSQDs4s+UF9EK+THQOanXTr8kthGnsz yRWw== X-Gm-Message-State: AFqh2kr883na593Uhgbq/v+l99pNC5jdJaXHrzHxepsy+zcX10xEoxDe UL37+tjSgAeSWSQgbpEtGX45fFBvx0Ym1htb X-Received: by 2002:a17:903:182:b0:194:7532:fb10 with SMTP id z2-20020a170903018200b001947532fb10mr7403618plg.40.1674004294218; Tue, 17 Jan 2023 17:11:34 -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 s7-20020a170902988700b0017ec1b1bf9fsm21660259plp.217.2023.01.17.17.11.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 17:11:33 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: git@xen0n.name Subject: [PATCH v2 05/10] tcg/loongarch64: Update tcg-insn-defs.c.inc Date: Tue, 17 Jan 2023 15:11:18 -1000 Message-Id: <20230118011123.392823-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230118011123.392823-1-richard.henderson@linaro.org> References: <20230118011123.392823-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x634.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 Signed-off-by: Richard Henderson Reviewed-by: WANG Xuerui Reviewed-by: Philippe Mathieu-Daudé --- tcg/loongarch64/tcg-insn-defs.c.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) mode change 100644 => 100755 tcg/loongarch64/tcg-insn-defs.c.inc diff --git a/tcg/loongarch64/tcg-insn-defs.c.inc b/tcg/loongarch64/tcg-insn-defs.c.inc old mode 100644 new mode 100755 index d162571856..b5bb0c5e73 --- 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)