Message ID | 20231117204323.453536-1-xry111@xry111.site |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp802006vqn; Fri, 17 Nov 2023 12:44:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHFWv83/hFJb+NX6R4fluSYxlkUlPffJyGVTVyYXEDpfnhG9s5vB2IeWqNGiRgmTZCQNcz X-Received: by 2002:a05:620a:2d91:b0:775:8ed7:887 with SMTP id tr17-20020a05620a2d9100b007758ed70887mr625608qkn.26.1700253869638; Fri, 17 Nov 2023 12:44:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700253869; cv=pass; d=google.com; s=arc-20160816; b=ukuLq9xiYrnb+kSk3vXci3yhV1ImgrPvjHl7341MSmYOx2JBKWUWidGNRT6cz71Xmn hm0GIqZfMZuV/Z9bOf/v/i/NGAQD7HzSj/5u6wMYvtSL24CORdb39QBUpLjuJ9EfwDvx uc4Aiemv78kUgINKicfpfoTPNlEz2kT0KE27T/wZV9JSPKlxnGEdVt+U655C2HCQmlsM hBBqV4HGNR3Hz8fWexL0xIfVfNf1Zljf+qFPXyNrOWkA0ZIbEOY31NxTZvgIWI/4mErh C40j8HxIlMda3jco4RfmbAmmpBe0MYE1vAWgs73TsjLo3SMg4oaDz2OYPemCAo0kdjZP IdVQ== 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=bilxOCRwcbwQATHiRsQHCb/gmzhLHXVR8K0IZCj/BWs=; fh=oUCfM/eMlWtMCtZZKY1bglzxCo7b3kw9D5LTFFWuz38=; b=ninuwJXrDBiwp2fS/v8aWGm5g+cdtgT2dRqbz0THORYvHOaQXL+sv2jaCndXEYyQPQ 01vwlC3AqenhS58/YpUS50z6HWKzZ9leziT5g878KKJNlu9RSQU47zCNebh1w/9ortgt Vy5qBS+blFtJVbwnKYaTfiq3IHgWth02WMIeH5kN7BTdx+9n7WfUWVrJOAgvace5YJmA TBI2HDvs7r6mjMUywQcJHd2t3cxwyF26ik0VUpOK6AsCxTS/I78+cJAZC/IAI4KP5Xnb 5jz7OWH1BAozFojajgr4sdgdzpq256ANp3jEURnFh/LOZmptf/HIRg8/SqLdEguZTdpJ eHUA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=KdFan0yq; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id bq16-20020a05620a469000b007775b775bddsi2477366qkb.703.2023.11.17.12.44.29 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 12:44:29 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.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=@xry111.site header.s=default header.b=KdFan0yq; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 210C8385772A for <ouuuleilei@gmail.com>; Fri, 17 Nov 2023 20:44:26 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 7743E3858D28 for <gcc-patches@gcc.gnu.org>; Fri, 17 Nov 2023 20:43:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7743E3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7743E3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=89.208.246.23 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700253840; cv=none; b=fK1kwdjgnBJtNTCK0lLgK243ZWuGDHWsKg0EMH72taiuq0aG3ABKniJjYkOxLtD23w9gjOQpCyf0cDI6plXVOB+50zSzjv0OMCYxVBOXVbWE3nkyywoBjtPcs61JLFfNum1CoQbDDfhQmulRgprQKpZxVATnESJFPruCKT92BAY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700253840; c=relaxed/simple; bh=NLQrSATU1ULHLqZNzX1i0hR6u2zyMDro7lGph65cekA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=wmGHK929gS0/OdXeL5EKGiRxg7gzAuBB413vGnw5se8fk/WEg8bzzr7kaFxK6mZEI3Yx/x5G3yVkUZTvtzkd08MsGtVjy9GmDyPdbD/Gug9JqXyqUsOSze1yVu6j5GPzOnbACCuUACbtkXV+XDQKdpnoAi24au/YPMLlIXKjxsA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1700253837; bh=NLQrSATU1ULHLqZNzX1i0hR6u2zyMDro7lGph65cekA=; h=From:To:Cc:Subject:Date:From; b=KdFan0yqEbjbdfO0lDUWHmvOTPAgm2BeAZ+uSaSBYC+Y4uMVu0/mWhfS6t8NBOhwQ RjxEbCHHXh71I2aDwAz0npmRDKePFKnhb2TtEt4dtdtZysN6ywHzCbTZamt+S5y9zj N6sPchigz/4s7Y3XYiRAwx8XKfw6fCMLxOyI3em8= Received: from stargazer.. (unknown [IPv6:240e:358:1152:b00:dc73:854d:832e:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 17DA866B06; Fri, 17 Nov 2023 15:43:54 -0500 (EST) From: Xi Ruoyao <xry111@xry111.site> To: gcc-patches@gcc.gnu.org Cc: chenglulu <chenglulu@loongson.cn>, i@xen0n.name, xuchenghua@loongson.cn, Xi Ruoyao <xry111@xry111.site> Subject: [PATCH v2 0/6] Add LoongArch v1.1 div32 and ld-seq-sa support Date: Sat, 18 Nov 2023 04:43:17 +0800 Message-ID: <20231117204323.453536-1-xry111@xry111.site> X-Mailer: git-send-email 2.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, LIKELY_SPAM_FROM, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782845401560960396 X-GMAIL-MSGID: 1782845401560960396 |
Series |
Add LoongArch v1.1 div32 and ld-seq-sa support
|
|
Message
Xi Ruoyao
Nov. 17, 2023, 8:43 p.m. UTC
Superseds https://gcc.gnu.org/pipermail/gcc-patches/2023-November/636795.html. Requires https://gcc.gnu.org/pipermail/gcc-patches/2023-November/636946.html. Changes: - Rebase on top of "Add LoongarchV1.1 instructions support". - Not to translate loongarch-def.c C++. Use int64_t instead of HOST_WIDE_INT in loongarch-def.h. - In genopts, also generates cpucfg_useful_idx[] and N_CPUCFG_WORDS. Use decimals instead of hexidecimals for CPUCFG word index to make awk happy to perform numerical comparision. - Dump arch and feature info as comments in generated assembly if -fverbose-asm. It's helpful for testing and debugging. Xi Ruoyao (6): LoongArch: Fix internal error running "gcc -march=native" on LA664 LoongArch: genopts: Add infrastructure to generate code for new features in ISA evolution LoongArch: Add evolution features of base ISA revisions LoongArch: Take the advantage of -mdiv32 if it's enabled LoongArch: Don't emit dbar 0x700 if -mld-seq-sa LoongArch: Add fine-grained control for LAM_BH and LAMCAS gcc/config/loongarch/genopts/genstr.sh | 92 ++++++++++++++- gcc/config/loongarch/genopts/isa-evolution.in | 4 + .../loongarch/genopts/loongarch-strings | 1 + gcc/config/loongarch/genopts/loongarch.opt.in | 10 ++ gcc/config/loongarch/loongarch-cpu.cc | 105 +++++++++++------- gcc/config/loongarch/loongarch-cpucfg-map.h | 50 +++++++++ gcc/config/loongarch/loongarch-def.c | 1 + gcc/config/loongarch/loongarch-def.h | 12 ++ gcc/config/loongarch/loongarch-opts.cc | 3 + gcc/config/loongarch/loongarch-str.h | 10 +- gcc/config/loongarch/loongarch.cc | 35 +++++- gcc/config/loongarch/loongarch.md | 31 +++++- gcc/config/loongarch/loongarch.opt | 31 +++++- gcc/config/loongarch/sync.md | 25 +++-- gcc/config/loongarch/t-loongarch | 21 +++- .../gcc.target/loongarch/div-div32.c | 31 ++++++ .../gcc.target/loongarch/div-no-div32.c | 11 ++ 17 files changed, 403 insertions(+), 70 deletions(-) create mode 100644 gcc/config/loongarch/genopts/isa-evolution.in create mode 100644 gcc/config/loongarch/loongarch-cpucfg-map.h create mode 100644 gcc/testsuite/gcc.target/loongarch/div-div32.c create mode 100644 gcc/testsuite/gcc.target/loongarch/div-no-div32.c