From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 9A6E43857C72 for ; Tue, 30 Aug 2022 11:02:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9A6E43857C72 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from 5.5.5 (unknown [10.2.5.5]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxReIt7g1j014MAA--.55376S2; Tue, 30 Aug 2022 19:02:06 +0800 (CST) From: caiyinyu To: adhemerval.zanella@linaro.org, libc-alpha@sourceware.org, joseph_myers@mentor.com, carlos@redhat.com, i.swmail@xen0n.name, xry111@xry111.site Cc: xuchenghua@loongson.cn, caiyinyu Subject: [PATCH 0/1] LoongArch: Add soft float support Date: Tue, 30 Aug 2022 19:02:03 +0800 Message-Id: <20220830110204.969133-1-caiyinyu@loongson.cn> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:AQAAf8DxReIt7g1j014MAA--.55376S2 X-Coremail-Antispam: 1UD129KBjvJXoWxGr48GrW5Cr4UKr1ruw4fuFg_yoW5tryrpr Za9rn8JryUCF9xAFWay3WYvF18AF1xJFnxCrsI93WxCw4kZrn8Xr1ayryDXF17Jw48AF1r ur18G3W29FZ8WwUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUk214x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26r1I6r4UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j 6F4UM28EF7xvwVC2z280aVAFwI0_Cr1j6rxdM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCY02Avz4vE-syl42xK 82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGw C20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48J MIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMI IF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E 87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfUoOJ5UUUUU X-CM-SenderInfo: 5fdl5xhq1xqz5rrqw2lrqou0/ X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: Tested on LoongArch machine: gcc 12.0.1, Linux kernel 5.19.0 rc5, binutils 2.39[2] and all passed besides ifunc related tests. UNSUPPORTED: assert/tst-assert-c++ UNSUPPORTED: assert/tst-assert-g++ UNSUPPORTED: crypt/cert UNSUPPORTED: debug/tst-fortify-cc-default-1 UNSUPPORTED: debug/tst-fortify-cc-default-2 UNSUPPORTED: debug/tst-fortify-cc-default-3 UNSUPPORTED: debug/tst-fortify-cc-lfs-1 UNSUPPORTED: debug/tst-fortify-cc-lfs-2 UNSUPPORTED: debug/tst-fortify-cc-lfs-3 UNSUPPORTED: debug/tst-fortify-cc-nongnu-1 UNSUPPORTED: debug/tst-fortify-cc-nongnu-2 UNSUPPORTED: debug/tst-fortify-cc-nongnu-3 UNSUPPORTED: dlfcn/bug-atexit3 UNSUPPORTED: elf/tst-env-setuid UNSUPPORTED: elf/tst-env-setuid-tunables XPASS: elf/tst-protected1a XPASS: elf/tst-protected1b UNSUPPORTED: elf/tst-valgrind-smoke UNSUPPORTED: math/test-fesetexcept-traps UNSUPPORTED: math/test-fexcept-traps UNSUPPORTED: math/test-nearbyint-except UNSUPPORTED: math/test-nearbyint-except-2 UNSUPPORTED: misc/tst-adjtimex UNSUPPORTED: misc/tst-clock_adjtime UNSUPPORTED: misc/tst-ntp_adjtime UNSUPPORTED: misc/tst-pkey UNSUPPORTED: misc/tst-rseq UNSUPPORTED: misc/tst-rseq-disable UNSUPPORTED: nptl/test-cond-printers UNSUPPORTED: nptl/test-condattr-printers UNSUPPORTED: nptl/test-mutex-printers UNSUPPORTED: nptl/test-mutexattr-printers UNSUPPORTED: nptl/test-rwlock-printers UNSUPPORTED: nptl/test-rwlockattr-printers UNSUPPORTED: nptl/tst-cancel24 UNSUPPORTED: nptl/tst-cancel24-static UNSUPPORTED: nptl/tst-minstack-throw UNSUPPORTED: nptl/tst-once5 UNSUPPORTED: nptl/tst-rseq-nptl UNSUPPORTED: nptl/tst-thread-exit-clobber UNSUPPORTED: nptl/tst-thread_local1 UNSUPPORTED: resolv/tst-resolv-ai_idn UNSUPPORTED: resolv/tst-resolv-ai_idn-latin1 UNSUPPORTED: stdlib/tst-quick_exit UNSUPPORTED: stdlib/tst-secure-getenv UNSUPPORTED: stdlib/tst-thread-quick_exit UNSUPPORTED: time/tst-clock_settime UNSUPPORTED: time/tst-settimeofday Summary of test results: 4466 PASS 46 UNSUPPORTED 16 XFAIL 2 XPASS caiyinyu (1): LoongArch: Add soft float support. scripts/build-many-glibcs.py | 4 ++ sysdeps/loongarch/Makefile | 8 --- sysdeps/loongarch/__longjmp.S | 2 + sysdeps/loongarch/bits/setjmp.h | 3 ++ sysdeps/loongarch/dl-trampoline.S | 11 +++- sysdeps/loongarch/fpu_control.h | 13 +++++ sysdeps/loongarch/nofpu/Implies | 1 + .../loongarch/nofpu/math-tests-exceptions.h | 28 ++++++++++ sysdeps/loongarch/nofpu/math-tests-rounding.h | 27 ++++++++++ sysdeps/loongarch/preconfigure | 1 - sysdeps/loongarch/preconfigure.ac | 1 - sysdeps/loongarch/setjmp.S | 2 + sysdeps/unix/sysv/linux/loongarch/Makefile | 9 ++++ sysdeps/unix/sysv/linux/loongarch/configure | 51 +++++++++++++++++-- .../unix/sysv/linux/loongarch/configure.ac | 22 ++++++-- .../unix/sysv/linux/loongarch/ldd-rewrite.sed | 2 +- .../unix/sysv/linux/loongarch/shlib-versions | 2 + 17 files changed, 168 insertions(+), 19 deletions(-) create mode 100644 sysdeps/loongarch/nofpu/Implies create mode 100644 sysdeps/loongarch/nofpu/math-tests-exceptions.h create mode 100644 sysdeps/loongarch/nofpu/math-tests-rounding.h -- 2.31.1