Message ID | 20231201074626.2943513-1-yangyujie@loongson.cn |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8E945385C405 for <patchwork@sourceware.org>; Fri, 1 Dec 2023 07:47:30 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 2B64B3858C62 for <gcc-patches@gcc.gnu.org>; Fri, 1 Dec 2023 07:46:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2B64B3858C62 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 2B64B3858C62 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=1701416801; cv=none; b=LG55Dn6Nv4W47pO/l+Ddeg1H6ZfBpQw9eaTiQcyBjSbhZ3rtB+JpaztQXq0vkZxM/0cQd+EtMNA0I4GhRxTTB24VAA0qYmcdWcnTl6ye+RiKEGTeAWSF1DCHR3yek5SxyPUdqVbj9emLJV+ufzRfiF7te53PYbaOmxOHVW1IUVw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701416801; c=relaxed/simple; bh=ZUpR3KMK6PpN+gbOGlBLx8xq/tDp7ygJyPK9Q6t84Sk=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=j/AI1FkXPGl5yxW5X8MQhSyuIvMPxjYxKzcDKhNeYClkd+5SywrewZcuAF4IxH27iML1+vObGydxxav0FKvcfExhrGG8CstEdufB0/LSSa2XAUgT6F5I2fM3yYrUNdX8F0khEDBZrSe2Agx/R+NS8tfqE0QvjqAcB4J7ANU3iqY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from loongson.cn (unknown [114.243.104.185]) by gateway (Coremail) with SMTP id _____8CxNvFYj2llfSU+AA--.58056S3; Fri, 01 Dec 2023 15:46:33 +0800 (CST) Received: from localhost.localdomain (unknown [114.243.104.185]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxLC9Vj2ll52xRAA--.8882S2; Fri, 01 Dec 2023 15:46:29 +0800 (CST) From: Yang Yujie <yangyujie@loongson.cn> To: gcc-patches@gcc.gnu.org Cc: ibuclaw@gdcproject.org, chenglulu@loongson.cn, xuchenghua@loongson.cn, Yang Yujie <yangyujie@loongson.cn> Subject: [PATCH v2 0/3] LoongArch D support Date: Fri, 1 Dec 2023 15:46:23 +0800 Message-ID: <20231201074626.2943513-1-yangyujie@loongson.cn> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8CxLC9Vj2ll52xRAA--.8882S2 X-CM-SenderInfo: 51dqw5pxmlvqxorr0wxvrqhubq/1tbiAQAMAGVpQqsDVwAMsw X-Coremail-Antispam: 1Uk129KBj93XoW7trWUXF15tF15JFyDZr47GFX_yoW8CF4rpr ZrZF4rtrWjyFWxGws3X3srX3W5AFZ3Ww1UXFW7tr1jyry8urWUKwn3KrWFkF17G34rXFy0 vryxuws8Ga4qvacCm3ZEXasCq-sJn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUkFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv 67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2 Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s02 6x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0x vE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE 42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6x kF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07UNvtZUUUUU= X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_NONE, 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+patchwork=sourceware.org@gcc.gnu.org |
Series | LoongArch D support | |
Message
Yang Yujie
Dec. 1, 2023, 7:46 a.m. UTC
This patchset is based on Zixing Liu's initial support patch: https://gcc.gnu.org/pipermail/gcc-patches/2023-September/631260.html Update v1 -> v2: Rebased onto the dmd/druntime upstream state. Regtested on loongarch64-linux-gnu with the following result: === libphobos Summary === FAIL: libphobos.config/test22523.d -- --DRT-testmode=run-main execution test FAIL: libphobos.gc/precisegc.d execution test FAIL: libphobos.phobos/std/datetime/systime.d (test for excess errors) UNRESOLVED: libphobos.phobos/std/datetime/systime.d compilation failed to produce executable UNSUPPORTED: libphobos.phobos/std/net/curl.d: skipped test UNSUPPORTED: libphobos.phobos_shared/std/net/curl.d: skipped test FAIL: libphobos.shared/loadDR.c -ldl -pthread -g execution test (out-of-tree testing) # of expected passes 1024 # of unexpected failures 4 # of unresolved testcases 1 # of unsupported tests 2 === gdc Summary === FAIL: gdc.test/runnable/testaa.d execution test FAIL: gdc.test/runnable/testaa.d -fPIC execution test # of expected passes 10353 # of unexpected failures 2 # of unsupported tests 631 Yang Yujie (3): LoongArch: Adjust D version strings. libphobos: Update build scripts for LoongArch64. libphobos: LoongArch hardware support. gcc/config/loongarch/loongarch-d.cc | 27 ++-- gcc/d/dmd/cond.d | 6 +- gcc/d/implement-d.texi | 6 + libphobos/configure | 21 ++- libphobos/libdruntime/Makefile.am | 3 + libphobos/libdruntime/Makefile.in | 98 ++++++++----- .../config/loongarch/switchcontext.S | 133 ++++++++++++++++++ libphobos/m4/druntime/cpu.m4 | 5 + libphobos/src/std/math/hardware.d | 53 +++++++ 9 files changed, 296 insertions(+), 56 deletions(-) create mode 100644 libphobos/libdruntime/config/loongarch/switchcontext.S