From patchwork Sat Dec 2 06:53:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: changjiachen X-Patchwork-Id: 172742 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1618730vqy; Fri, 1 Dec 2023 22:54:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjeIWmYtLbDzRLgGDP1J/cn13aep1tAqqtv6PVHLX8bfm005SDdbyIEQXz/EWTsy79vlBQ X-Received: by 2002:a05:622a:1cf:b0:423:86cc:8c85 with SMTP id t15-20020a05622a01cf00b0042386cc8c85mr1210985qtw.35.1701500052444; Fri, 01 Dec 2023 22:54:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701500052; cv=pass; d=google.com; s=arc-20160816; b=M2oO6LYiCMQ83JQ/zuV0h4+/nWoaCLWxCf8ohFx59DO3C+KcNkGWC5C090KZkkVd7a qP1tHkem9N9QOLGdAxew3xTxG1OLlHKE+bupkyB6QHiN7WltwodJB/yQ5JGSnzbaHzJt hDtyVyj5BVNK2ocKpuuQyj6RJ5W4qxWggebdjHBrOOxhlbwwGlIyPsFsI8ejk+xHce9U h57tyDRkk/AWlg/7Is7CESQLu9fQRNPuLK3CXTbdt/9xExpFTnz1U4YsfnFn2aIZtTeZ j4tAlaM/SXB1tksVS464UL2AfHkGBdJeWttL0vxmAsqW/psgFNvjTp1+flaZtsVM2Xbe axRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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:arc-filter:dmarc-filter:delivered-to; bh=8bJhqhtqI6MkCRim+l0W2zlI9+vCp7rBL1oVOa0ildw=; fh=uTF/VfpCAq2GtcL5NdCKul3VKQPlBSDYmUlZE/0CcYM=; b=v8VqSymNwNDB1xhp3PJAVgci8v22MLN5INpN6eWhq+JXZXUps+0I70RZNsCdN/n4Yb JPMuJhh7u1UO4K88YunBF6n4s1wpJunRj1gaTGD/YCZi+UgUVARe2ejBGdlyUN+YfHaE tfvsti5vPnMoQNZKFKYFvQCO/My9nRGZT4GnZuzl9XYhpZUhe1mBxat66nKxiJS+PffW Gv3cBpSj2jUe7Ge0vXVrBchTkqMq+9d3UDDTmEknlwLp7IflvmNIeA/E5+NIFcTlmXr+ ETRrX7BeaHlPDHatn7vK2q7BSJeVCVAM6zv2O5KxmhwG4GYbtUQgegM2WZD+xyoFh3If u8iA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xupt.edu.cn Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id bn6-20020a05622a1dc600b0042393f0de94si5098982qtb.503.2023.12.01.22.54.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 22:54:12 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xupt.edu.cn Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DA111385B836 for ; Sat, 2 Dec 2023 06:54:08 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-m6020.netease.com (mail-m6020.netease.com [210.79.60.20]) by sourceware.org (Postfix) with ESMTPS id 193223858C98 for ; Sat, 2 Dec 2023 06:53:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 193223858C98 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=stu.xupt.edu.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=stu.xupt.edu.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 193223858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=210.79.60.20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701500041; cv=none; b=agDCe5dJwviayRjfngwxMbJwq+Ik9F8RnlNd5ueLOXxDtxKzcDzwX6t6nU8oVwhDRa93wd0K5vmycUSmVzwVOyFTbjJZrWRdX5XfgMurOUsTxk55pQUZ/5ntGyhhMjA5dELjYvQb4JL/haS01x0IB4SmoLFILyBKY8cYYxBExnw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701500041; c=relaxed/simple; bh=wX0Q0sennreDJbi/b58CzNoiVQZocMTa54kV1Lk58p0=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=InCu+zdw0g9Y3uOxW+V66Wax8GTsDa7QI/SCKnNRHrauXfZKxipiG5KPJ2GMtWxl+srbOJ7clvwzeoxVMzLGFcJRBUACP7WmJSPS6se8cZiOpnQ6heYOFFpPgr8gK1R+agsfGu5Vmz+k6B2UW4cg2+E+f9qTo+rGTocMOchT+Fc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from ubuntu.localdomain (unknown [223.104.204.129]) by mail-m121144.qiye.163.com (Hmail) with ESMTPA id ED23CAC00BB; Sat, 2 Dec 2023 14:53:50 +0800 (CST) From: changjiachen To: binutils@sourceware.org Cc: xuchenghua@loongson.cn, chenglulu@loongson.cn, liuzhensong@loongson.cn, xry111@xry111.site, i.swmail@xen0n.name, maskray@google.com, cailulu@loongson.cn, luweining@loongson.cn, wanglei@loongson.cn, hejinyang@loongson.cn, Lazy_Linux@126.com, mengqinggang@loongson.cn, changjiachen Subject: [PATCH v2 3/5] LoongArch: opcodes: Add support for tls le relax. Date: Sat, 2 Dec 2023 14:53:32 +0800 Message-Id: <20231202065334.25904-4-changjiachen@stu.xupt.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231202065334.25904-1-changjiachen@stu.xupt.edu.cn> References: <20231202065334.25904-1-changjiachen@stu.xupt.edu.cn> MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaQ0gYVh4aTU1KGEJMTklJT1UTARMWGhIXJBQOD1 lXWRgSC1lBWUlJSFVKS09VSUtPVUpJQllXWRYaDxIVHRRZQVlPS0hVSkpLSEpDVUpLS1VLWQY+ X-HM-Tid: 0a8c294e12c0b039kuuued23cac00bb X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6ME06SAw5TDw2AgsqTx4MFyIR LwgwCSpVSlVKTEtKTktLS0hJT09PVTMWGhIXVRgTGhUcERIaGBMeFTsIDw5VAw4LD1UeHw5VGBVF WVdZEgtZQVlJSUhVSktPVUlLT1VKSUJZV1kIAVlBSU9OTjcG X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784152119003543853 X-GMAIL-MSGID: 1784152119003543853 Add new opcode for tls le relax. opcode/ChangeLog: * loongarch-opc.c: Add new loongarch opcode. --- opcodes/loongarch-opc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/opcodes/loongarch-opc.c b/opcodes/loongarch-opc.c index 82b88bdad2a..e9ced5383e5 100644 --- a/opcodes/loongarch-opc.c +++ b/opcodes/loongarch-opc.c @@ -399,6 +399,7 @@ static struct loongarch_opcode loongarch_fix_opcodes[] = { 0x000c0000, 0xfffc0000, "bytepick.d", "r0:5,r5:5,r10:5,u15:3", 0, 0, 0, 0 }, { 0x00100000, 0xffff8000, "add.w", "r0:5,r5:5,r10:5", 0, 0, 0, 0 }, { 0x00108000, 0xffff8000, "add.d", "r0:5,r5:5,r10:5", 0, 0, 0, 0 }, + { 0x00108000, 0xffff8000, "add.d", "r0:5,r5:5,r10:5,s10:5", 0, 0, 0, 0 }, { 0x00110000, 0xffff8000, "sub.w", "r0:5,r5:5,r10:5", 0, 0, 0, 0 }, { 0x00118000, 0xffff8000, "sub.d", "r0:5,r5:5,r10:5", 0, 0, 0, 0 }, { 0x00120000, 0xffff8000, "slt", "r0:5,r5:5,r10:5", 0, 0, 0, 0 },