From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id E410F384640E for ; Thu, 25 Apr 2024 01:19:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E410F384640E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E410F384640E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=114.242.206.163 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714007994; cv=none; b=rN8OVIa/M0IEqoKHJCro9T9h6MjOK6eesPsA26ZI1NbS3PjvCOXpaAVUCY+pcm5mY+QY7AGznWSmloPNCzJN8o4RVll4dorDv4yCJGH2+ZHTzU+uMuun0JFbsCFC+qaafhYjzz58p1/5RdP4S7H65tD0OwERYh/FgnWltppbvlw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714007994; c=relaxed/simple; bh=J4A2FCscq1TVVOt/HwCUZjy9GxRrMqm3szRb4RJJOko=; h=Subject:To:From:Message-ID:Date:MIME-Version; b=JEoV+pQ/s2ApsoDMVhTxmjq0Y3E0SV/0J6TKAxwLdSrx3bK1I2AWT8wcnM+F2Qex8fFBCxqNgwVK8b0VYvzDFSdsyFLnyyXygD/T4MsfXptHrhDutq8uQs3Dxxuf2CDle/1ROGjVYtQHkIL6hVniqvcQjjKXODk6GsGVOEHsNbE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from loongson.cn (unknown [10.20.4.107]) by gateway (Coremail) with SMTP id _____8Cx7+uzrylm60YCAA--.12122S3; Thu, 25 Apr 2024 09:19:47 +0800 (CST) Received: from [10.20.4.107] (unknown [10.20.4.107]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Axz1exrylmUQoEAA--.11365S3; Thu, 25 Apr 2024 09:19:46 +0800 (CST) Subject: Re: [pushed][PATCH] wwwdocs: gcc-14/changes.html: Add Loongarch changes. To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn References: <20240423034327.1510-1-chenglulu@loongson.cn> From: Lulu Cheng Message-ID: <19ee1906-7bea-3c7b-0b61-efc615d01633@loongson.cn> Date: Thu, 25 Apr 2024 09:19:45 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20240423034327.1510-1-chenglulu@loongson.cn> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CM-TRANSID:AQAAf8Axz1exrylmUQoEAA--.11365S3 X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoW3XFWUCF1DtrykGF4UKr1UXFc_yoW3Ww1rpF 4xCryftF10gr42k3s5W3yjqFn0yFn5XFyrZay0gw1YyFnrGrW8ZryIyr4DGw1IvryFgr4v q3WxG3s8WF4DZrXCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUv0b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I 8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87Iv67AK xVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lc7I2V7IY0VAS07AlzV AYIcxG8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E 14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIx kGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAF wI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r 4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8j-e5UU UUU== X-Spam-Status: No, score=-14.2 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_STATUS,KAM_SHORT,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 在 2024/4/23 上午11:43, Lulu Cheng 写道: > --- > htdocs/gcc-14/changes.html | 156 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 156 insertions(+) > > diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html > index 9509487c..f0f0efe0 100644 > --- a/htdocs/gcc-14/changes.html > +++ b/htdocs/gcc-14/changes.html > @@ -877,6 +877,162 @@ __asm (".global __flmap_lock" "\n\t" > > > > +

LoongArch

> +
    > +
  • Support for the following > + > + -march parameters has been added: > +
      > +
    • la64v1.0
    • > +
    • la64v1.1
    • > +
    • la664
    • > +
    > + It is now recommended to use -march=la64v1.0 as the only > + compiler option to describe the target ISA when building binaries for > + distribution. For more information on LoongArch ISA versions, see > + > + Toolchain Conventions of the LoongArch™ Architecture. > +
  • > +
  • Support for the following > + > + -mtune parameters has been added: > +
      > +
    • generic
    • > +
    • la664
    • > +
    > +
  • > +
  • New ISA Extension > +
      > +
    • LSX (Loongson SIMD Extension): Support 128-bit vector instructions > + and the intrinsics. > +
    • > +
    • LASX (Loongson Advanced SIMD Extension): Support 256-bit vector > + instructions and the intrinsics. > +
    • > +
    • FRECIPE: Support frecipe.{s/d} and > + frsqrte.{s/d} instructions and the intrinsics. > +
    • > +
    • DIV32: Support div.w[u] and mod.w[u] > + instructions with inputs not sign-extended. > +
    • > +
    • LAM_BH: Support am{swap/add}[_db].{b/h} instructions. > +
    • > +
    • LAMCAS: Support amcas[_db].{b/h/w/d} instructions. > +
    • > +
    > +
  • > +
  • New Built-in Macros > +
      > +
    • __loongarch_arch: Target ISA preset as specified by > + -march=. For example, compiling with > + -march=la64v1.0, the value of __loongarch_arch > + is "la64v1.0". > +
    • > +
    • __loongarch_tune: Processor model as specified by > + -mtune or its default value. > +
    • > +
    • __loongarch_{simd,sx,asx}: These macros are not defined, > + or defined as 1. > +
    • > +
    • __loongarch_simd_width: The maximum SIMD bit-width > + enabled by the compiler. (128 for lsx, and 256 for lasx). > +
    • > +
    • __loongarch_frecipe: It's defined to 1 or undefined. > +
    • > +
    • __loongarch_div32: It's defined to 1 or undefined.
    • > +
    • __loongarch_lam_bh: It's defined to 1 or undefined.
    • > +
    • __loongarch_lamcas: It's defined to 1 or undefined.
    • > +
    • __loongarch_ld_seq_sa: It's defined to 1 or undefined. > +
    • > +
    • __loongarch_version_major: > + The minimally required LoongArch ISA version (major) to run the > + compiled program, defined to 1 or undefined (iff no such version is > + known to the compiler). > +
    • > +
    • __loongarch_version_minor: > + The minimally required LoongArch ISA version (minor) to run the > + compiled program, defined to 0 1 or undefined (iff > + __loongarch_version_major is undefined). > +
    • > +
    • __FLOAT128_TYPE: It's defined to 1.
    • > +
    > +
  • > +
  • New Intrinsics > + > +
  • > +
  • New Compiler Option > + > +
  • > +
  • Support for Ada and D.
  • > +
  • Support for libffi.
  • > +
  • Enable -free by default at -O2 or higher.
  • > +
  • Enable -fsched-pressure by default at -O1 or > + higher. > +
  • > +
  • Support the extreme code model using macro instructions > + (under -mno-explicit-relocs).
  • > +
  • Support call36.
  • > +
  • Optimizing built-in functions for memory-model-aware atomic operations > + using hierarchical dbar instructions.
  • > +
  • TLS descriptors support. It is not enabled by default, and can be enabled > + with > + -mtls-dialect=desc. The default behavior can be > + configured with --with-tls=[trad|desc].
  • > +
> + > > >