From patchwork Fri Dec 1 09:07:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: changjiachen X-Patchwork-Id: 172334 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp984016vqy; Fri, 1 Dec 2023 01:09:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQh0i6msdzRzP0wNcEJA/MJay8Rj7Urq85ouf+e1hgBOSQllu44+KrdjC6/jakmkFrwlKA X-Received: by 2002:a05:622a:4c8:b0:416:4cc5:2f51 with SMTP id q8-20020a05622a04c800b004164cc52f51mr38020683qtx.1.1701421786294; Fri, 01 Dec 2023 01:09:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701421786; cv=pass; d=google.com; s=arc-20160816; b=GHGAutsvNd1ay6tlcGIVgBflgTOW2tCjNOgiPe16Q+gHzjchvhRoGxtZd5bqcAfWtR PoKPxDyvwXYi8MYuadWqdWH9rsvE/n39d6vz9h8hDo25rGqnUaIW9jDoScqC+FNCCb/W CqocSSeImtVx2wDRuhkyC0d3+3qqTbYih4ct4H0+Pww1ygIH4yzaPEFTNcWOYo/mWN83 9mfBm0VC8bZ8NSKi0cxZufVbVBwK/xdfeYXO91PI3yx3ZYlU6Vkf4um2rcjfjD1+WbOo i5ykfZQ5DfktmJRN56YIlf2nG41lCceQZBbsr1Vz5gPjxgaYZHEGMdf01iSHAZWUz/Tr +nLw== 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=W1lXzvrBv/RFWlDbqsdKVtGlKtndxGWKzaE/S+FMPJw=; b=tjWLXjoxE5yi7l2iIdSi4kS7CyyZlA8v2nDpOiImjm5yMz9N2r5H1EOvUJ34ur17ZT no2CIt5hKqAuatRc74XF0hLh4r9uzno2hnlBKgCdkjksx/ks7TUv2JRsXBcXLfOHDtbN V6T7b2TyqpxipFOca5jefBZzeuWF/4Hlpu8QJYsLSo1ErrAsovFWqw7I0u+Nueq8oKMV LKnq5rV0rQ2hWCmjpfXeRAuGPDqM1AT21hJAKcLySVL9N0Cz7kO263GUtZdpWZdqICaP nPyBbw6AjsonhY4UYqNvMNxNUi/X5eXwtZvfzdiZEvOuWR8f6LmMnIjTZSDRKNJqdqne u0PQ== 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 cd7-20020a05622a418700b0041cbdc9c803si3066474qtb.401.2023.12.01.01.09.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 01:09:46 -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 C5DDF384F9A1 for ; Fri, 1 Dec 2023 09:09:40 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-m49198.qiye.163.com (mail-m49198.qiye.163.com [45.254.49.198]) by sourceware.org (Postfix) with ESMTPS id 0CE56385C6EB for ; Fri, 1 Dec 2023 09:07:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0CE56385C6EB 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 0CE56385C6EB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=45.254.49.198 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701421681; cv=none; b=vtPNUD4xspGZYi2SuiUy7RSR3RkH9Q8at/h3B+4S9Gpwdvuv49VHmbBhUuTxiYDIxScjMQk9FHm2zIVNz/nKjvrcGmPQzW+o9ISNUzuqjcN7jfUfKFUfJH3vMWbNunbq4MYDYvKoKzQ3BOnhqQUnnK2Oo6qEskev9HTzh+P7MSM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701421681; c=relaxed/simple; bh=wX0Q0sennreDJbi/b58CzNoiVQZocMTa54kV1Lk58p0=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=mjQsZdswIklb8Ylqc/M1jQdnoi/2L2dKcIAjAj1MSxK0cZb/+vQnzgcpCxDBjG+qqfJ2+De0wamx7r/UtU8NiH9OVU5YEKlS2ZAuPXRhlkqn2ITv6OfHkZ6w7OVATdeDJYoyXsgd7GzA+4Y2LQyIctL+eoZt1KqRajF4qdt+pik= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from ubuntu.localdomain (unknown [124.89.2.83]) by mail-m121144.qiye.163.com (Hmail) with ESMTPA id 05528AC0115; Fri, 1 Dec 2023 17:07:54 +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, changjiachen Subject: [PATCH v1 3/5] LoongArch: opcodes: Add support for tls le relax. Date: Fri, 1 Dec 2023 17:07:28 +0800 Message-Id: <20231201090730.20521-4-changjiachen@stu.xupt.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231201090730.20521-1-changjiachen@stu.xupt.edu.cn> References: <20231201090730.20521-1-changjiachen@stu.xupt.edu.cn> MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZQhlPVhoaSxpDSR5LT0oaSVUTARMWGhIXJBQOD1 lXWRgSC1lBWUpJT1VDQlVJVUNIWVdZFhoPEhUdFFlBWUtVS1VLVUtZBg++ X-HM-Tid: 0a8c24a27408b039kuuu05528ac0115 X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Nww6TDo*Mjw2TxU9HUo*IiwU Iy8KC0lVSlVKTEtKT0lKTUxNTk1DVTMWGhIXVRgTGhUcERIaGBMeFTsIDw5VAw4LD1UeHw5VGBVF WVdZEgtZQVlKSU9VQ0JVSVVDSFlXWQgBWUFJT0tKNwY+ X-Spam-Status: No, score=-9.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, 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: 1784070050961243603 X-GMAIL-MSGID: 1784070050961243603 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 },