Message ID | 20231026093646.20609-1-c@jia.je |
---|---|
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp543011vqb; Thu, 26 Oct 2023 02:37:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGtiJQSfAO5Dsr39r1UgOn1yVjEjMkMnQTcsEKt3/JppfLZv50G2mW2Rprgm/aFFeKwG023 X-Received: by 2002:ac8:4e8c:0:b0:41e:1d94:8896 with SMTP id 12-20020ac84e8c000000b0041e1d948896mr14848064qtp.22.1698313036804; Thu, 26 Oct 2023 02:37:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698313036; cv=pass; d=google.com; s=arc-20160816; b=Q+JbyUplLFHGDt5xDj/CkvyXehecQYcauaqzgPKKafviSaBwwKzcAU7Wbrt+8sYvNk z60pbeWKrBmG3HZqPvRNkfyfS/hbdLBmDRYLoGQLXJf3/GUv9iSxrpI4Es1T5kX0h9nn cx1EGWHuxxZRGQLKO7fLNkpPrDeORD5yr7klZr3rwzc1y/p+JHtZJWDry+pQyABe8J5m vhleQ5Sibq/KsWgEnFuYaTN3NxWDPvSyd3C/3QJ1UU2lTrdapMemlFOaRj0RlD9QjhRQ SIhB80JmYIziEvZ8bGbL/vFCtM5mTcQFFEEzFyV8bsYkQ1e+QaSrJE6gV7aTbfmr2ziE sGXA== 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:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=3Alevx2jwRMDfQfGweBNXCdD9oGxvutUHgJLuGP23QU=; fh=lf2PRoLYCpDEPskmg/EpY5WaggB2jqBU/NClPbOnwxw=; b=wtQ9p89kxmhXR6b+F+GfVQ5PTC7FhGsYL+MpQiuirTy+C/0a04AY2EzQdjnldp25/9 VKVhd3PdedFlKLAcZhDGdkzonr/aJi/gPXm9wJNlSOoyazfcDOtym5LWSY/RGt4oS86T JYjRZFFDakTy5E+mmXajuCdbxx9KZA03fQ6tgznHsWhb++xb/fmEuVdsLHfUOh9eoyw3 mGpy/xQU6ytNyy+uNvWwm97AjJaERAYQYGyOm6/iYH3o0bF5p61D7gcveLm8l8kVqFfD dVbjQ30ISlrQWCFi/OtKgpXJua8pfOQB8GTC6jQHKZNtNhUMAVsSpLM02GwzT+/+7tmm 5esg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@jia.je header.s=default header.b=pCJyFs6k; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jia.je Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id u19-20020a05622a011300b004180ac7c98bsi9106796qtw.20.2023.10.26.02.37.16 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 02:37:16 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@jia.je header.s=default header.b=pCJyFs6k; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jia.je Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7E39F385B53E for <ouuuleilei@gmail.com>; Thu, 26 Oct 2023 09:37:16 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from hognose1.porkbun.com (hognose1.porkbun.com [35.82.102.206]) by sourceware.org (Postfix) with ESMTPS id D732C3858C35 for <binutils@sourceware.org>; Thu, 26 Oct 2023 09:37:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D732C3858C35 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=jia.je Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jia.je ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D732C3858C35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.82.102.206 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698313032; cv=none; b=vp0+NOQVJd8JM59wvQmBlacngEyOd9JbPhNBZXbMX75ebE1Fl99PFDuFyZtRuNxHMGRNiJOrVjArSlxmrz7fJ8Mlsisf0IW3FUpSGkCVkg7ScNG611n6c1Wa+Oh0gP9HF0/5nwX5VPhpDKW5tQwHhfM0dBhRht2REttMRjQrDHE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698313032; c=relaxed/simple; bh=BC9xkQXhwgVr9OWY6Hx2N7eXZNItKLTI+catqmR+HYM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=puDPMAA44KR+PAx6M5Lp4j+4qSvJRJAyUrihkpThHF+XwotMhuAwEjg+MM0pn10pTvjovelJpje0yWnibYD1dQrj5U7VAtskSDpZuhPs9PAW1n39BgO44yDpqGpJDJgUjBbKoO4RjN0GF6NHd8k2XV7aXVfg/iygr+k9O+s5VY0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from ls3a6000.. (unknown [223.72.62.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: c@jia.je) by hognose1.porkbun.com (Postfix) with ESMTPSA id A745A4402C; Thu, 26 Oct 2023 09:36:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jia.je; s=default; t=1698313026; bh=3Alevx2jwRMDfQfGweBNXCdD9oGxvutUHgJLuGP23QU=; h=From:To:Cc:Subject:Date; b=pCJyFs6kjgbRGNLxgECpdBtyvnVH1acrAszUOxGMvWshuBgKar0asqVKcjNDALkSQ YjqfzNSwoEu3MJpYfmCOpaR+qJ4VlsHmYZkFoMWVuBRZ1CRiJx3HNKYM+gEHKHH8HE PpBb3SOGz4oOmL//ClTPxz6E7OZS3XarGvRU3hp4= From: Jiajie Chen <c@jia.je> To: binutils@sourceware.org Cc: xuchenghua@loongson.cn, liuzhensong@loongson.cn, mengqinggang@loongson.cn, Jiajie Chen <c@jia.je> Subject: [PATCH v2 0/3] Add support for LoongArch V1.1 instructions Date: Thu, 26 Oct 2023 17:35:12 +0800 Message-ID: <20231026093646.20609-1-c@jia.je> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TLD_CHINA, TXREP autolearn=no 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 <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780810290355136165 X-GMAIL-MSGID: 1780810290355136165 |
Series |
Add support for LoongArch V1.1 instructions
|
|
Message
Jiajie Chen
Oct. 26, 2023, 9:35 a.m. UTC
LoongArch V1.1 release is out at https://www.loongson.cn/uploads/images/2023102309132647981.%E9%BE%99%E8%8A%AF%E6%9E%B6%E6%9E%84%E5%8F%82%E8%80%83%E6%89%8B%E5%86%8C%E5%8D%B7%E4%B8%80_r1p10.pdf. It brings the following new instructions: - atomic cas: amcas{_db}.b/h/w/d - ll-sc: sc.q, llacq.w/d, screl.w/d - estimated reciprocal: frecipe/frsqrte and their vector counterpart Support and tests for these new instructions are added. Changes since v1: - Add support for "sc.q r4, r5, r6, 0" and "llacq.w/d / screl.w/d r4, r5, 0" Jiajie Chen (3): as: Add new atomic instructions in LoongArch v1.1 as: Add new estimated reciprocal instructions in LoongArch v1.1 gas: add loongarch v1.1 to NEWS gas/NEWS | 2 + gas/config/tc-loongarch.c | 6 ++- gas/testsuite/gas/loongarch/float_op.d | 4 ++ gas/testsuite/gas/loongarch/float_op.s | 4 ++ gas/testsuite/gas/loongarch/load_store_op.d | 42 ++++++++++++++++ gas/testsuite/gas/loongarch/load_store_op.s | 42 ++++++++++++++++ gas/testsuite/gas/loongarch/vector.d | 8 +++ gas/testsuite/gas/loongarch/vector.s | 8 +++ opcodes/loongarch-opc.c | 54 +++++++++++++++++++++ 9 files changed, 168 insertions(+), 2 deletions(-)
Comments
Ping. Now we are very close to the end of GCC 14 stage 1 and we need Binutils support for adding LA664 features into GCC. On Thu, 2023-10-26 at 17:35 +0800, Jiajie Chen wrote: > LoongArch V1.1 release is out at > https://www.loongson.cn/uploads/images/2023102309132647981.%E9%BE%99%E8%8A%AF%E6%9E%B6%E6%9E%84%E5%8F%82%E8%80%83%E6%89%8B%E5%86%8C%E5%8D%B7%E4%B8%80_r1p10.pdf. > > It brings the following new instructions: > > - atomic cas: amcas{_db}.b/h/w/d > - ll-sc: sc.q, llacq.w/d, screl.w/d > - estimated reciprocal: frecipe/frsqrte and their vector counterpart > > Support and tests for these new instructions are added. > > Changes since v1: > > - Add support for "sc.q r4, r5, r6, 0" and "llacq.w/d / screl.w/d r4, > r5, 0" > > Jiajie Chen (3): > as: Add new atomic instructions in LoongArch v1.1 > as: Add new estimated reciprocal instructions in LoongArch v1.1 > gas: add loongarch v1.1 to NEWS > > gas/NEWS | 2 + > gas/config/tc-loongarch.c | 6 ++- > gas/testsuite/gas/loongarch/float_op.d | 4 ++ > gas/testsuite/gas/loongarch/float_op.s | 4 ++ > gas/testsuite/gas/loongarch/load_store_op.d | 42 ++++++++++++++++ > gas/testsuite/gas/loongarch/load_store_op.s | 42 ++++++++++++++++ > gas/testsuite/gas/loongarch/vector.d | 8 +++ > gas/testsuite/gas/loongarch/vector.s | 8 +++ > opcodes/loongarch-opc.c | 54 +++++++++++++++++++++ > 9 files changed, 168 insertions(+), 2 deletions(-) >
It waiting for an English manual. 在 2023/11/16 上午7:59, Xi Ruoyao 写道: > Ping. Now we are very close to the end of GCC 14 stage 1 and we need > Binutils support for adding LA664 features into GCC. > > On Thu, 2023-10-26 at 17:35 +0800, Jiajie Chen wrote: >> LoongArch V1.1 release is out at >> https://www.loongson.cn/uploads/images/2023102309132647981.%E9%BE%99%E8%8A%AF%E6%9E%B6%E6%9E%84%E5%8F%82%E8%80%83%E6%89%8B%E5%86%8C%E5%8D%B7%E4%B8%80_r1p10.pdf. >> >> It brings the following new instructions: >> >> - atomic cas: amcas{_db}.b/h/w/d >> - ll-sc: sc.q, llacq.w/d, screl.w/d >> - estimated reciprocal: frecipe/frsqrte and their vector counterpart >> >> Support and tests for these new instructions are added. >> >> Changes since v1: >> >> - Add support for "sc.q r4, r5, r6, 0" and "llacq.w/d / screl.w/d r4, >> r5, 0" >> >> Jiajie Chen (3): >> as: Add new atomic instructions in LoongArch v1.1 >> as: Add new estimated reciprocal instructions in LoongArch v1.1 >> gas: add loongarch v1.1 to NEWS >> >> gas/NEWS | 2 + >> gas/config/tc-loongarch.c | 6 ++- >> gas/testsuite/gas/loongarch/float_op.d | 4 ++ >> gas/testsuite/gas/loongarch/float_op.s | 4 ++ >> gas/testsuite/gas/loongarch/load_store_op.d | 42 ++++++++++++++++ >> gas/testsuite/gas/loongarch/load_store_op.s | 42 ++++++++++++++++ >> gas/testsuite/gas/loongarch/vector.d | 8 +++ >> gas/testsuite/gas/loongarch/vector.s | 8 +++ >> opcodes/loongarch-opc.c | 54 +++++++++++++++++++++ >> 9 files changed, 168 insertions(+), 2 deletions(-) >>
On Thu, 2023-11-16 at 11:02 +0800, mengqinggang wrote:
> It waiting for an English manual.
I guess the manual will be released on Nov 28, but GCC 14 stage 1 ends
on Nov 19.
Does the mnemonics in this series look OK to you? If yes then I can
start to use them in GCC (and a document change for minimal GAS version
required by -mxxx options can be added in Stage 3 or 4).
Yeah, it look OK to me. 在 2023/11/16 下午9:43, Xi Ruoyao 写道: > On Thu, 2023-11-16 at 11:02 +0800, mengqinggang wrote: >> It waiting for an English manual. > I guess the manual will be released on Nov 28, but GCC 14 stage 1 ends > on Nov 19. > > Does the mnemonics in this series look OK to you? If yes then I can > start to use them in GCC (and a document change for minimal GAS version > required by -mxxx options can be added in Stage 3 or 4). >
The V1.1 English manual has been released at: https://github.com/loongson/LoongArch-Documentation 在 2023/11/16 下午9:43, Xi Ruoyao 写道: > On Thu, 2023-11-16 at 11:02 +0800, mengqinggang wrote: >> It waiting for an English manual. > I guess the manual will be released on Nov 28, but GCC 14 stage 1 ends > on Nov 19. > > Does the mnemonics in this series look OK to you? If yes then I can > start to use them in GCC (and a document change for minimal GAS version > required by -mxxx options can be added in Stage 3 or 4). >
Please change the link to https://github.com/loongson/LoongArch-Documentation. 在 2023/10/26 下午5:35, Jiajie Chen 写道: > LoongArch V1.1 release is out at > https://www.loongson.cn/uploads/images/2023102309132647981.%E9%BE%99%E8%8A%AF%E6%9E%B6%E6%9E%84%E5%8F%82%E8%80%83%E6%89%8B%E5%86%8C%E5%8D%B7%E4%B8%80_r1p10.pdf. > > It brings the following new instructions: > > - atomic cas: amcas{_db}.b/h/w/d > - ll-sc: sc.q, llacq.w/d, screl.w/d > - estimated reciprocal: frecipe/frsqrte and their vector counterpart > > Support and tests for these new instructions are added. > > Changes since v1: > > - Add support for "sc.q r4, r5, r6, 0" and "llacq.w/d / screl.w/d r4, > r5, 0" > > Jiajie Chen (3): > as: Add new atomic instructions in LoongArch v1.1 > as: Add new estimated reciprocal instructions in LoongArch v1.1 > gas: add loongarch v1.1 to NEWS > > gas/NEWS | 2 + > gas/config/tc-loongarch.c | 6 ++- > gas/testsuite/gas/loongarch/float_op.d | 4 ++ > gas/testsuite/gas/loongarch/float_op.s | 4 ++ > gas/testsuite/gas/loongarch/load_store_op.d | 42 ++++++++++++++++ > gas/testsuite/gas/loongarch/load_store_op.s | 42 ++++++++++++++++ > gas/testsuite/gas/loongarch/vector.d | 8 +++ > gas/testsuite/gas/loongarch/vector.s | 8 +++ > opcodes/loongarch-opc.c | 54 +++++++++++++++++++++ > 9 files changed, 168 insertions(+), 2 deletions(-) >