From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by sourceware.org (Postfix) with ESMTPS id 047AD3858D33 for ; Sat, 20 Apr 2024 03:26:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 047AD3858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 047AD3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.51.188.92 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713583612; cv=none; b=MyLq9x+qFj2OxeBwNVLmwk6P6Z1y1Xsw14FQYtIMDPbvCA3knmglNOMS4LHBFuXYXHcxkDlNceKaEwXqjDAXhB5vCtqsMRJ69bpGF9A32Ru3OXCJeTJjjilgs/pfy2q0UsvDG14y88dJKXwjAG+XujfKgrn3PFYn5Gcnt4a4Gkk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713583612; c=relaxed/simple; bh=DTYeBiDtGd7jHtOkdpVS+qaMZIFrLsEci3VH5gcrHi4=; h=Subject:To:From:Message-ID:Date:MIME-Version; b=FBfJaw6XRDpYSb0rPUZWl1ePgLal5/by+8pR3aBTW7lWgIJxbc/Sg4miRK1C7MkNLAawHdBj6aSiaWYIolLX1DKTxqhhUyQzh47oWcPolofzZlbMjxDt7cbevR9t894CquuKrnqHY6EMdmSRQHaOC+m8x9ie+5g5uhuuntLb8bU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ry1NH-0001hX-4v for gcc-patches@gcc.gnu.org; Fri, 19 Apr 2024 23:26:49 -0400 Received: from loongson.cn (unknown [10.20.4.107]) by gateway (Coremail) with SMTP id _____8BxcfHvNSNm7kYAAA--.1636S3; Sat, 20 Apr 2024 11:26:40 +0800 (CST) Received: from [10.20.4.107] (unknown [10.20.4.107]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxMeDuNSNmpY8AAA--.3135S3; Sat, 20 Apr 2024 11:26:39 +0800 (CST) Subject: Re: [PATCH 1/2] LoongArch: Define ISA versions To: Xi Ruoyao , Yang Yujie , gcc-patches@gcc.gnu.org Cc: xuchenghua@loongson.cn References: <20240419110421.1197209-2-yangyujie@loongson.cn> <030b3e1c8c76ed65261e3c57d6acd50f4a8dfa10.camel@xry111.site> From: Lulu Cheng Message-ID: <4d76383f-482c-af9c-acb1-c82fa3c736e9@loongson.cn> Date: Sat, 20 Apr 2024 11:26:38 +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: <030b3e1c8c76ed65261e3c57d6acd50f4a8dfa10.camel@xry111.site> Content-Type: multipart/alternative; boundary="------------BCF212E9148910DD6190498C" Content-Language: en-US X-CM-TRANSID:AQAAf8CxMeDuNSNmpY8AAA--.3135S3 X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoW7Ar17ZFW3Zw47Kr1rZF1fuFX_yoW8XFy3pF s5ua47Crn7Way5Wrykt3y8WF1fCr17J3y5Gws0934qqa90yr18CrySyFWYgFZrA3ySqr4F qF40y34DA3WUZFXCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnRJUUUvjb4IE77IF4wAF F20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r 106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAF wI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67 AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1le2I262IYc4CY6c8I j28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAv7VC0I7IYx2IY67AKxVWUGVWUXw Av7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMx8G jcxK6IxK0xIIj40E5I8CrwCYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMx C20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_JrI_JrWlx2IqxVCjr7xvwVAF wI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20x vE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v2 0xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxV WUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUruWlDUUUU Received-SPF: pass client-ip=114.242.206.163; envelope-from=chenglulu@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9,HTML_MESSAGE=0.001,NICE_REPLY_A=-2.226,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,HTML_MESSAGE,KAM_DMARC_STATUS,NICE_REPLY_A,SPF_FAIL,SPF_HELO_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: This is a multi-part message in MIME format. --------------BCF212E9148910DD6190498C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 在 2024/4/19 下午10:27, Xi Ruoyao 写道: > On Fri, 2024-04-19 at 19:04 +0800, Yang Yujie wrote: >>  @table @samp >>  @item native >> -This selects the CPU to generate code for at compilation time by determining >> -the processor type of the compiling machine.  Using @option{-march=native} >> -enables all instruction subsets supported by the local machine (hence >> -the result might not run on different machines).  Using @option{-mtune=native} >> -produces code optimized for the local machine under the constraints >> -of the selected instruction set. >> +Local processor type detected by the native compiler. >>  @item loongarch64 >> -A generic CPU with 64-bit extensions. >> +Generic LoongArch 64-bit processor. >>  @item la464 >> -LoongArch LA464 CPU with LBT, LSX, LASX, LVZ. >> +LoongArch LA464-based processor with LSX, LASX. >> +@item la664 >> +LoongArch LA664-based processor with LSX, LASX and all LoongArch v1.1 features. > One LoongArch v1.1 feature "Hardware Page Table Walker" is not > implemented by LA664. Maybe "all LoongArch v1.1 **unprivileged** > features"? > The description of *-march* is "+Generate instructions for the machine type @var{arch-type}.", so is there no need to write it like this here? >> +@item la64v1.0 >> +LoongArch64 ISA version 1.0. >> +@item la64v1.1 >> +LoongArch64 ISA version 1.1. > IMO it's better to use a wording like LA664, i.e. "a CPU implementing > all LoongArch v1.1 unprivileged features" (emphasising "all", as the > v1.1 manual allows to only implement a subset of v1.1 features). > --------------BCF212E9148910DD6190498C--