From patchwork Fri Dec 15 10:06:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: changjiachen X-Patchwork-Id: 179148 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp9163384dys; Fri, 15 Dec 2023 02:08:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAj9wzbbFeaR3o3ywPhdQusXkl7Vm0AufyDGO3rOishQIBAzSpWc9dejmBpDFW51QErlgD X-Received: by 2002:a05:6214:4008:b0:67f:e29:d4f4 with SMTP id kd8-20020a056214400800b0067f0e29d4f4mr2859940qvb.14.1702634920829; Fri, 15 Dec 2023 02:08:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702634920; cv=pass; d=google.com; s=arc-20160816; b=Ic2va8e+FXusFbKNhXzM6hvHK2ZhKZWP73HbIH4cX0wj2FhQvY4pBViRU7j2El79Xw Rj9N8pkRA/59A4q+/6uUKgaYTpcjoGXRoups9vP4sCbhH31Slz/kp4+yTPbMJQYADHCZ ZQp0jA0sgy0bfvN9znKXbRs2iJFV8xoz4GV/ltfuctj8NvZg4y7mDz7IRWeyADMa4hFR 0bGssCRH46Ml1+yfseaEYKSWkCCtUV8VEkfLW2atKwTgidAT3EcTfz5tcqwp7cqRU4aD kGPRc8ZUGQbr0v2EYzNLOjvZlx6v56CntntDyP2mPT+qCkefTKwuuQYws2XNvxk5Xrju yWPQ== 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=AAWNQODzKNRg4JK0cp0ZhKCohBbFb69tuLYTSz5RKGA=; fh=uTF/VfpCAq2GtcL5NdCKul3VKQPlBSDYmUlZE/0CcYM=; b=EMNhfj53ETScnsQJVUjmG0WmdqGVgxtBmIsr1xh0Ka5r7CdSCrS4DODjvsK5U/SP/S 33Q8dCSbMhNMvbbL96/DPeWtF4d6woeISHAXf4pVAtkoXnPfa2dw3rA4JLVdQ5B0aGeu 9bNyN6Wu78ZcbMzDF1Yi4RsLX+Oz8nswxfIy+81+x14bMI2mSA1XsWKSE8RsJ7dPFdF5 EmOQ8kPrVch0OBnhkJ3W6v3uaDVLP9PcwSbFjq79vwJDxOP7Zdf9Gd7JBc64ssgTLRAC JHH6GBnqGisqbpUkNSSb99FlIgYXCLmRjcnZPJaYaKAqUSiO3U9Vhhv2nMxribzK93JY js0A== 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 k10-20020a05620a414a00b00773e6f8895fsi17592166qko.241.2023.12.15.02.08.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 02:08:40 -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 865EE384DEE7 for ; Fri, 15 Dec 2023 10:08:40 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-m155101.qiye.163.com (mail-m155101.qiye.163.com [101.71.155.101]) by sourceware.org (Postfix) with ESMTPS id 3F7F83861891 for ; Fri, 15 Dec 2023 10:06:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3F7F83861891 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 3F7F83861891 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=101.71.155.101 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702634810; cv=none; b=kz/8axjQWxM/OT4DFgThoojbFsDxUQg9tsX2dd15hIiVYTY7HPek/8JPOJUJDKODc3VXl93BE7yVd0O5EiRM9pYRU4D5fqQZg/M+GRbybJOGfBwzRxEQsYsoTmYBxwbhjcJjE/fva3wWHQMdOHaUEkx0L4UdwuccQ72I15dxjbU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702634810; c=relaxed/simple; bh=c+EaJvFO4zUbuEvEVsxTeDBd/G/FjnLqtM3dkHJRO74=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=OeAt/6zE/0VVzRlpbRfekXzerKw4odTLcVNy9vI5dug6xZzK+tBD7mpGUSdMASmGexfflzcUg0G0/elbq2PQ97Fcb4WcbgeTgKsUZaC7TK/on4E+BAMao9wL9/ubyW89CF/1sz+qyL+SMEP0XHKLx4YKgQ9MahT4lLTBRGaIj/I= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from ubuntu.localdomain (unknown [111.18.37.203]) by mail-m121144.qiye.163.com (Hmail) with ESMTPA id AE26AAC00BF; Fri, 15 Dec 2023 18:06:41 +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 v3 3/5] LoongArch: opcodes: Add support for tls le relax. Date: Fri, 15 Dec 2023 18:06:31 +0800 Message-Id: <20231215100633.65397-4-changjiachen@stu.xupt.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231215100633.65397-1-changjiachen@stu.xupt.edu.cn> References: <20231215100633.65397-1-changjiachen@stu.xupt.edu.cn> MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlCQk5CVhhJHx1PSB5DHU0YQ1UTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSlVKQ1VITFVJS0hZV1kWGg8SFR0UWUFZT0tIVUpKS0hKQ1VKS0tVS1kG X-HM-Tid: 0a8c6cf14c07b039kuuuae26aac00bf X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MRg6FQw5DDw5IzczDVENPU1D LkIaCTpVSlVKTEtJTUhPQ0tIS09DVTMWGhIXVRgTGhUcERIaGBMeFTsIDw5VAw4LD1UeHw5VGBVF WVdZEgtZQVlKSkpVSkNVSExVSUtIWVdZCAFZQUlNQko3Bg++ X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, 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: 1785342114642956454 X-GMAIL-MSGID: 1785342114642956454 Add new opcode for tls le relax. opcode/ChangeLog: * loongarch-opc.c: Add new loongarch opcode. --- opcodes/loongarch-opc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opcodes/loongarch-opc.c b/opcodes/loongarch-opc.c index 15c7da6340c..38d96e96207 100644 --- a/opcodes/loongarch-opc.c +++ b/opcodes/loongarch-opc.c @@ -398,7 +398,8 @@ static struct loongarch_opcode loongarch_fix_opcodes[] = { 0x00080000, 0xfffe0000, "bytepick.w", "r0:5,r5:5,r10:5,u15:2", 0, 0, 0, 0 }, { 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", 0, 0, 0, 0 }, /* In general add.d insn */ + { 0x00108000, 0xffff8000, "add.d", "r0:5,r5:5,r10:5,s10:5", 0, 0, 0, 0 }, /* TLS LE model add.d insn */ { 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 },